Keyboard gaps: panel resize, zoom rebinding, global :focus-visible, unreachable click targets

Abierto
#210 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 4 días

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bien especificado
Estado de actividad
Tranquilo
Stack tecnológico
typescript

Línea de trabajo

Start with the named entry points: ResizablePanel.tsx, src/lib/shortcuts.ts and defaults.ts, styles.css, ScrollingDiffView.tsx, and ReviewSidebar.tsx/ReviewCommentCard.tsx. Trace the existing panel sizing and shortcut registry patterns before changing each area. Done means dividers, zoom controls, focus indicators, diff expanders, and review-comment editing are usable from the keyboard as described.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

enhancement ux

Problem

The keyboard model is one of the app's strongest features (customizable registry, conflict detection, live help dialog, spatial nav) — these are the remaining gaps that break the "mouse optional" promise:

Panel resizing is mouse-only. ResizablePanel.tsx:316-321 — divider has only onMouseDown/onDblClick; no role="separator", no tabIndex, no arrow-key resize. A keyboard-first user can never adjust the AI-terminal/diff/notes split.

Zoom in/out are invisible and non-rebindable. src/lib/shortcuts.ts:49-98 registers them imperatively outside the keybinding registry, so unlike everything else they don't appear in the Keyboard Shortcuts dialog and can't be customized; only app.reset-zoom is registered (defaults.ts:350-357). The AZERTY-variant rationale justifies hiding duplicate bindings, not the canonical zoom rows.

No visible focus indicator outside dialogs. The comprehensive :focus-visible rule is scoped to .dialog-panel (styles.css:73-95 — the comment says so explicitly). .icon-btn (:920-931) has hover/active but no focus-visible; .new-task-placeholder:focus-visible { outline: none } (:1506-1508) while its accent border is driven by store focus, which DOM-Tab focus doesn't set — tabbing to it shows nothing.

Keyboard-unreachable click targets: diff hunk expanders (ScrollingDiffView.tsx:489-501, clickable div), review-comment editing (ReviewSidebar.tsx:142-151, ReviewCommentCard.tsx:130), overall-comment card (ReviewSidebar.tsx:44-45).

Proposed fix

  • role="separator" + tabIndex={0} + arrow keys on dividers (reuse setPanelUserSize).
  • Add app.zoom-in / app.zoom-out registry entries; keep layout variants hidden as today.
  • Promote the dialog-scoped :focus-visible selector list to a global rule; delete the outline: none at styles.css:1506.
  • Make the diff expander a <button>; add Enter-to-edit on review comments.

From a full design/UX audit (2026-07-07); adversarially verified. Line numbers as of b342bbd (v1.12.0).

Lenguaje dominante
TypeScript
Estrellas
1k
Forks
144
Merge medio
4 d 19 h
PR fusionados (30 d)
28

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de johannesjo/parallel-code

Todos los issues de johannesjo/parallel-code

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.