Skip to content

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

Closed

Description

@gkhngyk

Problem

On the citation URL detail page, the "Cited in" table paginates through the shared TablePager, but the "Prompts breakdown" table right below it renders every row of promptGroups unbounded — the server action neither caps nor paginates it. A heavily-cited URL produces an arbitrarily long table. The breakdown table also has no empty state: with zero groups it renders a bare header with an empty body.

Evidence

Suggested fix

Add a second usePagination instance for promptGroups, slice the rows with pager.start/pager.end, render TablePager under the table, and add a one-line muted empty state when there are no groups (matching the "Cited in" table's tone).

Acceptance criteria

  • Prompts breakdown shows at most one page of rows with the shared pager below it.
  • An empty breakdown renders a friendly empty message instead of a bare table.

Activity

  1. added
    enhancement
    good first issue
    on Aug 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementgood first issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions