Skip to content

VS-18 — Risk Alerts Notification Badge #67

Open

Description

@Nicolas-Dmb

What to build

A persistent notification badge in the app navigation showing the count of unseen risk alerts, backed by a live Firestore listener on the risk_alerts collection — the same source used by VS-10's dashboard activity panel. No real push notifications (this is a website, not a native app): just an in-app badge + list.

Acceptance criteria

  • Badge on the navigation icon shows the count of risk_alerts documents with detected_at more recent than users/{uid}.last_seen_alert_at
  • Badge updates live via onSnapshot — no polling
  • Opening the alerts list marks currently-visible alerts as seen by writing users/{uid}.last_seen_alert_at
  • Badge count resets to 0 once alerts are seen
  • No browser/OS push notifications — explicitly out of scope

Blocked by

VS-10 Dashboard Vertical Slice v1 (KPI + Activity + Map Summary)

Activity

  1. self-assigned this
    on Oct 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

featureExtra attention is needed

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions