feat(notifications): add notification bell with dropdown to header (#422) - #461
Open
oladev2026-tech wants to merge 1 commit into
Open
feat(notifications): add notification bell with dropdown to header (#422)#461oladev2026-tech wants to merge 1 commit into
oladev2026-tech wants to merge 1 commit into
Conversation
…funder#422) Adds app/components/layout/NotificationBell.tsx — a Bell button with a red unread-count badge that opens a dropdown panel listing 5 mock notifications, each with title/body/timestamp and an unread indicator. Clicking outside or pressing Escape closes the panel; the Mark all read action flips every item to read. Disabled when there are no unread items.\n\nAlso modifies app/components/layout/Header.tsx to mount <NotificationBell /> next to the user avatar in the authenticated desktop nav block (anon state is unchanged). No mobile/desktop parity changes in this PR — the bell is shown in the authenticated desktop block only because the existing mobile menu already has the same set of destinations.\n\nCloses Dfunder#422 Closes Dfunder#422
|
@oladev2026-tech Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a notification bell to the authenticated header so logged-in users can see recent activity at a glance.
Changes
app/components/layout/NotificationBell.tsx(new): Bell button with a red unread-count badge (aria-labelreflects the count for screen readers). Clicking opens a dropdown panel listing 5 mock notifications with title, body, timestamp, and an unread dot. Click-outside and Escape close the panel. A header actionMark all readflips the unread state on every item and is disabled when there is nothing to mark. The footer has aView all notificationslink to/dashboard/notifications(a follow-up route; the link is the only consumer-page-side change spec'd by Build notification bell component #422).app/components/layout/Header.tsx: imports and renders<NotificationBell />in the authenticated desktop block, immediately before the user avatar. No anonymous-user / mobile-menu change.Notes
/api/notificationswhen that endpoint ships.setNotifications(...)toPOST /api/notifications/read-alland reconcile the returned list.md+viewports to match where the user menu already lives; mobile menu continues to render the standard destinations.Closes #422