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.

feat(sidebar): group the menu into Execution and Analytics (#1233)

Cihanc5a890021a14
diff --git a/web/messages/en.json b/web/messages/en.json
index 8fe5c9d3e..cfeb00026 100644
--- a/web/messages/en.json
+++ b/web/messages/en.json
@@ -52,15 +52,15 @@
"traffic": "AI Referral Traffic",
"prompts": "Prompts",
"content": "Content",
- "audit": "Site Audit",
+ "audit": "Audit",
"competitors": "Competitors",
"citations": "Citations",
"mentions": "Mentions",
"shopping": "Product Visibility",
"reports": "Reports",
"settings": "Settings",
+ "execution": "Execution",
"analytics": "Analytics",
- "optimization": "Optimization",
"toggleMenu": "Toggle navigation menu",
"keepSidebarOpen": "Keep sidebar open",
"collapseSidebar": "Collapse sidebar",
diff --git a/web/src/config/dashboard.ts b/web/src/config/dashboard.ts
index 6ae228864..8199c77b8 100644
--- a/web/src/config/dashboard.ts
+++ b/web/src/config/dashboard.ts
@@ -55,12 +55,44 @@ export const dashboardNav: NavGroup[] = [
href: '/dashboard/brands',
icon: Building2,
},
+ ],
+ },
+ /**
+ * New Ansvisor: the groups name the two things the product does. Execution
+ * does the work (actions, the agent, content, page fixes); Analytics shows
+ * where the brand stands in AI search.
+ */
+ {
+ title: 'Execution',
+ items: [
{
title: 'Action Center',
href: '/dashboard/action-center',
icon: Target,
badge: 'New',
},
+ // Right under Action Center: Chat is where you ask, or let the agent do
+ // the work. The route stays /dashboard/agent: renaming the URL would
+ // break every existing link for a label change, and the sidebar's
+ // "Set up" badge keys off that href.
+ {
+ title: 'Chat',
+ href: '/dashboard/agent',
+ icon: Sparkles,
+ requiredFeature: 'ai_agent',
+ },
+ {
+ title: 'Content Optimization',
+ href: '/dashboard/content',
+ icon: FileText,
+ requiredFeature: 'content_optimization',
+ },
+ {
+ title: 'Site Audit',
+ href: '/dashboard/audit',
+ icon: Gauge,
+ requiredFeature: 'content_optimization',
+ },
],
},
{
@@ -112,34 +144,8 @@ export const dashboardNav: NavGroup[] = [
},
],
},
- {
- title: 'Optimization',
- items: [
- {
- title: 'Content Optimization',
- href: '/dashboard/content',
- icon: FileText,
- requiredFeature: 'content_optimization',
- },
- {
- title: 'Site Audit',
- href: '/dashboard/audit',
- icon: Gauge,
- requiredFeature: 'content_optimization',
- },
- // The route stays /dashboard/agent: renaming the URL would break every
- // existing link for a label change, and the sidebar's "Set up" badge
- // keys off that href.
- {
- title: 'Chat',
- href: '/dashboard/agent',
- icon: Sparkles,
- requiredFeature: 'ai_agent',
- },
- ],
- },
/**
- * Reports sits in its own group rather than under Analytics or Optimization,
+ * Reports sits in its own group rather than under Analytics or Execution,
* because it draws on both: of its thirteen sections, `auditScore` comes from
* Site Audit and the rest from the analytics surfaces. Filing it under either
* heading would understate what it covers.
diff --git a/web/src/lib/dashboard-navigation.test.ts b/web/src/lib/dashboard-navigation.test.ts
index b8210176a..a1d8ac57d 100644
--- a/web/src/lib/dashboard-navigation.test.ts
+++ b/web/src/lib/dashboard-navigation.test.ts
@@ -2,6 +2,7 @@ import { describe, expect, it } from 'vitest';
import { dashboardNav } from '@/config/dashboard';
import {
dashboardNavLabelKeys,
+ getDashboardNavGroupLabel,
getDashboardNavLabel,
shouldShowDashboardNavItem,
} from '@/lib/dashboard-navigation';
@@ -74,3 +75,36 @@ describe('the Mentions item', () => {
});
});
});
+
+// New Ansvisor: Execution (do the work) above Analytics (measure it); the
+// Optimization group is gone, its items moved under Execution.
+describe('the sidebar groups', () => {
+ it('runs Brands, Execution, Analytics, then Reports', () => {
+ expect(dashboardNav.map((group) => group.title ?? null)).toEqual([
+ null,
+ 'Execution',
+ 'Analytics',
+ null,
+ ]);
+ expect(dashboardNav[0].items.map((item) => item.title)).toEqual(['Brands']);
+ expect(dashboardNav[3].items.map((item) => item.title)).toEqual(['Reports']);
+ });
+
+ it('puts Action Center, Chat, Content and Audit under Execution, in that order', () => {
+ const execution = dashboardNav.find((group) => group.title === 'Execution')!;
+ expect(execution.items.map((item) => item.href)).toEqual([
+ '/dashboard/action-center',
+ '/dashboard/agent',
+ '/dashboard/content',
+ '/dashboard/audit',
+ ]);
+ });
+
+ it('translates every group title', () => {
+ for (const group of dashboardNav) {
+ if (group.title) {
+ expect(getDashboardNavGroupLabel(group.title, translateNav)).not.toBe(group.title);
+ }
+ }
+ });
+});
diff --git a/web/src/lib/dashboard-navigation.ts b/web/src/lib/dashboard-navigation.ts
index 5bf05024c..f36c3f4e3 100644
--- a/web/src/lib/dashboard-navigation.ts
+++ b/web/src/lib/dashboard-navigation.ts
@@ -29,8 +29,8 @@ export const dashboardNavLabelKeys: Record<string, NavLabelKey> = {
/** Map from the static group title string in dashboard.ts to its nav key. */
export const dashboardNavGroupKeys: Record<string, string> = {
+ Execution: 'execution',
Analytics: 'analytics',
- Optimization: 'optimization',
};
/** Resolve a NavGroup.title to its translated label, or return the raw string