Frontend Inbox with Hooks
YouruseNotifications hook already implements most inbox requirements.
What useNotifications provides
- Cursor pagination (
loadMore). - Read/unread transitions.
- Star/archive operations.
- Bulk actions (
markAllAsRead,archiveAllRead). - Optional stream integration callback.
Example inbox integration
UX patterns that work well
- Mark read on row-open, not on hover.
- Keep archive action easy but reversible (until hard delete policy).
- Show unread counters per scope in nav.
- Keep filters sticky between navigations.
Related docs
- React Router
useNotifications - React Router
useNotificationStream - React Router
useScopeUnread - Frontend API Notifications Reference
Go-live checklist
- Scope and severity conventions are documented.
- Inbox read/archive/star flows are tested.
- Realtime reconnection behavior is verified.
- Noisy template monitoring is in place.
- Expiry strategy is applied for stale notifications.
