#13491 regressed the sidebar for NVDA users, as reported by @akj in https://github.com/pingdotgg/t3code/pull/13491#issuecomment-5851194119:
- The thread
<ul> was set to role="presentation", so NVDA no longer announces "list with N items" and its L/I quick-nav keys skip the threads.
- Each row (
role="button") gained an aria-label. NVDA's browse mode reads that label in place of the row's contents, which hides the nested Snooze and Settle buttons.
This restores role="list" and drops the row aria-labels, so each row's name comes from its contents again. The screen-reader-only title that already leads each row keeps the title first. aria-current and the non-focusable scroll viewport (viewportTabIndex={-1}) from #13491 stay. Search results keep their label, since those listbox options have no nested actions. The now-unused resolveSidebarRowAccessibility helper and its tests are removed.
The change is @akj's, from their branch fix/sidebar-nvda-row-actions, and they are credited as co-author.
Verification#
Checked Chrome's accessibility tree against a dev server with real data:
| main | This PR |
|---|
Thread <ul> | role="presentation" | list with a listitem per row |
| Row name | "Fix Large Chat Thread Crash, t3chat-new" (label only) | "Fix Large Chat Thread Crash t3chat-new 9d Snooze thread Settle thread …" |
| Snooze / Settle | present in the tree, but hidden behind the label in NVDA browse mode | exposed buttons, part of the row's name |
No visual change: before and after screenshots of the sidebar are identical. Sidebar logic tests, web typecheck and lint pass.
Not yet tested with real NVDA or VoiceOver. #13491 changed the list role to avoid a VoiceOver interaction boundary. @akj suspects the focusable scroll viewport caused that boundary, and #13491 already fixed the viewport. VoiceOver still needs checking. If the list still traps VoiceOver, we can revert just the list role and keep the label removal.
🤖 Generated with Claude Code (Claude Opus 5.5)
Summary by CodeRabbit#
- Accessibility
- Sidebar items now expose active-page status directly to assistive technologies.
- Unsent drafts are identified in screen-reader text, and search results include the project name when available.
- Thread titles provide accessible text, and thread items are presented as a list.
Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Baseline:
ab09917· PR result:6d397f7· Source CI: successScenario and decoded snapshot size
10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.