Skip to content

fix(platform): notifications ordering, no dead rows, nav (#2377) - #2480

Merged
cursor[bot] merged 1 commit into
mainfrom
cursor/fix-2377-notifications-ordering-nav-6542
Jul 4, 2026
Merged

cursor[bot] merged 1 commit into
mainfrom
cursor/fix-2377-notifications-ordering-nav-6542

Conversation

@yannickmonney

Copy link
Copy Markdown
Contributor

Summary

Fixes #2377 — all three parts:

  • Global newest-first ordering — a pure mergeNotificationsByRecency sorts the loaded personal + org pages by createdAt desc (stable tie-break) instead of concatenating per source, so a newer org alert can't be outranked by an older personal item.
  • No dead rows — both target resolvers now always return a target (legacy personal rows → project/org-home fallback; linkless org rows → category fallback), so no read notification renders as an inert line.
  • Nav target for every type — personal task→modal (unchanged), project→project overview, else org home; org link.kind routes unchanged, linkless security→Governance and system→Automations. Where the payload carried no run/execution id, it maps to the most sensible existing landing page (no invented routes; noted).

Checklist

  • bun run check — type-aware lint (0/0), typecheck clean (validates every router to target), test:ui (22, incl. new merge + target-fallback tests) passing.
  • lint:sast — N/A (Opengrep not cached).
  • Translations — N/A (ordering/route logic only).

Test plan

Open notifications with mixed personal/org items → newest-first across sources; every row (including legacy/linkless) navigates somewhere sensible on click.

Open in Web Open in Cursor 

@cursor
cursor Bot marked this pull request as ready for review July 4, 2026 10:51
@cursor
cursor Bot merged commit 67f18ca into main Jul 4, 2026
24 checks passed
@cursor
cursor Bot deleted the cursor/fix-2377-notifications-ordering-nav-6542 branch July 4, 2026 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

2 participants