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(action-center): hide the video place in a Getting started step until the videos exist (#1710)
Cihan2391b433db96
diff --git a/web/src/components/getting-started/step-card.test.tsx b/web/src/components/getting-started/step-card.test.tsxindex 02ac7835a..dc0d4a88d 100644--- a/web/src/components/getting-started/step-card.test.tsx+++ b/web/src/components/getting-started/step-card.test.tsx@@ -95,12 +95,12 @@ afterEach(() => {});describe('GettingStartedStepCard', () => {- it('says why and how, with the video’s place, and when it counts as done', async () => {+ it('says why and how, without a video place yet, and when it counts as done', async () => {await render(step({ key: 'competitors', progress: { value: 2, target: 3 } }));expect(text()).toContain('steps.competitors.title');expect(text()).toContain('steps.competitors.why 1');expect(text()).toContain('steps.competitors.how 2');- expect(text()).toContain('panel.videosSoon');+ expect(text()).not.toContain('panel.videosSoon');expect(text()).toContain('panel.doneWhen · 2/3');});diff --git a/web/src/components/getting-started/step-card.tsx b/web/src/components/getting-started/step-card.tsxindex cc501d794..02e06e782 100644--- a/web/src/components/getting-started/step-card.tsx+++ b/web/src/components/getting-started/step-card.tsx@@ -30,6 +30,12 @@ import {const AMBER_NOTE = ACTION_STATUS_BADGE.on_hold;+/**+ * The step videos' place under "How to do this". Off until the videos are+ * recorded: the numbered steps say how meanwhile.+ */+const SHOW_STEP_VIDEOS = false;+/*** A Getting started step's card (AC-ALT2 §6), on the right of the Actions* page: why the step matters, how to do it, and when it counts as done. Its@@ -197,14 +203,21 @@ export function GettingStartedStepCard({<h3 className="text-xs font-semibold uppercase tracking-wider text-muted-foreground">{t('panel.how')}</h3>- {/* The video's place, 16:9, until the videos are recorded. */}- <div className="mt-2 flex aspect-video flex-col items-center justify-center gap-2 rounded-lg border bg-muted/40 text-muted-foreground">- <span className="flex h-11 w-11 items-center justify-center rounded-full border bg-card">- <Play className="h-4 w-4" />- </span>- <span className="text-xs font-medium">{t('panel.videosSoon')}</span>- </div>- <ol className="mt-3 list-decimal space-y-1 pl-5 text-sm">+ {/* The video's place, 16:9, once the videos are recorded. */}+ {SHOW_STEP_VIDEOS && (+ <div className="mt-2 flex aspect-video flex-col items-center justify-center gap-2 rounded-lg border bg-muted/40 text-muted-foreground">+ <span className="flex h-11 w-11 items-center justify-center rounded-full border bg-card">+ <Play className="h-4 w-4" />+ </span>+ <span className="text-xs font-medium">{t('panel.videosSoon')}</span>+ </div>+ )}+ <ol+ className={cn(+ 'list-decimal space-y-1 pl-5 text-sm',+ SHOW_STEP_VIDEOS ? 'mt-3' : 'mt-2',+ )}+ >{list('how').map((how) => (<li key={how}>{how}</li>))}