Skip to content

feat(prompts): paginate the Query Fan-out "High frequency" table (10 per page) #349

Closed

Description

@gkhngyk

Summary

Turn the current Query Fan-out table into a High frequency table that pages 10 rows at a time. Today the tab renders every observed sub-query in one long list; on brands with a lot of fan-out that's a wall of rows. It's already sorted by Times searched (most-searched first), so paginating at 10/page means page 1 is the 10 highest-frequency sub-queries, page 2 the next 10, and so on, with numbered page controls (1 2 3 4 …).

What to change

  • Frame the existing table on the Query Fan-out tab as High frequency (heading/label), keeping the default sort by Times searched descending.
  • Paginate at 10 rows per page with numbered page navigation.
  • Reset to page 1 when the active brand changes and after a successful track (so the flipped/updated list starts from the top).

Where

Notes

How to test

  1. On a brand with more than 10 observed sub-queries, /dashboard/prompts?tab=fanout shows 10 rows with page controls (1 2 3 4 …); page 1 is the 10 highest Times searched.
  2. Paging forward/back shows the next/previous 10 in the same sort order.
  3. Switching brand or tracking a sub-query resets to page 1.

Activity

  1. added
    enhancement
    good first issue
    help wanted
    on Jul 6, 2026
  2. Maqbool61 commented on Jul 6, 2026

    @Maqbool61
    Contributor

    Hi @gkhngyk 👋 — I'd like to take this one. #342 is merged so the dependency is live. I'll add client-side pagination (10 per page) with numbered controls, reset on brand change and after a successful track, and rename the heading to "High frequency". Single file change in _fanout-tab.tsx.

  3. gkhngyk commented on Jul 6, 2026

    @gkhngyk
    ContributorAuthor

    Thanks @Maqbool61 — assigned to you! 🎉 Your plan is spot on: client-side pagination (10/page) with numbered controls, reset on brand change + after a successful track, and the "High frequency" heading, all in _fanout-tab.tsx.

    Heads-up: PR #353 (the intent column) also touches _fanout-tab.tsx and isn't merged yet — you may want to branch off main after it lands to avoid a conflict, but it's a small file so a rebase is easy either way. Ping here if anything's unclear.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementgood first issuehelp wanted

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions