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.

Implemented the preferred fix for Issue #938. (#946)

Nikhil Patile0c1aae12163
diff --git a/web/messages/en.json b/web/messages/en.json
index f6976f81e..5b361c860 100644
--- a/web/messages/en.json
+++ b/web/messages/en.json
@@ -1829,7 +1829,10 @@
"totalVolume": "Total Volume",
"trending": "Trending",
"presenceRate": "Presence Rate",
- "gaps": "Content Gaps"
+ "gaps": "Content Gaps",
+ "suggestions": {
+ "measuredSuggestionsKept": "Search Console and Analytics suggestions were kept — dismiss them individually to hide them for 30 days."
+ }
},
"competitors": {
"title": "Competitors",
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/prompts/_suggestions-card.tsx b/web/src/app/[locale]/(dashboard)/dashboard/prompts/_suggestions-card.tsx
index 603dbe36f..3613be96d 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/prompts/_suggestions-card.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/prompts/_suggestions-card.tsx
@@ -2,6 +2,7 @@
import { useEffect, useState, useCallback, useMemo, useTransition, useRef } from 'react';
import { createPortal } from 'react-dom';
+import { useTranslations } from 'next-intl';
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card';
import { Badge } from '@/components/ui/badge';
import { Button } from '@/components/ui/button';
@@ -202,6 +203,10 @@ const SOURCE_FILTER_LABELS: Record<SourceFilter, string> = {
agents: 'Ansvisor Agents only',
};
+function isMeasuredSuggestion(s: PromptSuggestion): boolean {
+ return s.source === 'gsc' || s.source === 'ga';
+}
+
interface Props {
brandId: string;
onAccepted?: () => void;
@@ -251,6 +256,7 @@ function sourceNotice(
}
export function SuggestionsCard({ brandId, onAccepted, sourceStates }: Props) {
+ const t = useTranslations('prompts.suggestions');
const [suggestions, setSuggestions] = useState<PromptSuggestion[]>([]);
const [loading, setLoading] = useState(false);
const [loaded, setLoaded] = useState(false);
@@ -330,14 +336,16 @@ export function SuggestionsCard({ brandId, onAccepted, sourceStates }: Props) {
);
/**
- * Dismiss everything on screen. Kept to what is actually listed rather than
- * "every suggestion for this brand": dismissing a Search Console or
- * Analytics row keeps that query or page out of the pool for 30 days, so
- * clearing a filtered view must not silently suppress rows the user never
- * looked at.
+ * Dismiss only generated rows on screen. Search Console and Analytics rows
+ * carry a 30-day cooldown, so bulk clear keeps them visible unless the user
+ * explicitly dismisses each one.
*/
const handleClearAll = () => {
- const doomed = visible;
+ const preserved = visible.filter(isMeasuredSuggestion);
+ const doomed = visible.filter((s) => !isMeasuredSuggestion(s));
+ if (preserved.length > 0) {
+ toast.info(t('measuredSuggestionsKept'));
+ }
if (doomed.length === 0) return;
setClearing(true);
const ids = new Set(doomed.map((d) => d.id));