Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure
TypeScript
fix(desktop): r3-l1 group window controls semantically
Josué758842a89795
diff --git a/desktop-app/ui/src/components/WindowTitleBar/__tests__/windowControlSemantics.test.tsx b/desktop-app/ui/src/components/WindowTitleBar/__tests__/windowControlSemantics.test.tsxnew file mode 100644index 000000000..dc71b83eb--- /dev/null+++ b/desktop-app/ui/src/components/WindowTitleBar/__tests__/windowControlSemantics.test.tsx@@ -0,0 +1,16 @@+// @vitest-environment jsdom+import React from 'react'+import { afterEach, describe, expect, it } from 'vitest'+import { cleanup, render, screen, within } from '@testing-library/react'+import { WindowTitleBar } from '..'++afterEach(() => cleanup())++describe('WindowTitleBar control semantics', () => {+ it('groups the named native window controls', () => {+ render(<WindowTitleBar />)++ const controls = screen.getByRole('group', { name: 'Window controls' })+ expect(within(controls).getAllByRole('button')).toHaveLength(3)+ })+})diff --git a/desktop-app/ui/src/components/WindowTitleBar/index.tsx b/desktop-app/ui/src/components/WindowTitleBar/index.tsxindex 7cbdd411b..d0052b218 100644--- a/desktop-app/ui/src/components/WindowTitleBar/index.tsx+++ b/desktop-app/ui/src/components/WindowTitleBar/index.tsx@@ -116,7 +116,7 @@ export function WindowTitleBar({ actions, actionsRef }: WindowTitleBarProps) {data-platform={platform}onDoubleClick={handleTitlebarDoubleClick}>- <div className="window-titlebar__controls" aria-label="Window controls">+ <div className="window-titlebar__controls" role="group" aria-label="Window controls">{controlOrder.map(action => (<buttonkey={action}