Notification matrix: per-event in-app toggles in the Profile card #756

Merged
Cordy merged 9 commits from feat-755 into main 2026-09-25 23:07:55 +00:00
Owner

Closes #755

The reserved "Notifications — coming" card becomes the per-event mute matrix (approved mockup). The bell is a derived view, so this is an honest per-account filter, not an event pipeline:

  • mutedKinds per user in the notify store, beside the seen/cleared watermarks — follows the account across devices, exempt from the horizon prune (prefs, not watermarks).
  • GET/PUT /api/v1/notifications/prefs against a closed kind set (unknown kind → 422).
  • Feed applies the filter after the derivation cache and before the watermarks: muted kinds leave the list and the unread count; toggling back on resurrects items inside the retention horizon.
  • sent items split by outcome — delivered vs failed (failure is actionable, per Nikola's call).
  • Licence row admin-only, default on, kept mutable because licence health is also on /metrics (cairn_license_*, #437).
  • Matrix card with immediate-save switches; acctNotifSoon key kept for qa749's pin.

Red-green: notifprefs_test.go (round-trip + 422 + cache-primed feed filter with unread count) + qa755.test.js committed failing; one extra splice rev — qa694's global "no hyphen-as-dash in i18n" pin caught " - " in notifPrefFailedD, now em dashes, and the splice gained a self-check for it.

Closes #755 The reserved "Notifications — coming" card becomes the per-event mute matrix (approved mockup). The bell is a derived view, so this is an honest per-account **filter**, not an event pipeline: - `mutedKinds` per user in the notify store, beside the seen/cleared watermarks — follows the account across devices, exempt from the horizon prune (prefs, not watermarks). - `GET/PUT /api/v1/notifications/prefs` against a closed kind set (unknown kind → 422). - Feed applies the filter after the derivation cache and before the watermarks: muted kinds leave the list **and** the unread count; toggling back on resurrects items inside the retention horizon. - `sent` items split by outcome — delivered vs failed (failure is actionable, per Nikola's call). - Licence row admin-only, default on, kept mutable because licence health is also on `/metrics` (`cairn_license_*`, #437). - Matrix card with immediate-save switches; `acctNotifSoon` key kept for qa749's pin. Red-green: `notifprefs_test.go` (round-trip + 422 + cache-primed feed filter with unread count) + `qa755.test.js` committed failing; one extra splice rev — qa694's global "no hyphen-as-dash in i18n" pin caught " - " in `notifPrefFailedD`, now em dashes, and the splice gained a self-check for it.
test(#755): RED — matrix card replaces the placeholder, toggles PUT prefs, i18n ×4
All checks were successful
scout-755 / scout (push) Successful in 1s
c53ae75d2d
chore(#755): one-shot — RED gates, splice, verify, commit, self-remove
Some checks failed
fix-755 / fix (push) Failing after 50s
scout-755 / scout (push) Successful in 1s
847b43127f
chore(#755): splice v2 — em dashes in notifPrefFailedD (qa694 house style: no hyphen-as-dash in i18n)
All checks were successful
fix-755 / fix (push) Successful in 13s
scout-755 / scout (push) Successful in 0s
475ccac1b3
The bell is a derived view, so the matrix is a per-account FILTER: mutedKinds live in the notify store beside the seen/cleared watermarks (never pruned by the horizon, follow the account across devices), served by GET/PUT /api/v1/notifications/prefs against a closed kind set. The feed applies the filter after the derivation cache and before the watermarks, so muted kinds leave the list AND the unread count; toggling back on resurrects items inside the retention horizon. Sent items split by outcome (delivered vs failed - failure is actionable). The dashed placeholder card becomes the matrix: per-event switches saving immediately, licence row admin-only and kept mutable because licence health is also exported on /metrics (#437). All defaults on, i18n x4; the acctNotifSoon key stays for qa749's pin.
chore(#755): changelog one-shot for v0.6.280
All checks were successful
chg-755 / chg (push) Successful in 2s
d353d724fd
docs: changelog for v0.6.280 (#755)
All checks were successful
ci / test-and-build (pull_request) Successful in 1m40s
55bd470374
Cordy merged commit 5f6828b2c6 into main 2026-09-25 23:07:55 +00:00
Cordy deleted branch feat-755 2026-09-25 23:08:00 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Cordy/Cairn#756
No description provided.