a11y: keyboard access for interactive spatial views (atlas, square, latent space)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 42/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- typescript
- Ambito
- accessibility, frontend
Direzione di ricerca
Inizia con apps/smartem/src/components/spatial/AtlasMap.tsx, SquareMap.tsx e LatentSpacePanel.tsx, quindi esamina biome.json e i problemi di lint elencati. Decidi un modello di interazione per mappe SVG dense prima di implementare il focus da tastiera, l’attivazione, la navigazione e gli indicatori di focus visibili. Il lavoro è completato quando i componenti supportano l’accesso da tastiera e tramite screen reader e le regole Biome corrispondenti possono essere abilitate senza problemi.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Retargeted. This issue originally listed three findings, all in app/routes/squareLR.tsx in
the legacy front end. That app was removed in smartem-frontend#136 and the file no longer
exists, so the original findings are moot. Reviewing them against the current front end
(per the earlier comment: "see if any of this applied to the new f/e, recycle or dismiss"),
one of the three carries over.
Dismissed - now structurally prevented
Missing alt text and SVG without <title> cannot recur silently. biome.json sets
recommended: true with the a11y group active, lint is enforced in CI, and
biome lint apps/smartem/src packages currently passes with zero findings. There are no
<img> elements without alt in the codebase.
Recycled - interactive elements without keyboard support
The original third finding (interactive SVG elements reachable only by mouse) has reappeared in
the new spatial components. Running the full a11y rule group reports:
apps/smartem/src/components/spatial/AtlasMap.tsx:318 noNoninteractiveElementInteractions
apps/smartem/src/components/spatial/SquareMap.tsx:481 noNoninteractiveElementInteractions
apps/smartem/src/components/spatial/AtlasMap.tsx:371 useSemanticElements
apps/smartem/src/components/spatial/SquareMap.tsx:550 useSemanticElements
apps/smartem/src/components/spatial/LatentSpacePanel.tsx:143 useSemanticElements
The practical consequence: the atlas and square maps are the primary navigation surface, and
grid squares are selected by clicking SVG shapes. Those targets cannot currently be reached or
activated by keyboard, so keyboard-only and screen-reader users have no route into the
per-square views at all.
Why CI does not catch this
Neither rule is active under the current configuration:
noNoninteractiveElementInteractionsis not part of Biome'srecommendedset, so it never
runs unless explicitly enabled.useSemanticElementsis explicitly switched off inbiome.json.
Worth confirming whether disabling useSemanticElements was a deliberate decision for the
spatial components (where a semantic element may genuinely not fit inside an SVG) or was
inherited. If deliberate, the exception is better expressed narrowly than globally.
Scope
- Make grid squares and foil holes focusable and activatable by keyboard in
AtlasMapand
SquareMap, with a visible focus indicator that works against the underlying imagery. - Decide the interaction model for a dense SVG map before implementing - tabbing through
several hundred foil holes individually would be worse than no keyboard access. Roving
tabindex over squares, with arrow-key traversal within a square, is the likely shape. - Apply the same treatment to
LatentSpacePanel. - Once the components conform, enable the corresponding rules in
biome.jsonso the class of
problem stays fixed rather than recurring.
Priority
Real but not urgent, and honestly assessed: the enforced rules already cover the common cases,
and this affects an internal scientific tool with a small known user base. It is recorded here
so the gap is known rather than rediscovered.
- Lingua principale
- TypeScript
- Stelle
- 0
- Fork
- 0
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di DiamondLightSource/smartem-devtools
-
security
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
-
Dependency DashboardAperta
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
-
research security
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
devops research smartem-agent
Difficoltà 5/5 Più di una settimana Idoneità per principianti 25/100
-
Make Claude's project knowledge portable: private memory/transcripts, derived public AGENTS.mdApertaenhancement smartem-devtools:claude
Difficoltà 5/5 Più di una settimana Idoneità per principianti 45/100
Tutte le issue di DiamondLightSource/smartem-devtools
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
cameri/nostream#811 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
bug p3 triaged
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 1 giorno
-
bug javascript P2-medium python release:v3.1
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
adrirubio/claude-deck#546 ·
I maintainer di solito rispondono entro 1 giorno
-
area: desktop area: website priority: P2 type: feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
appandflow/stim#3411 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
rjsf-team/react-jsonschema-form#5485 ·
I maintainer di solito rispondono entro 2 giorni