Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
Merge origin/dev into fix/gfs-desktop
Miguelon Peluchona4db338e5516
diff --cc control-ui/components/Sidebar/icons.tsxindex 4499ea849,110deca22..93fa36f0e--- a/control-ui/components/Sidebar/icons.tsx+++ b/control-ui/components/Sidebar/icons.tsx@@@ -1,23 -1,26 +1,44 @@@import React from 'react'+export function IconCopy(props: React.SVGProps<SVGSVGElement>) {+ return (+ <svg+ xmlns="http://www.w3.org/2000/svg"+ viewBox="0 0 24 24"+ fill="currentColor"+ stroke="currentColor"+ strokeWidth="0"+ aria-hidden="true"+ data-solid="true"+ {...props}+ >+ <path fill="none" d="M0 0h24v24H0z" />+ <path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z" />+ </svg>+ )+}++ type RelationshipRoleIconProps = {+ createBadge?: boolean+ relationshipRole?: 'admin' | 'member'+ }++ function IconCreateBadge() {+ return (+ <g>+ <circle+ cx="18"+ cy="18"+ r="4.25"+ fill="var(--cu-bg-elevated)"+ stroke="currentColor"+ strokeWidth="2"+ />+ <path d="M18 15.75v4.5M15.75 18h4.5" />+ </g>+ )+ }+export function IconWorkflow() {return (<svgdiff --cc desktop-app/ui/src/components/__tests__/SidebarNav.test.tsxindex 870d91142,1c315b9fc..4f936b008--- a/desktop-app/ui/src/components/__tests__/SidebarNav.test.tsx+++ b/desktop-app/ui/src/components/__tests__/SidebarNav.test.tsx@@@ -105,30 -106,50 +106,66 @@@ describe('SidebarNav logo', () =>expect(container.querySelector('.sidebar-logo-copy')).toBeNull()})- it('labels the Files destination as Global File System in Resources', () => {+ it('renders Files as a top-level nav item labelled Files (not under Resources)', () => {render(<SidebarNav {...baseProps()} />)+ // Files is always visible as a primary nav destination — no menu opening needed.+ const filesItem = screen.getByTestId('nav-files')+ expect(filesItem.textContent).toContain('Files')+ expect(filesItem.textContent).not.toContain('Global File System')++ // Files is no longer nested under the Settings → Resources submenu.fireEvent.click(screen.getByTestId('nav-settings-menu'))+ expect(screen.getByTestId('nav-data-menu').textContent).not.toContain('Global File System')+ })- expect(screen.getByTestId('nav-files').textContent).toContain('Global File System')- expect(screen.queryByRole('menuitem', { name: 'Files' })).toBeNull()+ 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'+ )})++ it('routes a controlled palette request through desktop collapse behavior', () => {+ const onCollapsedChange = vi.fn()+ const { rerender } = render(+ <SidebarNav {...baseProps({ onCollapsedChange, toggleRequestId: 0 })} />+ )++ rerender(<SidebarNav {...baseProps({ onCollapsedChange, toggleRequestId: 1 })} />)++ expect(onCollapsedChange).toHaveBeenCalledWith(true)+ })++ it('routes a controlled palette request through the mobile drawer behavior', () => {+ vi.spyOn(window, 'matchMedia').mockImplementation(+ query =>+ ({+ matches: true,+ media: query,+ onchange: null,+ addListener: vi.fn(),+ removeListener: vi.fn(),+ addEventListener: vi.fn(),+ removeEventListener: vi.fn(),+ dispatchEvent: vi.fn(),+ }) as MediaQueryList+ )+ const onCollapsedChange = vi.fn()+ const { container, rerender } = render(+ <SidebarNav {...baseProps({ onCollapsedChange, toggleRequestId: 0 })} />+ )++ rerender(<SidebarNav {...baseProps({ onCollapsedChange, toggleRequestId: 1 })} />)++ expect(container.querySelector('.left-nav')?.classList.contains('mobile-open')).toBe(true)+ expect(onCollapsedChange).not.toHaveBeenCalled()+ })})describe('SidebarNav new-chat affordance', () => {diff --cc desktop-app/ui/src/components/agents/ChatThread.tsxindex f7cedd349,eb5ed92b5..4eb1750d4--- a/desktop-app/ui/src/components/agents/ChatThread.tsx+++ b/desktop-app/ui/src/components/agents/ChatThread.tsx@@@ -13,14 -13,16 +13,12 @@@ import { useChatThreadStateContext } frimport { useMcpRuntimeContext } from '@contexts/McpRuntimeContext'import { useNavigationContext } from '@contexts/NavigationContext'import { useNotificationsContext } from '@contexts/NotificationsContext'- import ReactMarkdown from 'react-markdown'- import remarkGfm from 'remark-gfm'import { Button, IconButton, MenuItem } from '@components/Common'import { ConfirmDialog } from '@components/ConfirmDialog'+import { GfsFileIcon } from '@components/GfsFileIcon'import { MessageArtifactActions } from '@components/MessageArtifactActions'import { SecureHtmlPreview } from '@components/SecureHtmlPreview'-import {- IconAttachFile,- IconConnectors,- IconContexts,- IconWorkflows,-} from '@components/SidebarNav/icons'+import { IconConnectors, IconContexts, IconWorkflows } from '@components/SidebarNav/icons'import { WorkflowRunArtifactActions } from '@components/WorkflowRunArtifactActions'import {AGENT_ERROR_CODE_LABELS,