mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-05 06:42:12 +03:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user