Skip to content

feat(web): paginate the Prompts breakdown table on the citation URL d… - #628

Merged
gkhngyk merged 1 commit into
ansvisor:mainfrom
d180:feature/citation-url-prompts-breakdown-pagination
Aug 3, 2026
Merged

gkhngyk merged 1 commit into
ansvisor:mainfrom
d180:feature/citation-url-prompts-breakdown-pagination

Conversation

@d180

@d180 d180 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

  • On the citation URL detail page, the "Cited in" table paginates via the shared TablePager, but the "Prompts breakdown" table below it rendered every row of promptGroups unbounded — a heavily-cited URL produced an arbitrarily long table. It also had no empty state, rendering a bare header when there were zero groups.
  • Adds a second usePagination instance (promptGroupsPager, same page size as "Cited in"), slices the rows, and renders TablePager underneath — matching the existing pattern one section above.
  • Adds a one-line muted empty state ("No prompts recorded for this URL in the selected window.") matching the tone already used elsewhere on this page.

Related issue

Closes #600

Type of change

  • feat — New feature

Checklist

  • Branch follows the naming convention (feature/)
  • 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

@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.

Matches the Cited in pattern cleanly — same page size, filter-key reset, and the empty state reads well. Thanks!

@gkhngyk
gkhngyk merged commit ebcc185 into ansvisor:main Aug 3, 2026
4 checks passed
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.

Citation URL detail: "Prompts breakdown" table has no pagination or empty state

2 participants