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
feat(content): order the Content menu as the work goes and mark Content itself new (#1603)
Cihan6689da76c06d
diff --git a/web/src/components/layout/sidebar.tsx b/web/src/components/layout/sidebar.tsxindex e05977faa..e0e4f2c9d 100644--- a/web/src/components/layout/sidebar.tsx+++ b/web/src/components/layout/sidebar.tsx@@ -428,6 +428,14 @@ export function Sidebar() {><item.icon className="h-4 w-4 shrink-0" /><span className="flex-1 truncate">{label}</span>+ {effectiveBadge && (+ <Badge+ variant="secondary"+ className="h-5 shrink-0 px-1.5 text-[10px] font-normal"+ >+ {effectiveBadge}+ </Badge>+ )}<ChevronDownclassName={cn('h-3.5 w-3.5 shrink-0 transition-transform',diff --git a/web/src/config/dashboard.ts b/web/src/config/dashboard.tsindex b116d7cc9..7fdf77006 100644--- a/web/src/config/dashboard.ts+++ b/web/src/config/dashboard.ts@@ -79,21 +79,23 @@ export const dashboardNav: NavGroup[] = [icon: Sparkles,requiredFeature: 'ai_agent',},- // Content Editor (CE-001): a group, like Prompts. The Plan says what to- // do next (CE-014); the Editor goes back to the draft last opened, else- // starts a new page; Opportunities is today's page and keeps- // /dashboard/content; the Library lists every page written or changed- // in Ansvisor.+ // Content Editor (CE-001): a group, like Prompts, and new as a whole.+ // Its pages in the order the work goes: Opportunities (today's page,+ // keeping /dashboard/content) finds what to write, the Plan says what+ // to do next (CE-014), the Editor goes back to the draft last opened,+ // else starts a new page, and the Library lists every page written or+ // changed in Ansvisor.{title: 'Content',href: '/dashboard/content',icon: FileText,requiredFeature: 'content_optimization',+ badge: 'New',children: [- { title: 'Plan', href: '/dashboard/content/plan', badge: 'New' },+ { title: 'Opportunities', href: '/dashboard/content' },+ { title: 'Plan', href: '/dashboard/content/plan' },// A draft open in the editor (CE-004) is under it.{ title: 'Editor', href: '/dashboard/content/editor', keepsPage: true },- { title: 'Opportunities', href: '/dashboard/content' },{ title: 'Library', href: '/dashboard/content/library' },],},diff --git a/web/src/lib/dashboard-navigation.test.ts b/web/src/lib/dashboard-navigation.test.tsindex a02e8e8af..4934f5f25 100644--- a/web/src/lib/dashboard-navigation.test.ts+++ b/web/src/lib/dashboard-navigation.test.ts@@ -40,16 +40,17 @@ describe('getDashboardNavLabel', () => {expect(items.some((item) => item.href === '/dashboard/topics')).toBe(false);});- // Content Editor (CE-001): Content is a group, the Plan first and new- // (CE-014), then the Editor; Opportunities keeps today's route.- it('lists the Plan, the Editor, Opportunities and the Library under Content', () => {+ // Content Editor (CE-001): Content is a group, new as a whole, its pages in+ // the order the work goes; Opportunities keeps today's route.+ it('lists Opportunities, the Plan, the Editor and the Library under Content, new', () => {const items = dashboardNav.flatMap((group) => group.items);const content = items.find((item) => item.title === 'Content')!;expect(content.href).toBe('/dashboard/content');+ expect(content.badge).toBe('New');expect(content.children).toEqual([- { title: 'Plan', href: '/dashboard/content/plan', badge: 'New' },- { title: 'Editor', href: '/dashboard/content/editor', keepsPage: true },{ title: 'Opportunities', href: '/dashboard/content' },+ { title: 'Plan', href: '/dashboard/content/plan' },+ { title: 'Editor', href: '/dashboard/content/editor', keepsPage: true },{ title: 'Library', href: '/dashboard/content/library' },]);});