Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript

feat(control-ui): rename sidebar items and reorder Files group

Miguelon Peluchon77d4fea23ebe
diff --git a/control-ui/components/Sidebar/constants.tsx b/control-ui/components/Sidebar/constants.tsx
index 7c2fcfa19..1903a7561 100644
--- a/control-ui/components/Sidebar/constants.tsx
+++ b/control-ui/components/Sidebar/constants.tsx
@@ -27,7 +27,7 @@ import type { SidebarItem, SidebarTab } from './types'
export const SIDEBAR_TABS: Record<SidebarTab, SidebarItem> = {
hosts: { label: 'Agents', href: CONTROL_ROUTES.agents.root, icon: <IconRobot /> },
'mcp-servers': {
- label: 'Connectors',
+ label: 'Installed connectors',
href: CONTROL_ROUTES.connectors.root,
icon: <IconCable />,
},
@@ -55,21 +55,21 @@ export const SIDEBAR_TABS: Record<SidebarTab, SidebarItem> = {
],
},
directories: {
- label: 'Directories',
+ label: 'Files',
href: CONTROL_ROUTES.agentFiles.root,
icon: <IconFolder />,
children: [
+ {
+ label: 'Global File System',
+ href: CONTROL_ROUTES.globalFileSystem,
+ icon: <IconPaperclip />,
+ },
{
label: 'Agent Outputs',
href: CONTROL_ROUTES.agentOutputs.root,
icon: <IconOutputs />,
matchPath: CONTROL_ROUTES.agentOutputs.base,
},
- {
- label: 'Global File System',
- href: CONTROL_ROUTES.globalFileSystem,
- icon: <IconPaperclip />,
- },
],
},
'communication-channels': {
diff --git a/control-ui/components/__tests__/Sidebar.test.tsx b/control-ui/components/__tests__/Sidebar.test.tsx
index 206a75e2b..e4376917a 100644
--- a/control-ui/components/__tests__/Sidebar.test.tsx
+++ b/control-ui/components/__tests__/Sidebar.test.tsx
@@ -95,14 +95,14 @@ describe('Sidebar publisher gating', () => {
['/agent-outputs/recipe-artifacts', 'Agent Outputs', '/agent-outputs/recipe-artifacts'],
['/agent-outputs/desktop-app-artifacts', 'Agent Outputs', '/agent-outputs/recipe-artifacts'],
['/global-file-system', 'Global File System', '/global-file-system'],
- ])('selects the matching Directories child for %s', (pathname, label, href) => {
+ ])('selects the matching Files child for %s', (pathname, label, href) => {
vi.mocked(hook.usePublishScope).mockReturnValue(
publishScopeState({ scope: null, loading: false, error: false })
)
navigationState.pathname = pathname
render(<Sidebar currentTab="directories" />)
- const group = screen.getByRole('button', { name: 'Directories' })
+ const group = screen.getByRole('button', { name: 'Files' })
expect(group).toHaveAttribute('aria-expanded', 'true')
expect(group).toHaveAttribute('data-active', 'true')
const child = screen.getByRole('link', { name: label })
@@ -122,13 +122,13 @@ describe('Sidebar publisher gating', () => {
}
})
- it('renders an icon for the Directories group', () => {
+ it('renders an icon for the Files group', () => {
vi.mocked(hook.usePublishScope).mockReturnValue(
publishScopeState({ scope: null, loading: false, error: false })
)
render(<Sidebar currentTab="directories" />)
- const directories = screen.getByRole('button', { name: 'Directories' })
+ const directories = screen.getByRole('button', { name: 'Files' })
expect(directories.querySelector('.cu-sidebar__icon svg')).toBeInTheDocument()
})
@@ -165,7 +165,7 @@ describe('Sidebar publisher gating', () => {
it('sorts standard sidebar groups by the displayed child label', () => {
for (const [tab, item] of Object.entries(SIDEBAR_TABS)) {
- if (tab === 'cost') continue
+ if (tab === 'cost' || tab === 'directories') continue
const labels = item.children?.map(child => child.label) ?? []
expect(labels).toEqual([...labels].sort((first, second) => first.localeCompare(second)))
}
@@ -175,6 +175,10 @@ describe('Sidebar publisher gating', () => {
'Token Budgets',
'LLM Prices',
])
+ expect(SIDEBAR_TABS.directories.children?.map(child => child.label)).toEqual([
+ 'Global File System',
+ 'Agent Outputs',
+ ])
})
it('selects hidden Trace children by their nested routes', () => {
diff --git a/control-ui/e2e/qa-recorder-connector-edit.spec.ts b/control-ui/e2e/qa-recorder-connector-edit.spec.ts
index fa9641927..440e40eba 100644
--- a/control-ui/e2e/qa-recorder-connector-edit.spec.ts
+++ b/control-ui/e2e/qa-recorder-connector-edit.spec.ts
@@ -59,7 +59,7 @@ async function createDiscoveryConnector(
connectorName: string,
contextName: string
): Promise<void> {
- await page.getByRole('link', { name: 'Connectors', exact: true }).click()
+ await page.getByRole('link', { name: 'Installed connectors', exact: true }).click()
await expect(page).toHaveURL(/\/connectors$/, { timeout: 20_000 })
await page.getByRole('button', { name: 'Create Connector', exact: true }).click()
await expect(page).toHaveURL(/\/connectors\/new$/, { timeout: 20_000 })
diff --git a/control-ui/e2e/qa-recorder-connector-rotation-demo.spec.ts b/control-ui/e2e/qa-recorder-connector-rotation-demo.spec.ts
index e30c97003..f13ccba89 100644
--- a/control-ui/e2e/qa-recorder-connector-rotation-demo.spec.ts
+++ b/control-ui/e2e/qa-recorder-connector-rotation-demo.spec.ts
@@ -77,7 +77,10 @@ test.describe('demo: Control UI credential-rotation journey', () => {
})
await test.step('navigate: sidebar "Connectors" -> connectors list', async () => {
- await humanClick(page, page.getByRole('link', { name: 'Connectors', exact: true }))
+ await humanClick(
+ page,
+ page.getByRole('link', { name: 'Installed connectors', exact: true })
+ )
await expect(page).toHaveURL(/\/connectors$/, { timeout: 20_000 })
await humanPause(page)
})
diff --git a/control-ui/e2e/qa-recorder-connectors.spec.ts b/control-ui/e2e/qa-recorder-connectors.spec.ts
index cec2c2758..166ff8b32 100644
--- a/control-ui/e2e/qa-recorder-connectors.spec.ts
+++ b/control-ui/e2e/qa-recorder-connectors.spec.ts
@@ -26,7 +26,7 @@ test.describe('optional QA recorder: Control UI connectors journey', () => {
const credentials = adminCredentials()
await loginThroughUi(page, credentials)
- await page.getByRole('link', { name: 'Connectors', exact: true }).click()
+ await page.getByRole('link', { name: 'Installed connectors', exact: true }).click()
// The rewrite keeps the URL on /connectors; assert it landed.
await expect(page).toHaveURL(/\/connectors\/?$/, { timeout: 20_000 })
diff --git a/control-ui/e2e/qa-recorder-context-connector.spec.ts b/control-ui/e2e/qa-recorder-context-connector.spec.ts
index ee407ca8b..4a14c0bde 100644
--- a/control-ui/e2e/qa-recorder-context-connector.spec.ts
+++ b/control-ui/e2e/qa-recorder-context-connector.spec.ts
@@ -53,7 +53,7 @@ async function createDiscoveryConnector(
connectorName: string,
contextName: string
): Promise<void> {
- await page.getByRole('link', { name: 'Connectors', exact: true }).click()
+ await page.getByRole('link', { name: 'Installed connectors', exact: true }).click()
await expect(page).toHaveURL(/\/connectors$/, { timeout: 20_000 })
await page.getByRole('button', { name: 'Create Connector', exact: true }).click()
await expect(page).toHaveURL(/\/connectors\/new$/, { timeout: 20_000 })
diff --git a/control-ui/e2e/qa-recorder-navigation.spec.ts b/control-ui/e2e/qa-recorder-navigation.spec.ts
index 20b95827a..5f11882c4 100644
--- a/control-ui/e2e/qa-recorder-navigation.spec.ts
+++ b/control-ui/e2e/qa-recorder-navigation.spec.ts
@@ -63,7 +63,7 @@ test.describe('optional QA recorder: Control UI navigation', () => {
// 3) Connectors — sidebar href is /connectors (rewritten from /mcp-servers);
// the browser URL stays /connectors.
- await mainNav.getByRole('link', { name: 'Connectors', exact: true }).click()
+ await mainNav.getByRole('link', { name: 'Installed connectors', exact: true }).click()
await expect(page).toHaveURL(/\/connectors\/?$/, { timeout: 20_000 })
await expect(
page.getByText('Browse connector deployments and context bindings.', { exact: true })
diff --git a/control-ui/e2e/support/gfs-control-ui-session.ts b/control-ui/e2e/support/gfs-control-ui-session.ts
index 759ffe6d4..d356bccc2 100644
--- a/control-ui/e2e/support/gfs-control-ui-session.ts
+++ b/control-ui/e2e/support/gfs-control-ui-session.ts
@@ -64,7 +64,7 @@ export async function loginControlUi(page: Page): Promise<void> {
}
export async function openGlobalFileSystemFromSidebar(page: Page): Promise<void> {
- const directoriesSection = page.getByRole('button', { name: 'Directories', exact: true })
+ const directoriesSection = page.getByRole('button', { name: 'Files', exact: true })
await expect(directoriesSection).toBeVisible()
await directoriesSection.click()
const globalFileSystem = page.getByRole('link', {
diff --git a/control-ui/package-lock.json b/control-ui/package-lock.json
index 8e53d0b9b..c32e3e6cd 100644
--- a/control-ui/package-lock.json
+++ b/control-ui/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "clerum-control-ui",
- "version": "0.1.406",
+ "version": "0.1.407",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "clerum-control-ui",
- "version": "0.1.406",
+ "version": "0.1.407",
"dependencies": {
"@clerum/llm-providers": "file:../packages/llm-providers",
"@clerum/workflow-recipe-capability-policy": "file:../packages/workflow-recipe-capability-policy",
diff --git a/control-ui/package.json b/control-ui/package.json
index e9a252f25..d0679198c 100644
--- a/control-ui/package.json
+++ b/control-ui/package.json
@@ -1,6 +1,6 @@
{
"name": "clerum-control-ui",
- "version": "0.1.406",
+ "version": "0.1.407",
"private": true,
"scripts": {
"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",