Join our community: https://t.me/+DOylgFv1jyJlNzM0
Description
NotificationDropdown currently polls fetchUserEvents() only when the dropdown opens. There is no live unread count badge — users have no way to know events happened without opening the dropdown.
What Needs to Happen
- Use
useStreamEvents({ userPublicKeys: [publicKey] }) to receive real-time events
- Maintain an unread count in local state; increment on each incoming event while dropdown is closed
- Show the unread count badge on the bell icon (red dot with number)
- Clear unread count when dropdown opens
- Prepend live events to the notification list (max 20, newest first)
- Handle all event types including
PAUSED and RESUMED
Files
frontend/src/components/NotificationDropdown.tsx
Acceptance Criteria
Description
NotificationDropdowncurrently pollsfetchUserEvents()only when the dropdown opens. There is no live unread count badge — users have no way to know events happened without opening the dropdown.What Needs to Happen
useStreamEvents({ userPublicKeys: [publicKey] })to receive real-time eventsPAUSEDandRESUMEDFiles
frontend/src/components/NotificationDropdown.tsxAcceptance Criteria