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: empty-state Generate button ignores the isCloud restriction (#699)

Kyle Netterville40bf2d5bf6db
diff --git a/web/messages/en.json b/web/messages/en.json
index 8db280f54..51cc52dde 100644
--- a/web/messages/en.json
+++ b/web/messages/en.json
@@ -246,6 +246,7 @@
"description": "AI-powered content recommendations to improve your visibility in AI-generated answers.",
"opportunities": "Opportunities",
"generate": "Generate Opportunities",
+ "autoGeneratedHint": "Opportunities are generated automatically as your tracking data comes in.",
"regenerate": "Refresh Opportunities",
"generating": "Analyzing...",
"send": "Send",
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/content/page.tsx b/web/src/app/[locale]/(dashboard)/dashboard/content/page.tsx
index 13ab1c338..a0645fa3e 100644
--- a/web/src/app/[locale]/(dashboard)/dashboard/content/page.tsx
+++ b/web/src/app/[locale]/(dashboard)/dashboard/content/page.tsx
@@ -296,7 +296,6 @@ export default function ContentPage() {
},
[loadData],
);
-
// Restore generation state from localStorage on mount
useEffect(() => {
if (!activeBrandId) return;
@@ -389,13 +388,9 @@ export default function ContentPage() {
try {
const ids = Array.from(selectedIds);
-
const result = await bulkUpdateStatus(ids, 'done');
-
toast.success(`Marked ${result.updated} opportunities as done`);
-
setSelectedIds(new Set());
-
await loadData(true);
} catch (err) {
toast.error(err instanceof Error ? err.message : 'Bulk update failed');
@@ -486,14 +481,18 @@ export default function ContentPage() {
<p className="text-sm font-medium">{t('noOpportunities')}</p>
<p className="text-xs text-muted-foreground">{t('noOpportunitiesHint')}</p>
</div>
- <Button onClick={handleGenerate} disabled={generating} size="sm" className="gap-2">
- {generating ? (
- <Loader2 className="h-4 w-4 animate-spin" />
- ) : (
- <Lightbulb className="h-4 w-4" />
- )}
- {generating ? t('generating') : t('generate')}
- </Button>
+ {!isCloud ? (
+ <Button onClick={handleGenerate} disabled={generating} size="sm" className="gap-2">
+ {generating ? (
+ <Loader2 className="h-4 w-4 animate-spin" />
+ ) : (
+ <Lightbulb className="h-4 w-4" />
+ )}
+ {generating ? t('generating') : t('generate')}
+ </Button>
+ ) : (
+ <p className="text-xs text-muted-foreground">{t('autoGeneratedHint')}</p>
+ )}
</CardContent>
</Card>
) : (