refactor(dashboard,acp): rename /dashboard/agents → /dashboard/acp-agents + use shared concept/comparison cards (plan 14 F7)

- git mv agents/ → acp-agents/ (preserves history)
- useTranslations("agents") → useTranslations("acpAgents")
- Replace inline architecture/comparison cards with <CliConceptCard currentType="acp" /> + <CliComparisonCard currentType="acp" />
- Update all cross-links from /dashboard/cli-tools → /dashboard/cli-code
- Update cliToolsRedirectCta/openCliTools keys → cliCodeRedirectCta
- Update sidebarVisibility: id "agents" → "acp-agents", href "/dashboard/agents" → "/dashboard/acp-agents", i18nKey "agents" → "acpAgents"
- Update HIDEABLE_SIDEBAR_ITEM_IDS and DEVELOPER_SHOWN preset: "agents" → "acp-agents"
- Add tests/unit/ui/AcpAgentsPage.test.tsx (6 vitest tests: smoke, namespace, concept card, comparison card, cross-link, agent grid)
This commit is contained in:
diegosouzapw
2026-05-27 23:11:58 -03:00
parent 5847c3b50e
commit 79797cd450
3 changed files with 207 additions and 177 deletions

View File

@@ -14,7 +14,7 @@ export const HIDEABLE_SIDEBAR_ITEM_IDS = [
"context-combos",
// OmniProxy > Tools
"cli-tools",
"agents",
"acp-agents",
"cloud-agents",
// OmniProxy > Integrations
"api-endpoints",
@@ -236,10 +236,10 @@ const TOOLS_GROUP: SidebarItemGroup = {
icon: "terminal",
},
{
id: "agents",
href: "/dashboard/agents",
i18nKey: "agents",
subtitleKey: "agentsSubtitle",
id: "acp-agents",
href: "/dashboard/acp-agents",
i18nKey: "acpAgents",
subtitleKey: "acpAgentsSubtitle",
icon: "smart_toy",
},
{
@@ -802,7 +802,7 @@ const DEVELOPER_SHOWN: ReadonlySet<HideableSidebarItemId> = new Set([
"context-rtk",
"context-combos",
"cli-tools",
"agents",
"acp-agents",
"api-endpoints",
"analytics",
"analytics-combo-health",