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 |
||
|---|---|---|
| .. | ||
| actions.ts | ||
| page.tsx | ||