Files
slp-modular-cms/aidlc-docs/features/contact-forms-module/construction/cms-u12-unread-ux/code/summary.md
T

1.2 KiB

CMS-U12 — Unread indication, status placement and dashboard tile (summary)

  • Model (unchanged, no backend work): ContactMessageStatus New/Read/Archived/Spam. New = unread; the detail dialog already marks a new message read when opened; unreadCount (status New, spam excluded) is part of every list answer; PATCH /contact-messages/{id} already accepts new.
  • Frontend: status row moved above the message text in the detail; "Mark as unread" button for read messages (closes the dialog, so it is not marked read again); dot before the name for unread rows (role="img", accessible name "Unread", plus the existing bold row and status badge); MessagesTile on the dashboard (unread count, link to /messages), shown only where the sidebar entry is shown (module loaded, role Owner/Administrator, management API answers); nl/en.
  • Tests: dot with accessible name only for unread, status above body, mark-as-unread round trip (counter + dot), tile count + link, tile hidden without module and on 404. Full frontend suite 482/482, eslint and tsc clean.
  • Decisions (small, within the request): dot before the name; the dashboard reads the counter from GET /contact-messages?page=1&pageSize=1.