Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS
JavaScript ai-agentsdashboarddeveloper-toolsdigital-twinquantified-selfsecond-brainself-hostedtailscale
feat: stage Biome accessibility lint rules (#4158)
Adam Eivybdca3f12bc38
diff --git a/.changelog/next/changed-issue-4158.md b/.changelog/next/changed-issue-4158.mdnew file mode 100644index 0000000000..38916025c6--- /dev/null+++ b/.changelog/next/changed-issue-4158.md@@ -0,0 +1 @@+- Client lint now checks image alternative text and valid ARIA usage.diff --git a/client/biome.jsonc b/client/biome.jsoncindex bdd58ae70b..fa34fefe13 100644--- a/client/biome.jsonc+++ b/client/biome.jsonc@@ -58,6 +58,8 @@// `recommended` preset is much broader; adopting it is a separate policy// decision, not part of this migration.//+ // Accessibility rules are enabled in small, verified stages. Add each rule+ // only after the current client has a clean baseline for it.// KNOWN PARITY GAPS — this is a near-port, not a total one. Counts below are// measured with `--max-diagnostics=none --reporter=json`, excluding// `suppressions/unused` noise; Biome's default reporter caps at 20, so a bare@@ -75,6 +77,11 @@// Do not upgrade this comment to a claim of full parity without re-measuring."rules": {"preset": "none",+ "a11y": {+ "useAltText": "error",+ "useAriaPropsForRole": "error",+ "useValidAriaProps": "error"+ },"complexity": {// eslint: no-regex-spaces"noAdjacentSpacesInRegex": "error",diff --git a/client/src/components/writers-room/WorkEditor.jsx b/client/src/components/writers-room/WorkEditor.jsxindex 9eee4a3cd7..2cbc483505 100644--- a/client/src/components/writers-room/WorkEditor.jsx+++ b/client/src/components/writers-room/WorkEditor.jsx@@ -709,6 +709,11 @@ export default function WorkEditor({ work, onChange, onToggleExercise, exerciseOminWidth: SIDEBAR_MIN,maxFraction: SIDEBAR_MAX_FRACTION,});+ const sidebarMaxWidth = Math.max(+ SIDEBAR_MIN + 1,+ Math.round(sidebarWidth),+ Math.round((splitRef.current?.getBoundingClientRect().width ?? SIDEBAR_DEFAULT / SIDEBAR_MAX_FRACTION) * SIDEBAR_MAX_FRACTION),+ );const toggleReadingTheme = useCallback(() => {setReadingTheme((prev) => {@@ -951,6 +956,9 @@ export default function WorkEditor({ work, onChange, onToggleExercise, exerciseOrole="separator"aria-label="Resize storyboard sidebar"aria-orientation="vertical"+ aria-valuemin={SIDEBAR_MIN}+ aria-valuemax={sidebarMaxWidth}+ aria-valuenow={Math.round(sidebarWidth)}title="Drag to resize · double-click to reset"className="hidden lg:block w-1 shrink-0 cursor-col-resize bg-port-border hover:bg-port-accent/60 active:bg-port-accent transition-colors"/>diff --git a/client/src/components/writers-room/WorkEditor.test.jsx b/client/src/components/writers-room/WorkEditor.test.jsxindex 90ba8f52b3..f21d109fa4 100644--- a/client/src/components/writers-room/WorkEditor.test.jsx+++ b/client/src/components/writers-room/WorkEditor.test.jsx@@ -140,6 +140,15 @@ describe('WorkEditor header layout (#3568)', () => {expect(within(snapshot).getByText('Snapshot').className).toContain('hidden sm:inline');});+ it('exposes the storyboard resizer as a bounded separator', async () => {+ await renderEditor();+ const separator = screen.getByRole('separator', { name: 'Resize storyboard sidebar' });++ expect(separator).toHaveAttribute('aria-orientation', 'vertical');+ expect(Number(separator.getAttribute('aria-valuemin'))).toBeLessThanOrEqual(Number(separator.getAttribute('aria-valuenow')));+ expect(Number(separator.getAttribute('aria-valuenow'))).toBeLessThanOrEqual(Number(separator.getAttribute('aria-valuemax')));+ });+it('gives the header controls a 44px touch target on mobile', async () => {await renderEditor();const { title, status, save, snapshot } = headerControls();