Skip to content

fix(a11y): name remote More projects menu, wire effort-flyout active_descendant and Left step, expose model budget - #260

Merged
Hona merged 1 commit into
devfrom
ws5/a11y-160-fixes
Nov 20, 2026
Merged

Hona merged 1 commit into
devfrom
ws5/a11y-160-fixes

Conversation

@Hona

@Hona Hona commented Nov 20, 2026

Copy link
Copy Markdown
Member

Summary

Addresses all three #160 accessibility findings:

  • Remote folder picker "More projects" trigger & overflow menu (features/projects/src/remote_picker/):
    • Gives the "…" trigger accessible name "More projects" (.label_static(t!("dialog.directory.moreProjects"))) and .expanded(...) state instead of exposing "…".
    • Renders overflow items as focusable role="menuitem" rows inside a labeled role="menu" instead of role="button" children.
    • Adds keyboard navigation (Down from trigger, ArrowUp/ArrowDown/Home/End/Enter/Space/Tab) and layered Escape dismissal that closes the overflow menu and returns focus to "More projects" before closing the dialog.
  • Model picker #effort-flyout screen-reader announcements & Left step (crates/session-view/src/pickers/{flyout.rs,dialog.rs,host.rs}):
    • Wires #picker-search .active_descendant(...) to the active flyout option (effort-default, effort-<variant>, or effort-favorite) while keyboard navigation is inside #effort-flyout, falling back to option-<model> otherwise, and adds .checked(...) to menuitemradio rows and an accessible label to #picker-search.
    • Restores Left arrow (step < 0, or Right in RTL) on a model row to step effort backward via step_effort.
  • Model row budget accessible description (crates/session-view/src/pickers/dialog.rs):
    • Includes budget state ("$72.00 left" / "Budget reached"), provider note, Free/Latest tags, and current effort in each Role::ListBoxOption row's .description(...) and sets .checked(selected), since ListBoxOption is a leaf node in Rune's accessibility tree.

Verification

  • pwsh scripts/guardrails.ps1 (5/5), pwsh scripts/web.ps1 -Check (wasm32 + web-clock), cargo check --workspace --all-targets, and cargo check -p session-view --examples green.
  • Verified with headless scripted runs (8/8 assertions) + light/dark captures at 1x and 1.5x.
  • Verified live against Windows UI Automation (a11y-probe.exe):
    • More projects, button, collapsed -> Enter -> More projects, menu | tools, menu item -> Down -> website, menu item -> Up -> tools, menu item -> Escape -> focus returns to More projects, button, collapsed.
    • Choose model variant, menu | Default, menu item radio button, not checked -> Down -> Low -> Down -> Medium -> Left -> Claude Opus 5.5, option, checked, Xhigh, $72.00 left -> Left -> Claude Opus 5.5, option, checked, High, $72.00 left.
    • Claude Sonnet 5.5 exposes desc="$72.00 left" in UIA FullDescription.
  • Not proved: macOS VoiceOver speech output (verified via Windows UI Automation + AccessKit tree properties).

…descendant and Left step, expose model budget

Address all three #160 accessibility findings:

- **Remote folder picker "More projects" trigger & overflow menu
  (`features/projects/src/remote_picker/`):** Give `"…"` accessible name
  `"More projects"` (`.label_static(t!("dialog.directory.moreProjects"))`)
  and `.expanded(...)`; change overflow menu rows from `role="button"` to
  focusable `role="menuitem"` rows; add keyboard navigation (`Down` from
  trigger, `ArrowUp`/`ArrowDown`/`Home`/`End`/`Enter`/`Space`/`Tab`) and
  layered `Escape` dismissal returning focus to `"More projects"`.
- **Model picker `#effort-flyout` screen-reader navigation & `Left` step
  (`crates/session-view/src/pickers/{flyout.rs,dialog.rs,host.rs}`):** Wire
  `#picker-search` `.active_descendant(...)` to the active flyout option
  (`effort-default`, `effort-<variant>`, `effort-favorite`) while keyboard
  navigation is inside `#effort-flyout` (falling back to `option-<model>`
  otherwise), set `.checked(...)` on `menuitemradio` rows, label
  `#picker-search`, and restore `Left` arrow (`step < 0`) on a model row to
  step effort backward (`step_effort`).
- **Model row budget accessible description
  (`crates/session-view/src/pickers/dialog.rs`):** Because
  `Role::ListBoxOption` is a leaf in Rune's accessibility tree, include
  budget status (`"$72.00 left"` / `"Budget reached"`), provider note,
  Free/Latest tags, and current effort in each option's `.description(...)`
  and set `.checked(selected)`.
@Hona
Hona merged commit fca361c into dev Nov 20, 2026
6 checks passed
@Hona
Hona deleted the ws5/a11y-160-fixes branch November 20, 2026 08:57
@github-actions

github-actions Bot commented Nov 20, 2026 •

Copy link
Copy Markdown

PR test build retired — merged into dev. Install or auto-update OpenCode (Rune) from https://anoma.ly/release/opencode/desktop-rune/dev/macos-arm64-dmg.

Hona added a commit that referenced this pull request Nov 20, 2026
…ing (#266)

- Fold verified fleet PRs #247, #251, #252, #253, #254, #255, #256, #257,
  #258, #260, #261, #262, #263, #264, and #265 (Rune #1290 PRE-11 / #1296)
  into docs/upstream-sync/ledger.{json,md}
- Audit upstream anomalyco/opencode through 92d35f8e18 (+9 commits past
  bf683129fa), adding UP-107..UP-113 and assigning UP-106/UP-108/UP-111 to
  BROWSER-UI
- Update scripts/upstream-sync-check.ts to skip pure *.fixture.* test files
  and route browser UI/history vs extensions commits to BROWSER-UI and WS-9
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