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(content): cross out a step the agent took in Next's path (#1566)
Cihan2e7220706af3
diff --git a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_next-step.test.tsx b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_next-step.test.tsxindex 606190cbf..2ef2252e4 100644--- a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_next-step.test.tsx+++ b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_next-step.test.tsx@@ -141,6 +141,31 @@ describe('NextStepButton', () => {expect(popup()!.textContent).toContain('1 to 3 rules open → Fix open rules');});+ it('crosses out a step the agent took, as a done one, and not its note (editor test 2026-10-27)', async () => {+ await render(+ state({+ openRules: ['faq'],+ thirdPasses: { fixRules: { rules: ['faq'], length: '' } },+ }),+ );+ const step = [...popup()!.querySelectorAll('ol li')].find((li) =>+ li.textContent?.includes('Fix open rules'),+ )!;+ expect(step.textContent).toContain('yours in the Rules tab');+ const name = [...step.querySelectorAll('span')].find(+ (s) => s.textContent === 'Fix open rules',+ )!;+ expect(name.className).toContain('line-through');+ // The note says what is still the person's: never crossed out, by+ // itself or by what holds it.+ const note = [...step.querySelectorAll('span')].find(+ (s) => s.textContent === '· yours in the Rules tab',+ )!;+ expect(note.className).not.toContain('line-through');+ expect(name.parentElement!.className).not.toContain('line-through');+ expect(step.className).not.toContain('line-through');+ });+it('names the to-do only the person can do while Trust is low', async () => {await render(state({diff --git a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_next-step.tsx b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_next-step.tsxindex 1e247efa9..31ec0b3fe 100644--- a/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_next-step.tsx+++ b/web/src/app/[locale]/(dashboard)/dashboard/content/editor/[draftId]/_next-step.tsx@@ -386,7 +386,11 @@ export function NextStepButton({{p.state === 'done' ? <Check className="h-2.5 w-2.5" /> : i + 1}</span><span className="min-w-0 [overflow-wrap:anywhere]">- {stepName(t, p.id, state)}+ {/* A step the agent took is crossed out as a done one is; its+ note, the person's part, isn't (editor test 2026-10-27). */}+ <span className={cn(p.state === 'passed' && 'line-through')}>+ {stepName(t, p.id, state)}+ </span>{(p.state === 'skipped' || p.state === 'passed') && (<span aria-hidden className="ml-1.5 text-xs no-underline">{t(p.state)}