1.4 KiB
1.4 KiB
CMS-U6 — Admin UI "Berichten" (summary)
Frontend only. New feature folder frontend/src/features/contact (services, components, page, msw mocks, tests).
- Route
/messages(Owner/Administrator,ModuleGuard Contact, plusContactAvailabilityGuard: a 404 onGET /contact-settingsmeans the host switch is off and the usual not-found page is shown). Sidebar entry "Berichten" only when capabilities listContactand the settings call did not answer 404. - Form switch card (
role=switch, state from the server response, first-time hint, translated errors). - List: chips Inbox/Nieuw/Gelezen/Gearchiveerd/Spam (Nieuw shows
unreadCount), 25 per page, pager, empty states, spam only under its chip, mail status icons with text alternatives. - Detail dialog: line breaks kept, mailto link, status select, "Geen spam", delete with confirmation, resend (sent / not sent / 409 / 429 with Retry-After seconds / disabled with hint when mail is off), translated mail error code and next attempt time. Opening an unread message marks it read (decision approved).
- Texts nl/en under
contact.*andnav.messages; no API titles are shown. - Shared files touched (additive):
lib/api-client.ts(newpatchmethod),Sidebar.tsx(one entry),router.tsx(one route),mocks/index.ts, both translation files. - Verification:
pnpm lintclean,npx tsc -bclean, vitest 58 files / 458 tests (26 new). Not touched: backend, auth/refresh, users, theme assets.