You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(citations): paginate the Top Sources Domains/URLs tables (100 rows per page) #395
On /dashboard/citations, the Top Sources card renders the entire Domains and URLs result sets with no limit — DomainsTable and UrlsTable just rows.map(...) over the full arrays (web/src/app/[locale]/(dashboard)/dashboard/citations/page.tsx, ~791 and ~852).
This is amplified by the keepMounted tab optimization from #299/#325: both full tables live in the DOM simultaneously (switching is a CSS visibility toggle). Each row carries a favicon image, category badge, and platform chips — for a brand with thousands of cited domains/URLs the page gets heavy to render and scroll.
Proposal
Client-side pagination, 100 rows per page, independently for the Domains and URLs tabs.
The data is already fully loaded client-side by getCitationsOverview (one server action returns all rows), so no server/API change is needed — paginate by slicing the in-memory arrays.
Add a small pager under each table (Previous / Next + "1–100 of N" is enough; numbered pages optional).
Details to get right
Rank column: DomainsTable renders rank as i + 1 — with pagination it must be page * 100 + i + 1 so ranks stay global.
Independent page state per tab (Domains page 3 shouldn't move the URLs tab).
Reset to page 1 when filters change (date preset, platform, topic, prompt, region, own-domain toggles) — the row set changes under the pager.
Hi @gkhngyk, could you please assign these issues to me? I've already started working on them, and assigning them will help avoid duplicate PRs. Thanks!
Activity
Sam-syntax35 commentedon Jul 10, 2026
Hi @gkhngyk, could you please assign these issues to me? I've already started working on them, and assigning them will help avoid duplicate PRs. Thanks!
feat(citations): paginate Top Sources Domains/URLs tables (100 rows p…