Repository navigation
fix(chat): move focus into the focus picker and back, and announce the task strip's progress - #1942
Merged
Merged
Conversation
…son's work areas (W2-22) CHAT-24 §3: the focus picker opens once on the first Chat Home (marked shown as it opens) with the areas the person's work areas suggest, Home's pill reopens it, and Settings › General › Your focus keeps changes at once. Focus only changes suggestions; no migration (00400 focus, 00408 focus_prompted_at). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Main hid Answer language, notifications and "Thought for N s" in Chat Settings (ansvisor#1903). Keep them hidden and keep the new Your focus row, in the component, the page comment and the help article. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… own settings saveChatFocus, skipChatFocus and markFocusPrompted write only the person's own chat_user_prefs row and cost nothing, like saveChatGeneralSettings, so they join the read-only coverage test's open list with their reasons. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… pill is cancelled From the pill the picker's way out still saved an empty focus, so changing your mind wiped the focus you had. Opened from the pill it now reads Cancel and only closes; Skip for now stays the first opening's answer.
…e task strip's progress Follow-ups from the ansvisor#1914 and ansvisor#1900 reviews, for keyboard and screen-reader users. Focus picker (stacked on ansvisor#1914): - Its question takes focus as it opens, from Home's pill or on the first Chat Home, instead of focus staying on body. - Cancel or Continue from the pill hands focus back to the pill; Skip for now or Continue on the first opening lands on Home's composer (on the pill when the composer can't be typed in). Task strip (/tasks, W2-11): - A polite live region says what changed, once: the rows whose status moved ("Add FAQPage schema: Writing"), then "3 of 4 ready" when the count moved. A reload or the strip's first tasks say nothing. - The progress bar has aria-valuetext ("2 of 4 ready"). - New text in en.json (chatRun.tasks.changed). Co-Authored-By: Claude Opus 5.5 <[email protected]>
…-and-strip # Conflicts: # web/src/components/chat/focus-picker.test.tsx # web/src/components/chat/focus-picker.tsx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two accessibility follow-ups, from the #1914 and #1900 reviews. Both are merged; this branch has current main merged in.
focus-picker.tsx, feat(chat): ask once what Chat should focus on, starting from the person's work areas (W2-22) #1914):run/task-strip.tsx, feat(chat): work through this week's Action Center tasks with /tasks, in a task strip under the answer (W2-11) #1900):aria-live="polite"region announces only the rows that changed, and the ready count once, e.g. "Fix wrong platform claim on /pricing: Ready for review. 3 of 4 ready".aria-valuetext("2 of 4 ready"), matching the visible pill.chatRun.tasks.changed("{title}: {status}").No migration. No Help change: nothing visible changes, only keyboard focus and screen-reader output.
Left out: if saving fails in the pill's picker, the Continue button is disabled while saving, so focus may fall to
body. This was there before.Related issue
None. Follow-ups to the #1914 and #1900 reviews.
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
focusandfocus_prompted_atempty), Skip for now puts the caret in the composer./taskswith VoiceOver on.aria-valuetextand 2 live-region tests;Checklist
yarn lintpasses (0 errors; 7 old warnings in files this PR doesn't touch)yarn typecheckpassesyarn format:checkpasseshelp/(or no user-visible change)Full checks on the branch before main was merged in (1e9f963): web 805 files / 8,406 tests pass, and
yarn buildpasses. Serverformat:checkand lint are clean, and 352 files / 4,994 tests pass (3 skipped). After merging current main (330ca4d;focus-picker.tsxand its test on main equal #1914's approved head, so this branch's versions were kept):format:checkandtypecheckpass, and the Chat components and help tests pass (34 files / 398 tests).🤖 Generated with Claude Code