Skip to content

A.6: Notification Templates

Summary

Admins create, edit, preview, and delete notification templates used for in-app notification rendering.

Role

  • Primary: Admin
  • Secondary: System

Entry Point

  • List tab: /admin/system-settings?tab=notifications
  • Detail: /admin/system-settings/notification-templates/:templateId

Preconditions

  • User is authenticated as admin.

Steps

  1. Admin opens notification templates.
  2. Admin creates or opens a template.
  3. Admin edits key, language, title/body content, and metadata.
  4. Admin previews rendered notification content.
  5. Admin saves or deletes the template.

Diagram

Edge Cases

  • Template missing: Runtime templated notification sending fails or logs an error depending on caller.
  • Language fallback: Runtime delivery falls back to English when available.
  • Delete: Deleting a template can affect in-app notification generation.

Current Implementation Notes

  • Frontend: frontend/src/app/pages/admin/system-settings.tsx, frontend/src/app/pages/admin/notification-template-detail.tsx
  • Backend: backend/internal/services/in_app_notification_service.go

Screenshot Status

  • Not captured.