Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(sidebar): use the solid fa-folder as the Files nav leading icon
Miguelon Peluchon1d50e8c5f2af
diff --git a/desktop-app/ui/src/components/SidebarNav/index.tsx b/desktop-app/ui/src/components/SidebarNav/index.tsxindex 6761e05e3..40d0a2499 100644--- a/desktop-app/ui/src/components/SidebarNav/index.tsx+++ b/desktop-app/ui/src/components/SidebarNav/index.tsx@@ -566,7 +566,7 @@ export function SidebarNav({className="nav-link-main"onClick={() => handleSelect(DESKTOP_ROUTES.files)}aria-label="Files"- leadingIcon={<IconAttachFile />}+ leadingIcon={<IconContexts />}trailingIcon={<span className="nav-tooltip" role="tooltip">Filesdiff --git a/desktop-app/ui/src/components/__tests__/SidebarNav.test.tsx b/desktop-app/ui/src/components/__tests__/SidebarNav.test.tsxindex 540d46b56..870d91142 100644--- a/desktop-app/ui/src/components/__tests__/SidebarNav.test.tsx+++ b/desktop-app/ui/src/components/__tests__/SidebarNav.test.tsx@@ -117,6 +117,18 @@ describe('SidebarNav logo', () => {fireEvent.click(screen.getByTestId('nav-settings-menu'))expect(screen.getByTestId('nav-data-menu').textContent).not.toContain('Global File System')})++ it('mounts the GFS solid-folder SVG inside the Files 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?.querySelector('path')?.getAttribute('d')).toContain(+ 'M464 128H272l-64-64H48C21.49 64 0 85.49 0 112v288'+ )+ })})describe('SidebarNav new-chat affordance', () => {