Skip to content

fix(prompts): unify pagination across prompts and fan-out tables - #545

Closed
monndler wants to merge 3 commits into
ansvisor:mainfrom
monndler:fix/pagination
Closed

monndler wants to merge 3 commits into
ansvisor:mainfrom
monndler:fix/pagination

Conversation

@monndler

@monndler monndler commented Jul 28, 2026 •

Copy link
Copy Markdown

Summary

Standardize pagination across the Prompts pages by replacing custom pagination with the shared TablePager and usePagination components. The main prompts list is now paginated, and the fan-out tab uses the same pagination UI as the Citations page for a consistent user experience.

Related issue

Closes #544

Type of change

  • fix — Bug fix

Checklist

  • Branch follows the naming convention (feature/, fix/, chore/, docs/)
  • Commits follow Conventional Commits
  • yarn lint passes (run from web/)
  • yarn typecheck passes (run from web/)
  • yarn format:check passes (run from web/)
  • Changes are focused — one concern per PR

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Welcome to Ansvisor, and thank you for your first PR! A maintainer will be by soon to review.

In the meantime, two things that make review faster:

  • A short description of why the change matters, not just what it does — most of our PRs link a Fixes #... to the issue that explains the why.
  • A quick local test note if there's anything worth eyeballing in the browser.

If you'd like to keep an eye on where Ansvisor goes next, a ⭐ on the repo helps others discover it (and Watch sends you a ping when related issues land). Either way — looking forward to your next one.

@gkhngyk gkhngyk 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 for taking this on! The approach is right — three things need fixing before it can go green:

  1. Typecheck breaks: classifyProgressively still references PAGE_SIZE (two spots, around lines 98–99), but the constant was renamed to FANOUT_PAGE_SIZE in this PR — so PAGE_SIZE is now undefined in this file. CI didn't reach typecheck because the Prettier step fails first.
  2. Prettier: the trailing newline at the end of prompts/page.tsx was removed — running yarn format from web/ fixes it.
  3. PR body: "Closes #534" should be "Closes #544" (this PR implements #544; #534 is an unrelated shipped feature).

Heads-up: #546 addresses the same issue. Since this PR was opened first, we'll hold the other one — if the fixes land here within the next ~3 days, this PR gets merged.

@monndler monndler left a comment •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

All three items fixed — FANOUT_PAGE_SIZE reference corrected, trailing newline restored, and issue link updated to #544

@gkhngyk

gkhngyk commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Thanks for the quick fixes — typecheck, lint and tests all pass locally now. One last thing: CI is still red on the Prettier step because lines 99–101 in _fanout-tab.tsx lost their indentation. Running npx prettier --write "src/app/[locale]/(dashboard)/dashboard/prompts/_fanout-tab.tsx" from web/ and pushing should turn everything green.

@gkhngyk

gkhngyk commented Aug 1, 2026

Copy link
Copy Markdown
Contributor

Closing this one — #546 (by the original issue claimant) landed with the shared-TablePager approach, and the remaining formatting fix here didn't arrive within the window we set. Thanks for the work and the quick fixes along the way — hope to see you on another issue!

@gkhngyk gkhngyk closed this Aug 1, 2026
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.

Unify table pagination on the Prompts page — use the shared TablePager (citations-style)

2 participants