Skip to content

Bug: shared filter radios ignore arrow keys and expose every option as a tab stop #3746

Closed

Description

@yannickmonney

Bug: shared filter radios ignore arrow keys and expose every option as a tab stop

Suggested severity: P3.

Single-choice task filters use a radiogroup whose options do not support radio keyboard navigation. The shared FilterPanel affects both Priority and Assignee; one shared-component issue should cover these consumers.

Local reproduction in the actual TasksWorkspace with native fixture rows:

  1. Open Filter → Priority. Focus Urgent and press Enter: it becomes selected and leaves one Urgent task.
  2. Press ArrowDown: focus and selection remain on Urgent; High remains unchecked.
  3. Press Tab: focus moves to High within the same group. All five option buttons report tabIndex=0.
  4. Pointer-click High: selection moves and no rows match this fixture. Pointer-click Urgent: the matching task returns. Thus selection/filtering works; the missing behavior is the group's keyboard contract.

Expected: a single radio-group tab stop with arrow navigation, preserving appropriate focus and checked-state behavior. The accessibility guide requires the composite keyboard path; the repo already has a shared RadioGroup primitive that provides it.

Root: FilterPanel's single-select branch renders plain buttons with role="radio", aria-checked and an onClick handler, with no roving tab index or arrow handler. Its main-branch changes at 2be6c267 alter disabled/open behavior and a style expression but leave this radio code intact.

Acceptance:

  • Arrow keys move focus/selection correctly in Priority and Assignee.
  • Tab enters/exits the group once rather than walking every option.
  • Preserve the existing way to clear the optional single-select filter.

Evidence: task-filters.probe.test.tsx, task-filters-evidence.jsonl (filter-radio-keyboard), task-filters-run2.log. The actual shared FilterPanel, TasksWorkspace, filter handlers and native read adapters run in jsdom. Parent independently reproduced in actual local Chrome: Enter selected Urgent, ArrowDown kept focus and selection there, Tab reached High while Urgent stayed checked, and all five radios had tabIndex=0. Screenshot: parent-filter-keyboard.png. No hardware screen-reader claim. #3719 is a separate ShareChatDialog-local ShareAccessOption implementation; replacing that implementation does not change FilterPanel. #1998 concerns the Run code format radiogroup. #1954 concerns reusable checkbox multi-selects and does not name this single-select radio behavior.

Replay from the detached audit worktree with its installed dependencies:

/Users/yannick/.npm/_npx/22f2fe8d8bc13000/node_modules/.bin/bun x vitest run --config /Users/yannick/.codex/notes/tale-1000-additional/task-dates-next/parent-final.config.ts --silent=false

No production target is used. Both original and isolated browser fixtures are retained; their seeders refuse to reset existing state. The final replay configuration uses the isolated search fixture.

Verified locally against 480ee6a3e6d33c3414a2c0f8a52fded1ddc4ca2d. No production testing, real provider calls or repository source edits. GitHub reporting follows independent local verification. Source comparison is in source-comparison.json; DatePicker, TasksWorkspace, task query hooks, native service, and task adapters are byte-identical to fetched main 2be6c267eaf8b7a67d0e5abe1b0b3d655eb2ca25. FilterPanel has unrelated open/disabled behavior and style changes; its single-select radio implementation is unchanged. TaskModal has unrelated title/description validation changes; its DatePicker bindings are unchanged.

Dedup searched title and full body of all 1,051 all-state issues in issues-live-batch05.json, plus all 102 baseline records. dedup-final.json records corpus hashes, all matches, specific body reviews, and exclusions. All 26 bodies #1941–1966 were read. Manual known debt and repo debt contain no matching accepted gap. Parent independently inspected the proof and source, replayed all eight observation/control cases, and reviewed relevant overlaps. A fresh dedup pass covered all 1,058 issues in issues-live-batch07.json. No matching report was found.

Parent final execution: parent-final-replay.log; all eight cases passed using isolated retained fixtures. Browser observations are confined to the explicitly named cases above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions