Skip to content

Improvement: Notifications — global newest-first ordering, no dead rows, and a navigation target for every type #2377

Closed

Description

@yannickmonney

Problem

Notifications are not sorted as one stream, are not always clickable, and don't always lead to the place where the user can see what happened.

Current behavior

  • services/platform/app/features/notifications/components/notification-list-panel.tsx:280-341 renders the personal stream first and the org stream after it — two concatenated lists, so items are not globally newest-first (an old personal item outranks a new org alert).
  • A row is a link only when lib/notification-target.ts resolves a target:
    • personal task-bound types need taskId + projectId (legacy rows without them are dead);
    • org rows navigate only for link.kind ∈ {agent, audit-logs, dsar, security-monitoring} — generic workflow alerts and legacy rows have no target and are not clickable.
  • Sorting inside each stream is fine (Convex by_org_created desc, convex/notifications/queries.ts:50-56); the Unread/All filter is client-side.

Proposed change

  • Merge the two streams into one list sorted by createdAt desc (keep visual distinction via icon/badge, not position).
  • Give every notification type a navigation target (or an explicit detail popover when nothing exists to open); never render a silently dead row.
  • Audit each type: task events → task modal; agent alerts → agent; workflow failures → the execution/run view; system alerts → the relevant settings page.

Acceptance criteria

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions