Inbox files
Paged UI, notification polling and row types. Query and event creation live in lib/db.
System explanation · Choosing checks
Source files
| File | Responsibility / entry points |
|---|---|
src/features/inbox/compact-list.tsx
|
Compact inbox rows and viewport-derived page-size handling. inboxPageSize, useInboxPageSize, CompactList |
src/features/inbox/inbox.tsx
|
Home sections, initial-data reuse, section paging, visit marking and periodic
refresh. Inbox, InboxLoading |
src/features/inbox/notifications.tsx
|
Unread-event provider, preferences and timed/focus-triggered polling. NotificationProvider, useNotifications |
src/features/inbox/operations-preview.tsx
|
Static operational descriptions; does not fetch live counts. OperationsPreview |
src/features/inbox/pagination.ts
|
Clamps section pages when totals shrink. InboxPages, InboxTotals, clampInboxPages |
src/features/inbox/types.ts
|
Slim inbox review/event payloads and presentation labels. InboxReview, InboxEvent, eventLabels, eventTime |
Tests
| File | Responsibility / entry points |
|---|---|
src/features/inbox/pagination.test.ts
|
Checks pagination. Example: “shrinking queues return to the last available page without moving other lists”. |