Operator guideENnotificationstemplates

Notifications

Operator workspace for notification-template inventory, linked email-template status, and notification create or edit workflow.

Reader view

Clean portal guidance

This page keeps the operator explanation, field and action descriptions, and screenshots visible without exposing repo paths, raw sidecars, or editorial-only implementation details.

Narrative content

Page body

What this module is for

Use Notifications to manage the operator-facing templates that power inbox, system, personal, or broadcast notifications.

The module is split across two linked records:

  • the notification record itself, which stores title, localized content, priority, and delivery semantics
  • the linked email-template record, which gives the notification route a reusable HTML shell, preview modal, and row-level status toggle

Operators use this module to:

  • review which notification templates already exist
  • open the create or edit flow for one notification
  • inspect the linked email HTML shell
  • switch the linked email-template row on or off

Main surfaces

  • List: notification inventory built from the shared email-template catalog, filtered down to rows that already have notificationId
  • Form: create and edit workflow for one notification template, including localized content, sender avatar, and priority

Known caveats

  • The list is not backed by a standalone notifications catalog endpoint. It reads the shared email-template dataset from GET /api/admin/get-all-email-templates and keeps only rows that already have notificationId.
  • The row-level status toggle uses the linked email-template update route and flips isActive. It does not call PUT /api/admin/notifications/:notificationId.
  • The preview modal renders the linked email-template HTML in the frontend. It is not a backend preview route for notification JSON content.
  • Backend create supports sendEmail, but the current operator form does not expose a send or preview-send action.
Related references

Related pages

pageNotifications / Form

Create and edit workflow for one notification template, including localized content, sender avatar, and priority settings.

pageNotifications / List

Notification-template inventory built from linked email-template rows, with create navigation, edit navigation, HTML preview, and linked status toggle.

pageEmail Templates

Operator workspace for email-template inventory, subject and body maintenance, test-send checks, and notification linkage.

pageEmail Templates / Form

Create and edit workflow for one email template, including per-language subject and HTML body, dynamic variables, translation helpers, and test-send.

pageEmail Templates / List

Grouped template inventory with untranslated-template context, CSV export, HTML preview, activation toggle, and edit navigation.

pagePlayers / Inbox

Inbox tab inside the player workspace for reviewing sent notifications, filtering by read state or notification type, and resending or deleting messages.