Skip to content

Wire NotificationDropdown to live SSE events with unread count badge #360

@ogazboiz

Description

@ogazboiz

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

  • Unread badge updates in real-time without opening dropdown
  • PAUSED and RESUMED events produce notifications
  • Badge cleared when dropdown opens

Metadata

Metadata

Labels

Stellar WaveIssues in the Stellar wave programfrontendFrontend related tasks

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions