22 lines
1.1 KiB
Markdown
22 lines
1.1 KiB
Markdown
# 0032 The notification centre is a page on mobile and a panel on desktop
|
|
|
|
Status: Superseded by 0058 · Area: architecture · Date: 2026-10-08 · Decided by: agent
|
|
|
|
## Context
|
|
|
|
U5 §۲ opens the centre from a bell in the top bar: a full-screen pushed page on mobile, a 400px side panel on desktop. Same URL tree in bull and bear (0001).
|
|
|
|
## Decision
|
|
|
|
- `ROUTES.notifications` (`/notifications`) is a `(main)` page in both apps; bull's bell links there, and bear renders it in the 640 column for a direct visit.
|
|
- bear's header bell opens `NotificationPanel` (island `Sheet placement="side"`), loaded with `next/dynamic` on the first click; it closes when an item leads to another page.
|
|
- The bell shows for a member of either role on tab bars and the desktop header, never on pushed bars; its count is a browser-only query, and opening the centre marks all read.
|
|
|
|
## Alternatives
|
|
|
|
- A panel on mobile too: the design asks for a page.
|
|
|
|
## Consequences
|
|
|
|
- Items render the server's Persian title and body; a creator link (`/traders/<profileId>`) is looked up before navigating.
|