[BUG]: PAT popup input lacks label association and visibility button lacks an accessible name
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 78/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, react, vite
- Lĩnh vực
- accessibility, frontend
Hướng nghiên cứu
Bắt đầu tại src/components/PATModal.jsx và kiểm tra các bài kiểm thử hiện có của component. Tái hiện vấn đề bằng cách mở cửa sổ bật lên PAT và kiểm tra xem nhãn hiển thị có đưa tiêu điểm vào trường nhập liệu hay không, cũng như nút hiển thị có tên phản ánh hành động tiếp theo của nó hay không. Hoàn tất khi cả hai hành vi đều được kiểm thử hồi quy và bộ kiểm thử hiện có chạy thành công, có tính đến lỗi ResizeObserver đã được ghi nhận.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Bug Description
On main at b396d1b7f50a3341d4a5b9ff67211d95c9a5fb95, the PAT popup displays PERSONAL ACCESS TOKEN in a div. It is not associated with the input, and clicking that text does not focus the field. The icon-only visibility button has no accessible name, making its action unclear to assistive technology.
Expected: the visible label names and focuses the input, and the eye button is named Show token / Hide token according to its next action. The close button is already labelled on current main and needs no change here.
Proposed contribution
I'd like to take this as a focused first contribution: a native label with htmlFor/useId and a dynamic aria-label for the eye button, plus the two regression tests. No token validation, storage, network or focus-management changes are proposed.
I searched token, modal, label and accessibility issues on 16 November and checked all 90 open PR file lists. PRs #452, #448, #445 and #442 touch the same component for validation/storage/cache behaviour; their reviewed patches do not implement this label fix. Issue #363 / PR #364 concern other info buttons and the footer. Please let me know if this overlaps any work that hasn't been posted yet, or if you'd prefer me to coordinate with one of those PRs.
Production build passes. Patched suite: 99 passed / 1 failed; unchanged main: 97 passed / 1 failed. Both have the same ResizeObserver is not defined failure in src/App.test.jsx (tracked by #456 / PR #457). No lint script is defined.
AI tools assisted with the investigation, implementation and tests.
Steps to Reproduce
- Explore an organisation without a saved PAT.
- On Overview, click Connect PAT & Run.
- Click PERSONAL ACCESS TOKEN. The input does not receive focus.
- Inspect the input and eye button in the accessibility tree: the visible label is not linked to the input, and the eye button has no name.
No real token is needed. This concerns src/components/PATModal.jsx, not the separate Settings form.
Logs and Screenshots
Two local regression tests reproduce the gaps independently: a label lookup/click test and a visibility-button name/keyboard test. Both fail on unchanged main and pass with the proposed patch.
Baseline failures:
Unable to find a label with the text of: /personal access token/i
Unable to find an accessible element with the role "button" and name "Show token"
Environment Details
- Windows; React 18 / Vite project.
- Main:
b396d1b7f50a3341d4a5b9ff67211d95c9a5fb95. - Local Node 24; Vitest and Testing Library.
Impact
Medium - Feature works but has issues
Code of Conduct
- I have joined the Discord server and will post updates there
- I have searched existing issues to avoid duplicates
- Ngôn ngữ chính
- JavaScript
- Star
- 53
- Fork
- 182
- Merge trung bình
- 18 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của AOSSIE-Org/OrgExplorer
-
[FEATURE]: Set dynamic document.title based on active page routeCó thể đã có người làm @23241a6749 đã nhận 1 ngày trước. Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AOSSIE-Org/OrgExplorer#462 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: SocialShareButton logs unconditional console.warn when script is not loadedCó thể đã có người làm @vivekrajputofficial29-afk đã nhận 1 ngày trước. Đang mởbug enhancement
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 89/100
AOSSIE-Org/OrgExplorer#461 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: governance page shows "No dead issues" before the audit has runCó thể làm lại được @SYED-IRTEZA-HUSSAIN-RIZVI đã nhận 8 ngày trước và không có pull request nào đang mở. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
AOSSIE-Org/OrgExplorer#453 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: User-controlled org/repo names are interpolated into API URLs unencodedCó thể đã có người làm @AbhishekKumar-cse đã nhận 10 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
AOSSIE-Org/OrgExplorer#449 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG]: `fetchWithCache` crashes with `SyntaxError: Unexpected end of JSON input` when encountering empty repositories (HTTP 204 No Content)Có thể đã có người làm @Devnil434 đã nhận 22 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
AOSSIE-Org/OrgExplorer#433 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của AOSSIE-Org/OrgExplorer
Issue tương tự
-
enhancement frontend good first issue help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 2 ngày
-
marketing
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[bug]: Maximizing the Windows dashboard covers the taskbarCó thể đã có người làm @xiufengsun đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
xiufengsun/TokenTracker#1152 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
parity: scripting.net's net-http row fails on macOS with errno 61 where the BDS golden has 111Đang mởBug Tests
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
JSPrismarine/JSPrismarine#3384 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
cat:test dx effort:xs sev:low
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 82/100
LucasSantana-Dev/Lucky#3251 ·
Maintainer thường phản hồi trong vòng 1 ngày