Skip to content

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

address review (claude): announce the mesh-failure panel to screen readers

Adam Eivy07e1dc1a338e
diff --git a/client/src/components/media/GlbViewer.jsx b/client/src/components/media/GlbViewer.jsx
index 4de180cd9d..ff4242cb5d 100644
--- a/client/src/components/media/GlbViewer.jsx
+++ b/client/src/components/media/GlbViewer.jsx
@@ -113,6 +113,7 @@ function GlbLoadFailure({ error, onRetry }) {
// on a page, not over an arbitrary canvas backdrop.
<div
data-testid="glb-load-error"
+ role="alert"
className="port-media-overlay absolute inset-0 flex flex-col items-center justify-center gap-2 p-4 text-center"
>
<AlertTriangle className="h-6 w-6 text-port-error" aria-hidden="true" />
diff --git a/client/src/components/media/GlbViewer.test.jsx b/client/src/components/media/GlbViewer.test.jsx
index e63c86f2fd..81722f3fd3 100644
--- a/client/src/components/media/GlbViewer.test.jsx
+++ b/client/src/components/media/GlbViewer.test.jsx
@@ -244,7 +244,9 @@ describe('GlbViewer load failures', () => {
// escapes `render` here, exactly as it escapes to the router in the app.
render(<GlbViewer src="/data/image-to-3d/abc/model.glb?v=1" />);
- expect(screen.getByTestId('glb-load-error')).toBeInTheDocument();
+ // `role="alert"`: the panel replaces the canvas without a navigation, so a
+ // screen reader only hears about it if it announces itself.
+ expect(screen.getByRole('alert')).toBeInTheDocument();
expect(screen.getByText('This 3D model could not be loaded')).toBeInTheDocument();
expect(screen.getByText(/answered with a web page instead of the mesh file/i)).toBeInTheDocument();
expect(screen.queryByTestId('glb-canvas')).not.toBeInTheDocument();