Repository navigation
[2.1] Fixes #36393: Sort the task list newest or oldest first, and merge a user's tasks in that order - #36512
Conversation
…user's tasks in that order (#36439) * fix(ui): merge a user's tasks newest first, matching the task list order The task list endpoints now page by (createdAt, id), newest first (#36395). The user Tasks tab merges its assigned and created lists with a comparator that still assumed (name, id) ascending, so it showed the oldest tasks first and held back most of each page. * feat(ui): sort the task list newest or oldest first Adds a Sort by menu (Newest first / Oldest first) beside the Inbox task filters. The choice is sent as the list endpoints' sortOrder, so the order holds across cursor pages, and the profile Tasks tab merges its assigned and created sources in the same order. * docs(decisions): record that the Inbox task list sorts only by creation time (cherry picked from commit bb41b64)
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved🟡 Medium risk · Sending sortOrder through paginated task lists and merging assigned and created results by creation time could show tasks out of order or repeat them. Adds a Newest/Oldest first sort control to the Inbox task list, sent to the server as VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
|



Describe your changes:
Fixes #36393
Backport of #36439 to
2.1. The diff is the same as #36439's, and it cherry-picked cleanly. It depends on thesortOrderparam of the task list endpoints, which #36453 already brought to2.1.sortOrder, so the order holds across "Load more". It is also part of the list's cache key.(createdAt, id)in the chosen direction. Before, it assumed the old name order: pages came out oldest first, "Load more" showed a task or two at a time, and a task could appear twice.With Group: Type, groups keep their urgency order and the sort applies within each group. The sort scope is recorded in ADR:2026-10-28-inbox-task-list-sorts-only-by-creation-time, which this PR carries over.
Type of change:
Tests:
Unit tests
On this branch:
npx jest src/components/discovery/personal-space/InboxPagepasses 43 suites, 742 tests.eslinton the changed files is clean,tscreports no errors inInboxPage/ortasksAPI.ts, andcheck_decision_records.pyis clean.Backend integration tests
NOT NEEDED: UI-only change. The backend half is #36453.
Ingestion integration tests
N/A: no ingestion changes.
Playwright (UI) tests
Not re-run on
2.1. Checked by hand on #36439 against a server with thesortOrderendpoints.Checklist:
Fixes <issue-number>: <short explanation>🤖 Generated with Claude Code