Skip to content

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.

Query Fan-out: open on the 'By prompt' view by default (#453)

Giorgio Maria Federico Birnthaler4a120408bb53
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/prompts/_fanout-tab.tsx b/web/src/app/[locale]/(dashboard)/dashboard/prompts/_fanout-tab.tsx
index 0594aa095..4a8d7f62d 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/prompts/_fanout-tab.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/prompts/_fanout-tab.tsx
@@ -77,7 +77,7 @@ export function QueryFanoutTab({ brandId, onTracked }: QueryFanoutTabProps) {
// Intent is keyed by the lower-cased sub-query (matches the server cache key).
const [intents, setIntents] = useState<Record<string, string>>({});
const [page, setPage] = useState(1);
- const [view, setView] = useState<View>('frequency');
+ const [view, setView] = useState<View>('by-prompt');
const [searchText, setSearchText] = useState('');
const PAGE_SIZE = 10;
@@ -223,24 +223,24 @@ export function QueryFanoutTab({ brandId, onTracked }: QueryFanoutTabProps) {
<button
className={cn(
'rounded px-3 py-1 text-xs font-medium transition-colors',
- view === 'frequency'
+ view === 'by-prompt'
? 'bg-background text-foreground shadow-sm'
: 'text-muted-foreground hover:text-foreground',
)}
- onClick={() => setView('frequency')}
+ onClick={() => setView('by-prompt')}
>
- High frequency
+ By prompt
</button>
<button
className={cn(
'rounded px-3 py-1 text-xs font-medium transition-colors',
- view === 'by-prompt'
+ view === 'frequency'
? 'bg-background text-foreground shadow-sm'
: 'text-muted-foreground hover:text-foreground',
)}
- onClick={() => setView('by-prompt')}
+ onClick={() => setView('frequency')}
>
- By prompt
+ High frequency
</button>
</div>
)}