GeezerVison is showing github.com — Profile: notification settings for the full event list, split advice seeker vs counsellor · Issue #871 · OpenResilienceInitiative/ORISO-Frontend
Profile: notification settings for the full event list, split advice seeker vs counsellor #871Description
Status 2026-09-26 · In review · Readiness 4/5 — PR #1571 targets dev and makes the existing advice-seeker/counsellor email matrix reachable at /profile/einstellungen/email when modern notifications are enabled. It also removes the duplicate dialog email checkbox and links to the correct section. Local verification: 5,777 unit tests, ESLint/TypeScript, Stylelint, production build and 3 targeted Storybook interactions passed. All named CI checks are green and human review is approved; no merge, deployed Dev route, preference persistence or mail suppression is proven.
PR #1415 remains open with older, larger email changes and conflicts. Its settings slice is superseded by #1571; reconcile its remaining changes with the separate language/security work before closing it.
Readiness = one point each for: plain-language goal, testable acceptance criteria, dependencies resolved, code location correct on dev, verification path defined. Epic: #828.
Today a user can switch off four things — initialEnquiryNotificationEnabled, newChatMessageNotificationEnabled, reassignmentNotificationEnabled, appointmentNotificationEnabled — plus two EmailType toggles. That covers a small and fairly arbitrary slice of what actually gets sent.
Extend the settings to cover the matrix from the notification ADR, with the two roles clearly separated:
- Advice seekers see a short list. A new message, an appointment, their account. That is roughly it — someone in counselling should not be handed an operations console, and every extra switch is one more thing to get wrong at a bad moment.
- Counsellors see the operational stream: new and direct enquiries, the daily digest, assignments, handovers, feedback messages, team changes.
The two lists should not merely be filtered views of one component with different flags — they are different products for different people, and the advice-seeker one carries a duty of care the counsellor one does not.
Blocked by the notification matrix ADR.
Part of #828.
Reviewer test plan
- Advice seeker sees only the occasions that concern them
- Counsellor sees the operational occasions
- Every switch actually suppresses the mail it names — verified by triggering it
- Every mail footer that offers unsubscribe points to an actual role-specific switch, or the unsubscribe link is removed from that occasion
- Occasions that must not be switchable (password reset, OTP) are absent, not shown-and-disabled
- Settings survive a reload and a re-login
- Checked at 375px and at 320px (narrow phone)
- Checked at 375px and at 320px (narrow phone)
Current delivery status — 30 September 2026
Working status: In progress; planned for v2.0.10.
Developed: Role-specific settings, preference navigation and the dirty-draft guard are proposed.
Still open: Human review and deployed role-by-role behavior remain.
Scope: Do not conflate email and browser/in-app preferences.
| Relevant change |
Verified GitHub state |
| Frontend #1572 |
Open for review; human review/merge remains. |
| Frontend #1594 |
Open for review; human review/merge remains. |
Next action: Review Frontend #1594 and exercise all role switches on Dev.
Acceptance still needed: Save, cancel and discard work correctly; each toggle controls only its corresponding delivery.
The release and lane are planning fields. Existing readiness scores are retained; neither a board move nor a green PR establishes deployment or received mail.
For developers — audit boundary (skip for the progress overview):
Updated: 2026-09-30 11:47 UTC.
Native child of https://github.com/OpenResilienceInitiative/ORISO-Frontend/issues/828; live recursive Epic828 inventory contains58 unique descendants.
PR state/review/check snapshot:2026-09-30T11:29:19UTC. Source notes retain the dated code audit; this pass does not repeat every code or runtime test.
Current source, local verification, CI, human review, merge, deployment and real-mail receipt remain separate gates.
No new account, merge, deployment or acceptance was performed by this description update.
Still open — five footer links without a matching switch
The generated catalogue marks 15 of 23 mail occasions as unsubscribable. The current advice-seeker and counsellor matrix recognises ten distinct occasions. Five footer links therefore lead to the settings page without a corresponding switch. This is a source finding, not a deployed-mail result. The SMTP test is sent only on request; the team-change template says the Träger decides whether it is sent. Product needs to choose a personal switch with real sender suppression or remove the misleading unsubscribe link for each affected occasion.
For developers — exact source IDs and pointers:
Unmatched: willkommen, beraterin-kontakt, mitteilung, team-aenderung, smtp-test.
Frontend source: src/emails/content/emailCatalogue.ts (emailIsUnsubscribable); src/components/profile/EmailNotifications/notificationMatrix.ts (role switches).
Generated data: src/emails/dist/catalogue.json. Existing team-change producer: UserService SupervisorAddedEmailNotificationService.renderTeamChange.
The same five are unmatched on the #1568 and #1572 source heads checked on 2026-09-27.
Release and delivery state — correction on 1 October 2026
This implementation is merged and belongs to v2.0.10. It is queued in QA internal for Dev/Stage. Missing agent test evidence or separate follow-up work does not move delivered scope back into development. Frank confirmed that the team performed manual testing.
Delivering PRs: #1571, #1572. Activitycoderabbitai commented on Aug 2, 2026
🔗 Related PRs
#533 - fix: allow consultants to disable 2FA [merged]
#579 - feat(notifications): two-slot sound model + decoupled playback + sound dialog (#576) [merged]
#586 - feat(notifications): config-driven playback, Safari hardening, arrow icons, panel spacing [merged]
#776 - fix(notifications): call-ring reliability, banner routing, remove dead sound model [merged]
#852 - fix(enquiry): preserve first-message notification producer (#851) [open]
📝 Issue Planner
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord! Storypapst commented on Aug 3, 2026 CollaboratorAuthor More actions Blocked, not started. Reporting rather than silently parking it.
Two things have to happen first, and neither is mine to decide:
- ADR-019 has to be confirmed — it is written and filed (
docs/architecture/adr-019-email-notification-matrix.md, commit 029bbbec) and proposes two separate matrices: nine occasions for advice seekers with three switchable, seventeen for counsellors with almost all switchable. That is question 4 on EPIC: transactional e-mails — one design system across every sending path #828.
- The backend fields do not exist.
NotificationsSettingsDTO has four flags plus two EmailType values, against 22 designed occasions. Most rows in the matrix have nothing to switch.
What today's screen actually looks like, for whoever picks this up: src/components/profile/EmailNotifications/index.tsx renders one toggle, emailNotificationsEnabled, plus a "no e-mail set" state. It is not a filtered view of a longer list — the longer list has never existed on this screen.
What is already in place to build against:
EMAIL_CLASS and EMAIL_AUDIENCE in src/emails/content/emailCatalogue.ts classify every occasion by role and by who may switch it off.
src/emails/dist/catalogue.json carries the same to any consumer, including unsubscribable per occasion.
- The mails already link to
…/profile/settings/notifications?mail=<occasion> (ORISO-UserService#958), so the screen has the parameter waiting for it.
Also worth deciding here rather than later: appointmentNotificationEnabled is on this screen's data today and nothing sends an appointment mail (#874). Either the sender gets built or the toggle is withdrawn — it should not survive the rebuild as-is. Storypapst commented on Aug 3, 2026 CollaboratorAuthor More actions Built — ADR-019 confirmed, so this is done. Frontend commit 408b47eb (PR #881); backend commit 33e80b6c (ORISO-UserService#958).
Two lists, not one filtered by role. Before this the screen had exactly one switch, "E-Mail-Benachrichtigungen zulassen".
| Advice seeker (3) |
Counsellor (7) |
| Neue Nachricht |
Neue Anfragen |
| Termine |
Tagesübersicht |
| Wartung und Hinweise |
Nachrichten von Ratsuchenden |
|
Zuweisungen |
|
Übergaben |
|
Fachaustausch |
|
Wartung und Hinweise |
Backend. The settings are a JSON blob rather than columns, so the three missing occasions — assignmentNotificationEnabled, feedbackNotificationEnabled, serviceNoticeNotificationEnabled — are an API-schema change with no migration. All three default to on: ADR-019 makes them switchable, not opt-in, so a counsellor who never opens the screen still gets their work queue.
The merge was seven near-identical if-blocks and is now a declarative list, with a reflection test that walks the generated DTO. That is not tidying: a forgotten block does not fail — the switch renders, the user flips it, the save succeeds, and the value is dropped.
Three things the screen now does that it did not. It names what is sent regardless, so someone arriving from an unsubscribe link on a password-reset mail reads why there is no switch instead of hunting for one. It resolves ?mail=<occasion> and highlights the matching switch — which closes the other half of #872. And it carries its own stylesheet: profile.styles previously only reached it because a sibling profile component happened to import it first, so on its own route it would have rendered unstyled.
Two things found by looking at the rendered screen rather than assuming. The Storybook story hit the "needs live app data" panel because the preview already wraps every story in a MemoryRouter and mine nested a second one. And the highlight used --m3-primary-container, which in this theme is #cc1e1c — the strong accent, giving near-black text on saturated red that read as an error rather than as "this one".
Two things for the reviewer to decide, both pre-existing:
appointmentNotificationEnabled is still read nowhere in UserService — only the merge touches it. The switch is on the advice-seeker list because ADR-019 puts appointments there, but until Feature request: appointment mail — the toggle is already shipped, nothing sends it #874 ships it controls nothing. Leaving it visible is a deliberate call and worth confirming.
- A counsellor's two most-used switches are not in the settings DTO at all.
notifyEnquiriesRepeating and notifyNewChatMessageFromAdviceSeeker are columns on the consultant, reached through EmailToggle/EmailType. The screen presents one coherent list over both mechanisms; unifying the storage is a migration and is not in this change.
Verified: 285 Storybook stories swept clean, 946 unit tests, both role lists and the deep-link state reviewed as screenshots. Stories: Organisms/EmailNotificationSettings. Storypapst commented on Sep 22, 2026 CollaboratorAuthor More actions Partly delivered: the new notification settings are built on dev, but no user can reach them.
Evidence (ORISO-Frontend dev @ 1803fd91, re-checked 23 Sep 2026)
- The screen and its split lists exist in
src/components/profile/EmailNotifications/ (notificationMatrix.ts).
- The route is switched off:
profile.routes.ts:225 has condition: () => false, so /profile/notifications/email is never registered.
Still open
- Make the screen reachable. The fix is in feat(emails): integrate email kit and authoritative settings on dev #1415 (open against
dev, changes requested). It mounts the panels under /profile/einstellungen → /email behind a toggle, instead of switching the dead route on.
- Every test-plan item that needs a real user: triggering each switch, reload and re-login, narrow phones.
BjoernLudwig commented on Sep 24, 2026 Agreed to work on this as part of 2.0.10 in the release planning on 2026-09-23. Storypapst commented on Sep 26, 2026 CollaboratorAuthor More actions Visual evidence for PR #1571, captured from Storybook with origin/dev and commit 64a30b99 at a 390px viewport. It shows the notification dialog and the existing counsellor matrix. Route reachability is covered by the PR's test; these images do not prove deployment or mail suppression.
Before (origin/dev):

After (64a30b99):

Existing counsellor matrix, now reachable through the settings route:

MetadataMetadataStatusShow more project fields
DevelopmentNo branches or pull requestsIssue actions
|