1
0
Fork 0
polaris-task-force/src/app/api
Z8MB1E 66e70d3d56 feat(notifications): scope notification read state per recipient
Read state is personal to the recipient. Marking a notification read now
only ever flips the acting user's own rows — never another user's, even
when staff view it via read-all oversight (which would otherwise hide it
from its real owner).

- add /api/notifications/inbox endpoint that enriches each row with
  ownerId, ownerName, and isMine so the bell can label "meant for
  someone else" rows
- move mark-read logic into per-user lib helpers (markNotificationsReadForUser,
  markAllNotificationsReadForUser) and have the actions delegate
- surface ownership in the bell UI and skip marking rows that aren't mine
2026-10-09 13:13:16 -04:00
..
arma/v1 feat(reinforcement-pools): store per-pool balances and sync to the game bridge 2026-10-07 00:28:42 -04:00
game-structures/set-labor-headcount feat(game-structures): add Labor Crew admin panel for staffing writes 2026-10-07 23:28:35 -04:00
game-tick/notify feat(realtime): add game-tick SSE notification pipeline 2026-08-02 02:03:56 -04:00
health feat(version): expose build metadata 2026-08-27 18:36:11 -04:00
impersonation feat(impersonation): implement user impersonation functionality and UI 2026-08-21 01:41:14 -04:00
map-features feat(map): add Arma-style coordinate grid config, overlay and mission-map wiring 2026-10-05 03:17:52 -04:00
map-import feat(map): gate feature authoring and structure placement behind dedicated permissions 2026-09-30 14:50:14 -04:00
mission-reminder feat(intelligence): add mission feedback reminders 2026-08-28 00:20:41 -04:00
notifications/inbox feat(notifications): scope notification read state per recipient 2026-10-09 13:13:16 -04:00
realtime feat(presence): add presence channel handling in real-time updates 2026-08-28 22:08:37 -04:00
surveys/pending feat(surveys): periodic reminder toasts for pending surveys 2026-09-23 21:07:13 -04:00
tech-tree/positions fix(tech-tree): save canvas positions in one request so auto-arrange cannot overload the server 2026-10-03 04:08:29 -04:00
version feat(version): expose build metadata 2026-08-27 18:36:11 -04:00