Skip to content

fix(studio): sweep Studio's accessibility, 500px breakpoints, and phone overflow - #2256

Merged
kantord merged 10 commits into
feat/studio-chat-sessions-2207dfrom
feat/studio-a11y-sweep-2208
Oct 14, 2026
Merged

kantord merged 10 commits into
feat/studio-chat-sessions-2207dfrom
feat/studio-a11y-sweep-2208

Conversation

@peppescg

@peppescg peppescg commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

This is the last Studio alignment PR (#2208, part of #2210): the cross-cutting accessibility and 500px breakpoint sweep. It's stacked on #2255 (feat/studio-chat-sessions-2207d), so review that first.

  • Breakpoints: the remaining sm: classes in features move to the prototype's 500px pivot. A guard test now fails on any new sm: or md: class in a feature or the shell; the five left are listed with their reasons.
  • Live regions: loading and empty states become polite statuses, and failures become alerts, on the surfaces the earlier PRs didn't reach. Decorative glyphs are hidden from screen readers.
  • Phone overflow: the chat draft no longer scrolls sideways at 320 to 390px. A new browser test checks seven surfaces at 320, 360, and 390px.
  • Studio: use shadcn/ui primitives like the prototype and SEP (no custom components) #2201 leftovers: the worktree picker's native radios become the shadcn radio group. The Skills page's All / Learned switch and Settings → Learning's status filter become shadcn toggle groups.
  • Header fix found on the way: from 760px, beside the chat list, a running chat's Stop button was pushed out of the header. The Activity and Canvas labels now follow the header's width.

Schedules (#2194) and the MCP inventory (#1851) are not touched. What the sweep would change in schedules is listed under For #2194 (schedules).

What changed

Breakpoints

grep for responsive prefixes in apps/web/src (non-test files), before and after:

Scope sm:/md: before after lg: before after
features/ (without schedules) 16 4 22 22
features/schedules/ (#2194) 8 8 0 0
components/shell/ 1 1 0 0
components/ui/ (shadcn primitives) 17 17 0 0

Moved to min-[500px]::

  • settings/provider-detail.tsx: the facts card's padding and its two two-column grids.
  • chat/chat-workspace.tsx: both chat headers' padding and the transcript column's left padding.
  • search/global-search.tsx: the field's font size and the keyboard hint.

Replaced by a shadcn primitive: the worktree picker's hand-copied footer (flex-col-reverse … sm:flex-row sm:justify-end) is now DialogFooter, the same classes the prototype gets from it.

Replaced by a container query: the chat header's Activity and Canvas labels (sm:inline → @min-[35.5rem]/chat-header:inline). From 760px the chat list sits beside the chat, so the viewport says nothing about the header's room. 35.5rem is the header's content box (568px) at 640px, the narrowest viewport that showed them before, so a header without the chat list shows them exactly where it did.

Intentional exceptions (asserted, with their reasons, in features/breakpoints.test.ts):

File Classes Why it stays
components/shell/storage-health-banner.tsx sm:inline The prototype's banner uses sm:inline on the same element.
chat/session-inspection.tsx sm:max-w-lg Dialog width: shadcn DialogContent's pivot, and the prototype's session dialogs.
knowledge/learned-skills.tsx sm:max-w-2xl Dialog width, the prototype's learned-skill dialog's own class.
shortcuts/shortcut-reference.tsx sm:grid-cols-2 ×2 The prototype's shortcut and feature grids use sm:grid-cols-2 on the same elements.

lg: stays where the prototype has it on the same element (message bubbles, file preview, code block, side thread, the Facts about you table, the skill detail layout, the models grid's third column). components/ui/ keeps its upstream shadcn classes.

Live regions and decorative glyphs

Roles: status for loading and empty states, alert for failures. Settings already had them from #2252.

  • Skills: the inventory's StateCard (loading, failure, unavailable, empty, no match); the skill detail's DetailState (loading, failure, unavailable, not found); the learned-skill "Comparing versions…" line.
  • Memory: the fact page's loading, memory-off, and not-found states, and its value's loading and failure lines; Facts about you's off and empty notes.
  • Shortcuts: the "Connect to an agent" and "No help features" notes.
  • Provider page: its states (alert for the two failures).
  • Chat:
    • the session dialog's unavailable notes (details, transcript, soul, worktrees);
    • the worktree picker's failure, empty, and unavailable lines;
    • the empty soul and empty saved-transcript notes;
    • "Loading conversation…", "Checking session…", "Loading thread…";
    • "No chats yet", the model menus' "No models match", and the empty canvas.

Hidden glyphs:

  • the back links' ← on the shortcuts and provider pages (their names are now "Settings" and "Providers");
  • the skills state card's icon;
  • the message avatars' Bot and User icons, the Skill-tool banner's icon, Learning's Refresh icon, and the models filter's search icon. lucide already renders these with aria-hidden; the attribute is now explicit, as everywhere else.

Screen-reader label: the search field's loading spinner was an svg with an aria-label and no role. It's now aria-hidden, with an sr-only "Loading searchable items". The footer's aria-live line still announces the loading.

Phone overflow (chat-workspace.tsx, continue-latest-chip.tsx)

At 320 to 390px the draft's empty state shrank to its widest child, the Continue "…" chip with an untruncated title. The transcript column then scrolled sideways: 746px of content in a 320px column. Now:

  • the empty state spans the column (w-full), so the chips wrap and the Continue chip truncates (max-w-full);
  • the empty column uses symmetric padding instead of the minimap's 48px right gutter. There's no minimap without messages, and the greeting centres like the prototype's.

#2201 leftovers

grep in features/ (non-test): 1 native <select>, 1 set of native radios (plus 2 checkboxes and 6 selects in schedules), 1 <details>, and 11 aria-pressed.

Control Decision
Worktree picker radios (worktree-picker-dialog.tsx, #2255) (a) Migrated to RadioGroup / RadioGroupItem. Each card stays a <label> for its item, the item takes its name from the card's text, and the group is disabled while a successor is being created. Tests change from .checked to aria-checked, selector only (see below).
Settings phone section picker (<select>, #2252) (b) Left. The pinning test reads the static markup's <option> list and option[selected] and dispatches a native change. A Radix Select renders no options until it opens, so that test would need a different kind of interaction, not a new selector. The prototype has no picker here either; it drills down from a section index. Moving to that index is the real alignment and a follow-up.
Skills All / Learned pills (knowledge-workspace.tsx) Migrated to ToggleGroup type="single", drawn over the toggle item's defaults so the pixels are identical. Choosing the selected pill again keeps it.
Learning status pills (learning-settings-page.tsx) Migrated the same way; keeps the 44px targets and the four-column phone grid.
Composer options sheet's effort pills and mode/model rows, the model menu's rows Left. These aren't segmented controls: each choice is an action that closes the sheet or menu, as in the prototype, which uses plain buttons. aria-pressed reports the current value.
Voice buttons, the tool preview's Raw/Diff, the delegation roster rows Left. Single toggles and list selection, not segmented controls; the prototype uses the same pattern.
Canvas Preview / Edit Already the shadcn Toggle (#2255).
<details> in consolidate-memory-card.tsx Left. It's a disclosure for a plan entry's prior value, not a menu, and the prototype has the same element.

Differences from the prototype

  • Worktree radios: shadcn's radio item instead of the prototype's native radio (Studio: use shadcn/ui primitives like the prototype and SEP (no custom components) #2201).
  • Pills as toggle groups: a single toggle group gives the pills role="radio" and one tab stop with arrow-key movement (the WAI-ARIA radio group pattern). The prototype's buttons take a tab stop each.
  • Continue chip: Studio's own chip under the starters; it truncates on a phone.
  • Header labels follow a container query, where the prototype has no such buttons.
  • The 1px gap at 499px. Tailwind v4's max-[N] means width < N. So the prototype's max-[499px] / min-[500px] pair, which Studio copies 52 times, applies neither side at exactly 499px, while useIsMobile (max-width: 499px) already says phone. The Skills inventory uses max-[500px]:hidden, the exact complement, and a new browser test pins that one list shows at 499px and at 500px. Changing every max-[499px] to max-[500px] (or adding named variants) in both repositories is a follow-up, not part of this sweep.

Visible change

  • The chat draft on a phone: no sideways scroll, a centred greeting, and a truncated Continue chip. On desktop the greeting is 12px further right, at the column's centre.
  • The worktree picker's radios.
  • The running chat header from 760px with the chat list open: icon-only Activity and Canvas, and Stop inside the header.
  • Between 500 and 639px only: the provider facts card's padding and two columns, the chat headers' padding, and the search field's font size and hint.

No regression

Pinning tests

851133005 was committed first. The three pin files (9 tests) pass on the base (04e7f6f70) and on this branch. To check the base, the branch's apps/web/src was swapped back to the base's with the pins kept (git checkout 04e7f6f70 -- apps/web/src), the pins ran, and HEAD was restored.

  • chat/worktree-picker.pinning.test.tsx (3): one radio per worktree, named by its label, branch, and revision; only the selected one checked; the actions wait for a choice; a click on the radio or on its card chooses that worktree.
  • knowledge/knowledge-view-switch.pinning.test.tsx (3): the current view's pill is selected; the other pill asks for its view; choosing the selected pill keeps the view; no Learned pill without a learned-skill inventory.
  • learning/learning-filter.pinning.test.tsx (3): Pending first with the staged list; another pill selects alone and lists its status from the first page; choosing the selected pill again keeps it; 44px targets.

Each pin reads aria-pressed/checked or aria-checked, whichever the control exposes. One fix after the pin commit: the worktree pin's helper returned undefined instead of false for a Radix button. It now compares checked === true, and still passes on both trees.

New tests

  • features/live-regions.test.tsx (8): the roles above on skills, the skill detail, the memory fact page, Facts about you, the shortcuts and provider pages (and their back links' names), and the worktree picker; the picker's radios disabled while busy. All 8 fail on the base.
  • features/breakpoints.test.ts (1): no unlisted sm:/md: in features/ or components/shell/, schedules excepted until feat(studio): complete schedule management workspace #2194. Fails on the base.
  • e2e/phone-overflow.spec.ts (24, mobile project): no sideways scroll at 320, 360, and 390px on the chat draft, a chat with a transcript, settings, skills, schedules, memory, and shortcuts, plus the Skills list at 499 and 500px. The check covers the document and every scroll region that isn't an intentional horizontal scroller (classes with overflow-auto or overflow-x-auto, such as code blocks and tables). The chat draft fails on the base at 320px (746px of content in a 320px column). Schedules at 320px is test.fixme, owned by feat(studio): complete schedule management workspace #2194.
  • e2e/chat-header-stop.spec.ts, one new test (both projects): a running chat's header content fits, and Stop ends inside the header, at 500, 560, 639, 640, 760, 820, and 900px. Fails on the base at 760px. The file's three existing tests are unchanged.

Modified tests (selector only, assertions unchanged)

  • chat/session-inspection.test.tsx (4 assertions) and chat/session-surfaces.pinning.test.tsx (1): toHaveProperty("checked", X) → getAttribute("aria-checked") is "X". A Radix radio is a button with aria-checked; same element, same expected state.
  • knowledge/knowledge-workspace.test.tsx (1): the pill query button[aria-pressed] → button[aria-checked]; it still expects exactly ["All"].
  • learning/learning-queue.test.tsx (4) and learning/learning-settings-page.pinning.test.tsx (3): getByRole("button", { name: <filter> }) → getByRole("radio", …), and aria-pressed → aria-checked. This includes queryByRole(…, { name: "Pending" }) being null when learning is off. Moving it to radio keeps that assertion meaningful: left on button, it would pass vacuously.

Gate counts

Both through the shared gate lock. Base is 04e7f6f70 (#2255's head; its counts are that PR's own head run); this branch is 3ad5a1093.

Gate Base (04e7f6f70) This branch (3ad5a1093)
Biome 485 files 491 files
Typecheck and generated-artifact check clean clean
Server 24 files, 195 tests 24 files, 195 tests
Web 158 files, 1,236 tests 163 files, 1,254 tests
Browser (task studio:browser) 66 passed 90 passed, 24 skipped

The 18 new web tests are the 9 pins, the 8 live-region tests, and the guard. The 24 new browser tests are 22 phone-width and pivot tests and the header test on both projects. The 24 skipped are the phone-width tests in the desktop project (they run in the mobile project) plus schedules at 320px (fixme).

No docs change: no user-docs page describes these controls' semantics or the breakpoints, and the chat and settings behaviour the docs describe is unchanged.

Screenshots

Captured with a throwaway Playwright journey (Chromium, not committed) and offline BFF routes: the prototype harness's flaky-scheduler chat, a running chat, four skills, two learning suggestions, three memory facts, and a three-worktree picker. The clock is fixed at 2026-09-25 12:30 UTC, the time zone is Europe/Rome, and the locale is en-US. Shots are desktop 1280×800 and mobile 390×844, light and dark, plus the header at 760×800 and the phone sheets at 320 and 390px.

Before is the base (04e7f6f70) and after is this branch's head (3ad5a1093). Each tree was captured twice: the runs matched within at most 40 antialiased pixels (a channel difference of 1 or 2). Red boxes mark before and after differences. The Prototype column comes from the prototype harness (stack-08): the gallery, plus new captures of the 320px draft and a running chat at 760px. Desktop composites are downscaled to 1600px wide.

Surfaces that changed

Chat draft

Intended change: the empty state spans the column, the Continue chip truncates its title, and the empty column drops the minimap gutter, so the greeting and chips centre. On a phone, before, the Continue chip pushed the column sideways (cut off on the right, and the greeting off-centre). Matches the prototype's mobile empty state; the Continue chip is Studio's own and has no prototype counterpart. On desktop the greeting moves 12px right, to the column's centre, as in the prototype.

Chat draft, desktop light

Dark and mobile

Desktop, dark:

Chat draft, desktop dark

Mobile, light:

Chat draft, mobile light

Mobile, dark:

Chat draft, mobile dark

Worktree picker

Intended change: the native radios become the shadcn radio group (the shadcn ring with a filled dot, instead of the browser's radio). The cards, the selected card's border, and the actions are unchanged. Deviation: the prototype still uses native radios here; Studio follows #2201.

Worktree picker, desktop light

Dark and mobile

Desktop, dark:

Worktree picker, desktop dark

Mobile, light:

Worktree picker, mobile light

Mobile, dark:

Worktree picker, mobile dark

Running chat header beside the chat list (760px)

Intended change: the header's Activity and Canvas labels follow the header's width. At 760px the chat list sits beside the chat and the header is 480px wide: before, the labels pushed Stop out of the header (clipped on the right); after, the buttons are icon-only and Stop fits. The chat title was already truncated to nothing at this width on both trees, and the "Esc to Stop" hint wraps to two lines; both are pre-existing and out of scope. Prototype: its header has no Activity or Canvas buttons and puts Stop in the composer, so it's a reference only.

Running header at 760px, light

Dark

Running header at 760px, dark

No sideways scroll at 320 and 390px

The chat draft at 320px and 390px, Before | After | Prototype. Before scrolls sideways (the shot is scrolled fully right, so the overflow shows); after fits. Matches the prototype.

Chat draft at 320px

390px

Chat draft at 390px

After only: every surface the new browser test covers, at 320px and 390px, each scrolled fully right. Only Scheduled at 320px overflows (its title and Schedule task share one row); that page belongs to #2194, and the fix is listed below.

320px and 390px sheets

All surfaces at 320px

All surfaces at 390px

Surfaces with no visible change

These pixel-compare equal to the base (any difference is within the run-to-run noise of at most a few antialiased pixels). Each was touched by the sweep: roles, hidden glyphs, or a primitive drawn to the same look.

Skills

The All / Learned switch is now a toggle group: identical pixels. Matches the prototype's pills.

Skills, desktop light

Skills, desktop dark

Skills, mobile light

Skills, mobile dark

Settings → Learning

The status filter is now a toggle group: identical pixels. Matches the prototype's pills.

Settings → Learning, desktop light

Settings → Learning, desktop dark

Settings → Learning, mobile light

Settings → Learning, mobile dark

Skill detail

Its loading, failure, and missing states gain roles; the loaded page is unchanged. Matches the prototype's layout as before.

Skill detail, desktop light

Skill detail, desktop dark

Skill detail, mobile light

Skill detail, mobile dark

Memory

Facts about you's off and empty notes gain a status role; unchanged.

Memory, desktop light

Memory, desktop dark

Memory, mobile light

Memory, mobile dark

Memory fact

Loading and failure states gain roles; unchanged.

Memory fact, desktop light

Memory fact, desktop dark

Memory fact, mobile light

Memory fact, mobile dark

Keyboard shortcuts

The back link's arrow is hidden from screen readers (the link reads "Settings"); unchanged. The two sm:grid-cols-2 grids stay, as in the prototype. These screenshots predate the restack onto main, which adds main's Scheduled card after Chats.

Keyboard shortcuts, desktop light

Keyboard shortcuts, desktop dark

Keyboard shortcuts, mobile light

Keyboard shortcuts, mobile dark

Provider page

The back link's arrow is hidden from screen readers; the page's sm: pivots move to 500px, which changes nothing at 390 or 1280px; unchanged.

Provider page, desktop light

Provider page, desktop dark

Provider page, mobile light

Provider page, mobile dark

Search

The search field's spinner gets a screen-reader label, and the hint and font pivots move to 500px; the dialog is unchanged. On desktop the backdrop is the chat draft, whose greeting moved (see above).

Search, desktop light

Search, desktop dark

Search, mobile light

Search, mobile dark

For #2194 (schedules)

This PR doesn't touch apps/web/src/features/schedules/*. Against this stack's base, the sweep would change the following there; line numbers are from 04e7f6f70. The new browser test already covers /workspace/schedules, and its 320px case is test.fixme until the header fix lands. Once the files below are swept, drop features/schedules/ from pending in features/breakpoints.test.ts.

  1. Phone overflow (fails at 320px): the page header (schedules-workspace.tsx:118, flex items-center justify-between gap-4) keeps the title block and Schedule task on one row, and the button's right edge reaches 359px. Do what the prototype does: a short New label below 500px (create-schedule-dialog.tsx:38–39: max-[499px]:hidden / min-[500px]:hidden), or let the row wrap (flex-wrap, with min-w-0 on the title block). Then remove the pending entry for schedules in e2e/phone-overflow.spec.ts.
  2. Breakpoints:
    • schedules-workspace.tsx:250: sm:p-5 ×2 → min-[500px]:p-5.
    • schedules-workspace.tsx:254: sm:flex-row sm:items-start → min-[500px]:flex-row min-[500px]:items-start.
    • schedule-detail.tsx:111: the same pair → min-[500px]:.
    • schedule-form.tsx:211: sm:grid-cols-2 → min-[500px]:grid-cols-2.
    • schedule-detail.tsx:161: sm:grid-cols-2 can stay. The prototype's detail grid uses sm:grid-cols-2 (schedule-detail.tsx:272); list it in allowed in the guard test.
  3. Live regions:
    • EmptyState (schedules-workspace.tsx:374): role="status", or role="alert" for the error case at line 140 (add an error prop).
    • DetailState (schedule-detail.tsx:489): the same, with alert for line 90.
    • ScheduleHistory (schedules-workspace.tsx:340–345): role="status" on "Reading run history…" and "This task has not run yet.", role="alert" on the error line.
    • HistoryState (schedule-detail.tsx): alert when destructive, otherwise status.
    • The page error banner (schedules-workspace.tsx:134): role="alert".
  4. Decorative icons: add aria-hidden="true":
    • schedules-workspace.tsx: Plus (127, 392), Play/Pause (292, 301), Trash2 (314), History (323), ChevronDown (325), and CalendarClock (386; or hide its wrapping span, as knowledge/state-card.tsx now does);
    • schedule-detail.tsx: ArrowLeft (106), Play/Pause (130, 139), Trash2 (152), Clock3 (218), and ChevronUp/ChevronDown (380, 382).
  5. Studio: use shadcn/ui primitives like the prototype and SEP (no custom components) #2201 primitives:
    • The All / Scheduled / Paused filter (schedules-workspace.tsx:155–164) is a hand-rolled segmented control with no selected state at all. Use ToggleGroup type="single" like the Skills and Learning pills: copy PILL_CLASS from knowledge/knowledge-workspace.tsx, and ignore the empty value a second click sends.
    • schedule-form.tsx: the two native checkboxes (256, 280) → Checkbox; the six native <select> (285, 300, 417, 442, 460, 498) → Select; the native <label>s → Label.

Anything for the coordinator

  • Pre-existing, out of scope: at the narrowest desktop layout (760px, chat list open) the running header's title is truncated to nothing and the "Esc to Stop" hint wraps. Stop now fits, but the header needs a priority order for its items.
  • Follow-up: the max-[499px] 1px gap (see Differences), in Studio and in the prototype.
  • Follow-up: the Settings phone picker → the prototype's section index.

Review fixes

Fixes from the final regression and security review of the stack (stack #2227). Each one comes with a test that fails without the fix.

  • Restack interaction: feat(studio): align Settings > Learning with the prototype #2232's review fix added two learning-queue tests that click the status filter as buttons. This PR turns that filter into a toggle group of radios, so those two selectors are updated to role radio (selector-only; the assertions are unchanged).
Finding Fix Commit Test
Coverage: the header container-query test had no non-default mode, debug badge, or fleet chip A new journey runs a debug chat in Accept edits with a fleet of all three families. It sweeps the viewport from 500px and checks at every width that the header fits; that Stop and both badges stay inside it; and that the agents chip shows exactly when the header's content box reaches 52rem. The sweep crosses that threshold inside an 832–900px header. e6c848f0f e2e/chat-header-stop.spec.ts: passes on both projects. Swapping the chip's @max-[52rem]/chat-header: for a viewport max-[52rem]: fails it (the header overflows at 840px).
Nit: the breakpoint guard regex Each class is split into its variants and flagged when any variant is sm, md, max-sm or max-md (so dark:sm:, [&>svg]:md: and max-sm: are caught; container queries such as @max-md: pass). The guard scans all of src except components/ui. The scan finds no new classes. 51b955d98 breakpoints.test.ts: new matcher and scope cases fail on the old regex and scope. A probe dark:max-sm:hidden in lib/ fails the guard.
Visual audit: learned skills showed absolute timestamps The list and Recent changes use the shared formatRelativeTime ("1d ago"), like the prototype. The exact time is the stamp's title. 133033bf0 knowledge-workspace.test.tsx "dates learned skills and their changes relatively…"

Gates at d01c03fe4:

Gate Before (3ad5a1093) After
Web 163 files, 1,254 tests 163 files, 1,258 tests
Server 195 tests 195 tests
Browser 90 passed, 24 skipped 92 passed, 24 skipped

No assertion was removed. The guard's loop moved into scanned() and breakpointClasses() helpers so the new cases can test them; the allow-list is unchanged.

Screenshots

Before 3ad5a1093 | After d01c03fe4 | Prototype stack-08. The header test and the guard change nothing visible.

Learned skills. After matches the prototype's relative stamps. On a phone, the skill names are no longer truncated.

Learned skills, mobile light

More screenshots

Learned skills, desktop light
Learned skills, mobile dark
Learned skills, desktop dark

Re-verification (2026-10-11)

  • The Activity and Canvas labels started at 688px, not 640px (minor). 38.5rem is the header's border box at a 640px viewport, but a container query reads the content box, 48px narrower. The query is now 35.5rem, so a header without the chat list shows the labels from 640px, as before. (bc7a5849c) Test: e2e/chat-header-stop.spec.ts "the Activity and Canvas labels show from 640px without the chat list, as before" (fails without the fix at 640px); the fit journeys, including the 832–900px sweep, still pass.
  • Restack interaction: feat(studio): align Settings > Learning with the prototype #2232's new in-flight Details test clicks the filter as radios here, like its siblings (selector-only). (39965ac0c)

At 660px, before and after the fix (the images are labelled with the pre-restack hashes):

Header labels at 660px, light

Dark

Header labels at 660px, dark

Gates on the restacked head 39965ac0c: studio:check passes (web 1,404, server 210 tests). At the stack top (#2256): studio:browser 118 passed, 30 skipped; the mecated --mock integration suite 8 passed. The browser suite takes 5.3 minutes on a CI runner.

Commit hashes cited earlier in this body predate the restacks; the current commits keep the same subjects. Hashes in Review fixes are updated.

Closes #2208

🤖 Generated with Claude Code

@peppescg
peppescg added this pull request to stack #2227 October 10, 2026 14:45
@peppescg
peppescg force-pushed the feat/studio-a11y-sweep-2208 branch from 3ad5a10 to fb8bd54 Compare October 11, 2026 14:57
@peppescg
peppescg force-pushed the feat/studio-a11y-sweep-2208 branch from fb8bd54 to e42767f Compare October 11, 2026 15:28
@peppescg
peppescg force-pushed the feat/studio-a11y-sweep-2208 branch from e42767f to f02205d Compare October 11, 2026 15:48
@peppescg
peppescg force-pushed the feat/studio-a11y-sweep-2208 branch from f02205d to 91564e2 Compare October 11, 2026 16:13
@peppescg
peppescg force-pushed the feat/studio-a11y-sweep-2208 branch from 91564e2 to 394aeb5 Compare October 13, 2026 13:29
@peppescg
peppescg force-pushed the feat/studio-a11y-sweep-2208 branch from 394aeb5 to a2fbe2f Compare October 13, 2026 13:54
@peppescg
peppescg force-pushed the feat/studio-a11y-sweep-2208 branch from a2fbe2f to a21bf30 Compare October 13, 2026 15:03
@peppescg
peppescg force-pushed the feat/studio-a11y-sweep-2208 branch from a21bf30 to 39965ac Compare October 14, 2026 08:45
@kantord
kantord force-pushed the feat/studio-a11y-sweep-2208 branch 2 times, most recently from 0641b3c to f138f34 Compare October 14, 2026 08:59
@kantord
kantord force-pushed the feat/studio-a11y-sweep-2208 branch 6 times, most recently from 010944e to f790735 Compare October 14, 2026 10:02
peppescg and others added 10 commits October 14, 2026 13:23
…ng filter

Pins each control's choice, selected state, and actions before they move
to the shadcn radio and toggle groups. A control's state is read from
whichever ARIA attribute it exposes, so the pins hold on both trees.

Refs #2208

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…width

At 320 to 390px the draft chat's starter chips and the Continue chip made
the transcript scroll sideways: the empty state shrank to its widest
child, an untruncated chat title. The empty state now spans the column,
the Continue chip truncates, and the empty column drops the minimap
gutter so the greeting centres like the prototype's mobile empty state.

The header's Activity and Canvas labels now follow the header's width
instead of the viewport's. From 760px the chat list sits beside the chat,
and the labels pushed a running chat's Stop button out of the header.

A browser test checks for sideways scrolling at 320, 360, and 390px on
the chat draft and transcript, settings, skills, schedules, memory, and
shortcuts pages, and that Skills shows one list on each side of 500px.

Refs #2208

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…adcn primitives

The worktree picker's native radios become the shadcn radio group, and
the Skills page's All / Learned switch and Settings → Learning's status
filter become single toggle groups (#2201). Each keeps its look, its
labels, and its 44px targets; choosing the selected pill again keeps it.
The radio group is disabled while a successor is being created.

Tests that read a native radio's `checked` or a pill's `aria-pressed`
now read the primitives' `aria-checked` and `radio` role, with the same
expectations.

Refs #2208

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Breakpoints: the remaining sm: classes in the provider page, the chat
headers and transcript column, and the search dialog move to the
prototype's 500px pivot. A guard test fails on any new sm: or md: class
in a feature or the shell; the five left match the prototype or a
dialog's own width, and each is listed with its reason. The schedules
workspace is left to #2194.

Live regions: loading and empty states are polite statuses and failures
are alerts on the skills inventory and skill detail, the memory fact
page and Facts about you, the shortcuts page, the provider page, the
session dialog's views, the worktree picker, the chat list, the side
thread, the model menus, and the canvas. The search field's spinner
gets a screen-reader label, the back links' arrows and the remaining
icons are hidden from assistive technology.

Refs #2208

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The guard matched a sm: or md: class only right after whitespace, a
quote, or a bracket, so dark:sm:, hover:md:, an arbitrary variant's
[&>svg]:sm:, and max-sm: / max-md: slipped past it, and it read only
the features and the shell. It now splits each class into its variants,
flags a viewport sm, md, max-sm, or max-md in any position (container
queries such as @max-md: still pass), and reads all of src except the
shared primitives in components/ui. Unit cases pin both the matcher and
the scope; the scan finds no new classes.

Refs #2208

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
… chip

The header's container-query journey covered only a default-mode chat
with no delegation. A new journey runs a debug chat in Accept edits with
a fleet of all three families, sweeps the viewport from 500px, and
checks at every width that the header's content fits, Stop and both
badges stay inside it, and the agents chip shows exactly when the
header's content box reaches 52rem, crossing that threshold inside an
832-900px header. Swapping the chip's container query for a viewport
query fails it.

Refs #2208

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…over

The learned-skill list and its Recent changes showed absolute stamps
("Sep 24, 2026, 8:30 AM"), which truncated the skill names on a phone.
Like the prototype, both now read relative time ("1d ago") from the
shared formatter, and the exact time is the stamp's title.

Refs #2208

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ests

#2232's review fix added two learning-queue tests that click the status
filter by role "button". This PR turns that filter into a shadcn toggle
group whose items are radios, as it already did for the other learning
tests. Selector-only change; the assertions are unchanged.

Refs #2208

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…40px again

The labels moved from a viewport breakpoint (640px) to a container query
on the header, meant to start where they did. But 38.5rem is the
header's border box at 640px, and a container query reads the content
box, which is 48px narrower. Without the chat list the labels only
showed from 688px, so 640-687px lost them.

The query is now 35.5rem, the content box at 640px. A new journey checks
the labels hide at 639px and show at 640, 700, and 759px; the header fit
journeys, including the 832-900px sweep with every chip, still pass.

Refs #2208

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
…ils test

The learning filter became a toggle group of radios in this branch, and
its tests moved from button and aria-pressed to radio and aria-checked.
The in-flight Details read test, added below this branch, now does the
same; its assertions are unchanged.

Refs #2208

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@kantord
kantord force-pushed the feat/studio-a11y-sweep-2208 branch from f790735 to 6c1800d Compare October 14, 2026 10:23
@kantord kantord mentioned this pull request Oct 14, 2026
41 tasks done

@kantord kantord left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approving. I reviewed the diff with an independent reviewer and a skeptic pass. No blockers found: every sm: rewrite is a clean min-[500px]: with no inverted pair, roles and aria-hidden are on the right elements, nothing announces repeatedly, and CI is green. The guard and header tests are stronger than the description says.

Follow-up in #2303, section E: the guard test misses min-sm:, min-md: and min-[40rem]: (add min-sm and min-md to the set).

Small description nits, no code change needed: the toggle-group pills are described as the WAI-ARIA radio pattern, but arrow keys only move focus (Space or Enter selects); the guard scans all of src except components/ui and features/schedules, not just "features/ and shell"; the learned-skills dates are now relative, which isn't listed under visible changes.

Fully or partially written by an AI agent.

@kantord
kantord merged commit ab30305 into main Oct 14, 2026
31 checks passed
@kantord
kantord deleted the feat/studio-a11y-sweep-2208 branch October 14, 2026 10:47
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 20, 2026
2 tasks
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.

Studio alignment: accessibility and 500px breakpoint sweep

2 participants