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.

fix(insights): suppress error toasts on silent background refresh (#14)

Gökhan Geyika8464d527641
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/insights/page.tsx b/web/src/app/[locale]/(dashboard)/dashboard/insights/page.tsx
index 37e0ca5b9..a973f28a6 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/insights/page.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/insights/page.tsx
@@ -1471,9 +1471,16 @@ export default function InsightsPage() {
),
);
} catch (err) {
- toast.error(
- err instanceof Error ? err.message : 'Failed to load insights',
- );
+ // Silent refreshes fire every ~10s while a tracking job runs; a transient
+ // 5xx or network blip there shouldn't pop a red toast — the next poll
+ // will retry and the user sees nothing.
+ if (!silent) {
+ toast.error(
+ err instanceof Error ? err.message : 'Failed to load insights',
+ );
+ } else {
+ console.warn('[insights] silent refresh failed', err);
+ }
} finally {
setIsLoading(false);
}