Open-source agentic AI Search Execution Platform. Track AI visibility, find opportunities, and let agents turn signals into prioritized actions and drafted fixes across ChatGPT, Claude, Gemini, Google AI Overviews, Google AI Mode, Perplexity, Grok, and Microsoft Copilot.
TypeScript aeoai-agentai-searchanswer-engine-optimizationbrand-monitoringchatgptclaudecopilotdockergeminigeogoogle-ai-overviewsgrokmcpnextjsopen-sourceperplexityseosupabasetypescript
fix(fanout): replace full-enumeration pager with windowed pager with ellipsis (#455)
Maqbool Ahmed3e35540c0058
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5ad2021a5..d84cc7eef 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0## [Unreleased]+### Fixed++- Prompts / Query Fan-out: the High frequency pager no longer renders one button per page — replaced with a windowed pager (`‹ 1 … n-1 n n+1 … last ›`) that caps at ~9 elements, preventing overflow on brands with hundreds of pages; Previous/Next chevron buttons added, disabled at boundaries; ellipsis shown as a non-interactive span; all page numbers shown without ellipsis when total pages ≤ 7 (#446)++## [0.1.6] - 2026-07-12### Addeddiff --git a/web/src/app/[locale]/(dashboard)/dashboard/prompts/_fanout-tab.tsx b/web/src/app/[locale]/(dashboard)/dashboard/prompts/_fanout-tab.tsxindex 4a8d7f62d..f93095209 100644--- a/web/src/app/[locale]/(dashboard)/dashboard/prompts/_fanout-tab.tsx+++ b/web/src/app/[locale]/(dashboard)/dashboard/prompts/_fanout-tab.tsx@@ -299,6 +299,20 @@ function EmptyState() {);}+function getPagerItems(page: number, totalPages: number): (number | '...')[] {+ if (totalPages <= 7) {+ return Array.from({ length: totalPages }, (_, i) => i + 1);+ }+ const items: (number | '...')[] = [1];+ if (page > 3) items.push('...');+ for (let p = Math.max(2, page - 1); p <= Math.min(totalPages - 1, page + 1); p++) {+ items.push(p);+ }+ if (page < totalPages - 2) items.push('...');+ items.push(totalPages);+ return items;+}+function HighFrequencyView({subQueries,intents,@@ -358,20 +372,44 @@ function HighFrequencyView({</Table>{totalPages > 1 && (<div className="flex items-center justify-center gap-1 pt-4">- {Array.from({ length: totalPages }, (_, i) => {- const p = i + 1;- return (+ <Button+ variant="ghost"+ size="sm"+ className="h-7 w-7 p-0 text-xs"+ onClick={() => onPageChange(page - 1)}+ disabled={page === 1}+ >+ ‹+ </Button>+ {getPagerItems(page, totalPages).map((item, idx) =>+ item === '...' ? (+ <span+ key={`ellipsis-${idx}`}+ className="flex h-7 w-7 items-center justify-center text-xs text-muted-foreground"+ >+ …+ </span>+ ) : (<Button- key={p}- variant={page === p ? 'default' : 'ghost'}+ key={item}+ variant={page === item ? 'default' : 'ghost'}size="sm"className="h-7 w-7 p-0 text-xs"- onClick={() => onPageChange(p)}+ onClick={() => onPageChange(item as number)}>- {p}+ {item}</Button>- );- })}+ ),+ )}+ <Button+ variant="ghost"+ size="sm"+ className="h-7 w-7 p-0 text-xs"+ onClick={() => onPageChange(page + 1)}+ disabled={page === totalPages}+ >+ ›+ </Button></div>)}</>