Skip to content

A duplicate review filter pages only the pairs it matches - #1495

Merged
WaylandYang merged 2 commits into
deeplethe:devfrom
Maya-Kid:codex/fix-duplicate-review-pagination
Nov 16, 2026
Merged

WaylandYang merged 2 commits into
deeplethe:devfrom
Maya-Kid:codex/fix-duplicate-review-pagination

Conversation

@Maya-Kid

Copy link
Copy Markdown
Contributor

When the duplicate review queue has nine pairs but only one matches Same type, the list is filtered but the pager still shows 1–6 of 9. Next requests offset 6 and displays an empty list even though the filter badge still says 1.

Use the existing per-type counts for both the filter badges and the duplicate pager. All keeps the overall count, including pairs without a type, and switching filters still returns to page one. The API and other review queues are unchanged.

Validation on Linux x86_64 at d75395e7:

  • Real Review page in Chromium with mocked API responses: failed on the original dev when Same type offered a second page; passed with the fix. Also exercised All, Types differ, and filter switches from page two.
  • The regular Vitest suite covers a single matching pair and the proper last page for All and Types differ.
  • Node 20.20.2 / pnpm 10.2.1: frozen install, 341 web tests, 15 benchmark scoring tests, and production build passed.

Signed-off-by: Maya Kid <BinjunYann@gmail.com>

@WaylandYang WaylandYang left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks — the pager total now comes from the same filter as the list. Merging.

@WaylandYang
WaylandYang merged commit c157e96 into deeplethe:dev Nov 16, 2026
6 checks passed
@Maya-Kid
Maya-Kid deleted the codex/fix-duplicate-review-pagination branch November 29, 2026 05:59
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.

2 participants