Skip to content

Correct picker current-value accessibility - #2947

Merged
ymichael merged 1 commit into
mainfrom
bb/fixer-correct-project-picker-accessibility-state-thr_7ayvw9d5ev
Sep 2, 2026
Merged

ymichael merged 1 commit into
mainfrom
bb/fixer-correct-project-picker-accessibility-state-thr_7ayvw9d5ev

Conversation

@ymichael

@ymichael ymichael commented Sep 2, 2026

Copy link
Copy Markdown
Collaborator

Human comments

What was wrong

The searchable Project picker used cmdk's moving aria-selected state as its only option-selection signal after #2939. That state identifies the keyboard-highlighted row, not the persisted project value, so assistive technology could report Alpha selected while Charlie was the actual checked project; the trigger also exposed only the generic name “Project.” Parent Thread had the same current-value ambiguity.

What changed

  • Name the Project trigger with its displayed current value.
  • Mark the persisted Project, no-project choice, and Parent Thread value with aria-current.
  • Keep cmdk's aria-selected behavior for the movable keyboard highlight.
  • Hide decorative check icons from assistive technology.
  • Add focused regressions proving current value remains stable while keyboard highlight moves.

This is semantically separate from #2943's open search-matching change and composes with it. No daemon wire contract, server API, public Plugin SDK API, CLI, documentation, or protocol version changed.

How you verified

  • The four focused accessibility assertions failed before the implementation and passed afterward.
  • pnpm exec turbo run test --filter=@bb/app --force -- --run src/components/pickers/ProjectSelector.test.tsx src/components/pickers/ParentThreadPicker.test.tsx — 11 tests passed.
  • Full app suite — 3,744 tests passed and 4 skipped.
  • pnpm exec turbo run typecheck --filter=@bb/app — passed.
  • pnpm exec oxfmt --check apps/app/src/components/pickers/ProjectSelector.tsx apps/app/src/components/pickers/ProjectSelector.test.tsx apps/app/src/components/pickers/ParentThreadPicker.tsx apps/app/src/components/pickers/ParentThreadPicker.test.tsx — passed.
  • git diff --check origin/main...HEAD — passed.
  • Matching desktop and compact QA confirmed the current project remains visually checked while ArrowDown moves the command highlight.

AGENT GENERATED

Keep cmdk aria-selected state for the active option while exposing the persisted choice through aria-current and a value-bearing project trigger name. Apply the same current-option semantics to the parent thread picker.
@ymichael
ymichael merged commit 08c9319 into main Sep 2, 2026
15 checks passed
@ymichael
ymichael deleted the bb/fixer-correct-project-picker-accessibility-state-thr_7ayvw9d5ev branch September 2, 2026 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant