Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
feat(evendrive): use hard-drive icon for EvenDrive nav and header
M6263036df173
diff --git a/control-ui/components/GfsBrowser.tsx b/control-ui/components/GfsBrowser.tsxindex b2e7cc8c3..e69159f1b 100644--- a/control-ui/components/GfsBrowser.tsx+++ b/control-ui/components/GfsBrowser.tsx@@ -27,6 +27,7 @@ import { useToast } from '@components/Toast'import {IconChevronRight,IconDownload,+ IconHardDrive,IconPaperclip,IconPencil,IconShare,@@ -1252,7 +1253,7 @@ export function GfsBrowser(): React.JSX.Element {<TablePanelHeadertitle={<>- <IconPaperclip /> EvenDrive+ <IconHardDrive /> EvenDrive</>}subtitle="Browse and manage drive resources and access grants from the admin plane."diff --git a/control-ui/components/Sidebar/constants.tsx b/control-ui/components/Sidebar/constants.tsxindex 3e25f0f12..a642978ac 100644--- a/control-ui/components/Sidebar/constants.tsx+++ b/control-ui/components/Sidebar/constants.tsx@@ -1,4 +1,4 @@-import { IconPaperclip } from '@components/icons'+import { IconHardDrive } from '@components/icons'import { CONTROL_ROUTES } from '@constants/routes'import {IconAdministrativeTrace,@@ -66,7 +66,7 @@ export const SIDEBAR_TABS: Record<SidebarTab, SidebarItem> = {{label: 'EvenDrive',href: CONTROL_ROUTES.globalFileSystem,- icon: <IconPaperclip />,+ icon: <IconHardDrive />,},{label: 'Agent Outputs',diff --git a/control-ui/components/__tests__/GfsBrowser.test.tsx b/control-ui/components/__tests__/GfsBrowser.test.tsxindex d5f7cc7a9..133cb113f 100644--- a/control-ui/components/__tests__/GfsBrowser.test.tsx+++ b/control-ui/components/__tests__/GfsBrowser.test.tsx@@ -307,7 +307,7 @@ describe('GfsBrowser', () => {})})- it('uses the paperclip header, labels the root as main, and ignores current-crumb clicks', async () => {+ it('uses the hard-drive header, labels the root as main, and ignores current-crumb clicks', async () => {mockApiGet.mockResolvedValueOnce({ items: [], nextCursor: null })renderBrowser()await screen.findByText('No resources are visible in this folder.')@@ -315,7 +315,7 @@ describe('GfsBrowser', () => {const title = screen.getByText('EvenDrive').closest('.cu-panel-title')expect(title?.querySelector('path')).toHaveAttribute('d',- 'm21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48'+ 'M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z')const breadcrumb = screen.getByRole('navigation', { name: 'Breadcrumb' })diff --git a/control-ui/components/__tests__/Sidebar.test.tsx b/control-ui/components/__tests__/Sidebar.test.tsxindex 075d54848..0a06c76e1 100644--- a/control-ui/components/__tests__/Sidebar.test.tsx+++ b/control-ui/components/__tests__/Sidebar.test.tsx@@ -178,7 +178,7 @@ describe('Sidebar publisher gating', () => {expect(SIDEBAR_TABS.directories.href).toBe('/agent-files')})- it('uses the shared Desktop paperclip glyph for Global File System', () => {+ it('uses the shared Desktop hard-drive glyph for EvenDrive', () => {vi.mocked(hook.usePublishScope).mockReturnValue(publishScopeState({ scope: null, loading: false, error: false }))@@ -188,8 +188,9 @@ describe('Sidebar publisher gating', () => {const globalFileSystem = screen.getByRole('link', { name: 'EvenDrive' })expect(globalFileSystem.querySelector('path')).toHaveAttribute('d',- 'm21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48'+ 'M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z')+ expect(globalFileSystem.querySelectorAll('line')).toHaveLength(3)})it('defines an icon for every sidebar child route, including hidden groups', () => {diff --git a/control-ui/components/icons/index.tsx b/control-ui/components/icons/index.tsxindex 093e64390..0cee4a85d 100644--- a/control-ui/components/icons/index.tsx+++ b/control-ui/components/icons/index.tsx@@ -258,6 +258,28 @@ export function IconPaperclip({ title, ...props }: IconProps) {)}+export function IconHardDrive({ title, ...props }: IconProps) {+ const p = iconSize(props)+ return (+ <svg+ viewBox="0 0 24 24"+ fill="none"+ stroke="currentColor"+ strokeWidth="2"+ strokeLinecap="round"+ strokeLinejoin="round"+ aria-hidden+ {...p}+ >+ {title ? <title>{title}</title> : null}+ <line x1="22" x2="2" y1="12" y2="12" />+ <path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" />+ <line x1="6" x2="6.01" y1="16" y2="16" />+ <line x1="10" x2="10.01" y1="16" y2="16" />+ </svg>+ )+}+export function IconChevronRight({ title, ...props }: IconProps) {const p = iconSize(props)return (diff --git a/control-ui/package-lock.json b/control-ui/package-lock.jsonindex 120b830d6..d2ca01301 100644--- a/control-ui/package-lock.json+++ b/control-ui/package-lock.json@@ -1,12 +1,12 @@{"name": "clerum-control-ui",- "version": "0.1.589",+ "version": "0.1.590","lockfileVersion": 3,"requires": true,"packages": {"": {"name": "clerum-control-ui",- "version": "0.1.589",+ "version": "0.1.590","dependencies": {"@clerum/display-field": "file:../packages/display-field","@clerum/frontend-components": "file:../packages/frontend-components",diff --git a/control-ui/package.json b/control-ui/package.jsonindex c36f97bca..2cd46ba7e 100644--- a/control-ui/package.json+++ b/control-ui/package.json@@ -1,6 +1,6 @@{"name": "clerum-control-ui",- "version": "0.1.589",+ "version": "0.1.590","private": true,"scripts": {"dev": "NEXT_IGNORE_INCORRECT_LOCKFILE=1 next dev",diff --git a/desktop-app/ui/src/components/SidebarNav/icons.tsx b/desktop-app/ui/src/components/SidebarNav/icons.tsxindex 3177dc6ba..9fbf43559 100644--- a/desktop-app/ui/src/components/SidebarNav/icons.tsx+++ b/desktop-app/ui/src/components/SidebarNav/icons.tsx@@ -84,6 +84,17 @@ export function IconContexts(props: IconProps) {)}+export function IconHardDrive(props: IconProps) {+ return (+ <svg viewBox="0 0 24 24" aria-hidden="true" {...BASE_STROKE_PROPS} {...props}>+ <line x1="22" x2="2" y1="12" y2="12" />+ <path d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z" />+ <line x1="6" x2="6.01" y1="16" y2="16" />+ <line x1="10" x2="10.01" y1="16" y2="16" />+ </svg>+ )+}+export function IconConnectors(props: IconProps) {return (<svg viewBox="0 0 24 24" aria-hidden="true" {...BASE_STROKE_PROPS} {...props}>diff --git a/desktop-app/ui/src/components/SidebarNav/index.tsx b/desktop-app/ui/src/components/SidebarNav/index.tsxindex 34412e141..609fc83bb 100644--- a/desktop-app/ui/src/components/SidebarNav/index.tsx+++ b/desktop-app/ui/src/components/SidebarNav/index.tsx@@ -17,7 +17,7 @@ import {IconChat,IconChevronRight,IconConnectors,- IconContexts,+ IconHardDrive,IconMoreHorizontal,IconNewChat,IconSandboxUi,@@ -556,7 +556,7 @@ export function SidebarNav({className="nav-link-main"onClick={() => handleSelect(DESKTOP_ROUTES.files)}aria-label="EvenDrive"- leadingIcon={<IconContexts />}+ leadingIcon={<IconHardDrive />}trailingIcon={<span className="nav-tooltip" role="tooltip">EvenDrivediff --git a/desktop-app/ui/src/components/__tests__/SidebarNav.test.tsx b/desktop-app/ui/src/components/__tests__/SidebarNav.test.tsxindex 2caff1891..149df48fc 100644--- a/desktop-app/ui/src/components/__tests__/SidebarNav.test.tsx+++ b/desktop-app/ui/src/components/__tests__/SidebarNav.test.tsx@@ -120,16 +120,17 @@ describe('SidebarNav logo', () => {expect(settingsMenu?.querySelector('[data-testid="nav-files"]')).toBeNull()})- it('mounts the GFS solid-folder SVG inside the Files nav item so the icon is visible', () => {+ it('mounts the hard-drive SVG inside the EvenDrive nav item so the icon is visible', () => {const { container } = render(<SidebarNav {...baseProps()} />)const filesLink = container.querySelector('[data-testid="nav-files"]')const icon = filesLink?.querySelector('.ui-nav-item__icon svg')expect(icon).toBeTruthy()- expect(icon?.getAttribute('viewBox')).toBe('0 0 512 512')- // Solid Font Awesome fa-folder path data.+ expect(icon?.getAttribute('viewBox')).toBe('0 0 24 24')+ // Lucide hard-drive outline plus the separator line and two activity dots.expect(icon?.querySelector('path')?.getAttribute('d')).toContain(- 'M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288'+ 'M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89')+ expect(icon?.querySelectorAll('line')).toHaveLength(3)})it('routes a controlled palette request through desktop collapse behavior', () => {