[BUG]: PAT popup input lacks label association and visibility button lacks an accessible name

Open Beginner friendly
#466 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@prasanm1423 is already working on this.

Since Nov 17, 2026.

  • #468 by @prasanm1423 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
78/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
javascript, react, vite

Research direction

Start in src/components/PATModal.jsx and inspect the existing component tests. Reproduce the issue by opening the PAT popup and checking whether the visible label focuses its input and whether the visibility button has a name that reflects its next action. Done when both behaviors have regression coverage and the existing test suite passes, accounting for the documented ResizeObserver failure.

Written by the indexing model from the issue text.

Description

bug enhancement
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
  1. Explore an organisation without a saved PAT.
  2. On Overview, click Connect PAT & Run.
  3. Click PERSONAL ACCESS TOKEN. The input does not receive focus.
  4. 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
Dominant language
JavaScript
Stars
53
Forks
187
Avg merge
18m
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from AOSSIE-Org/OrgExplorer

All issues in AOSSIE-Org/OrgExplorer

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.