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

Đang mở
#210 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 4 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
typescript
Lĩnh vực
accessibility

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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).

Ngôn ngữ chính
TypeScript
Star
1k
Fork
144
Merge trung bình
4 ngày 19 giờ
Pull request đã merge (30 ngày)
28

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của johannesjo/parallel-code

Tất cả issue của johannesjo/parallel-code

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.