Repository navigation
fix(app): give every unnamed interactive control a spoken name - #14399
Merged
Merged
Conversation
Back, star, share, search, and overflow currently announce nothing; keep the custom circle chrome and give each a localized or platform tooltip. Page-covering search-dismiss GestureDetectors leave the semantics tree. Failure-Class: none Co-authored-by: Cursor <[email protected]>
Memories graph/management, conversations calendar, settings search, and devices back now have spoken names. The tasks no-op GestureDetector is excluded from semantics rather than named. dumpSemanticsTree asserts unnamed-controls stay at zero on every pumped surface. Failure-Class: none Co-authored-by: Cursor <[email protected]>
Same three new occurrences the harness introduced on the baseline PR: prefer_const_constructors, unnecessary_brace_in_string_interps and unnecessary_import. Fixed rather than baselined. This branch carries its own extended copy of the harness, so the fix is applied here directly instead of merged. Failure-Class: none Co-Authored-By: Claude Opus 5 <[email protected]>
#14396 merged its copy of the semantics harness, so the two files conflicted add/add. Resolved by taking this branch's version, which is main's plus isFocusWrapperForNamedField and the getter that uses it — verified as a strict extension by diffing both sides rather than assumed. Co-Authored-By: Claude Opus 5 <[email protected]>
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
Fifteen icon-only activate-controls on the pumped app surfaces had no accessible name. A screen-reader user landing on them heard nothing useful. This names them with localized
context.l10n.*strings (or the platform back tooltip), and takes two no-op tap wrappers out of the semantics tree instead of inventing names for them.This is a shipped a11y defect. It does not add keys, does not touch the addressability catalog, and does not change layout or behaviour.
Judgements
GestureDetector(onTap: () {}): no-op hit absorber aroundRefreshIndicator. Fix isexcludeFromSemantics: true, not a name.GestureDetectors: they dismiss empty search / unfocus; they are page-covering hit targets, not controls. SameexcludeFromSemantics.BackButton. Conversation-detail's leading is a custom 36pt circleFaIcon; devices uses a custom chevronFaIcon. Replacing either would change chrome. Both now useMaterialLocalizations.of(context).backButtonTooltipon the existingIconButton— the same string Flutter'sBackButtonuses. Memories already hasautomaticallyImplyLeading: true; the home-route pump cannot pop, so the measured four unnamed were graph, sliders, SearchBar focus-wrapper, and the FAB, not an AppBar back.SearchBarextra tap: Flutter'sSearchBarwraps the named text field in anInkWellwhose only job is to focus it. That wrapper is not a second control. The dump harness now treats a tap-only ancestor of a named text field as a focus wrapper, not an unnamed activate-control.New ARB keys (via
scripts/l10n.py add, all 49 locales):unstarConversation,moreOptions,filterByDate,memoryGraph. Reused:starConversation,share,search,memoryManagement,transcript,summary,actionItems,createMemoryTooltip,clear.Unnamed activate-control counts (dumpSemanticsTree)
Each inventory test now asserts
unnamedInteractiveis empty so the count cannot grow back on these pumps.Still unpumpable (counts remain lower bounds)
Same five as the baseline:
HomePage— uncancelledTimersHomeContentPage— HTTP daily summariesConversationsPage—CaptureProvider/ recordings refreshConnectDevicePage—ServiceManager.instanceChatPage— B1 teardown on harden(app): addressability contract (keys, route registry, semantic-controls v2) and the real dev-control registration test #14315A semantics tree is not VoiceOver. This dump is the ratchet; device VO is still owed.
conversation_detail/page.dartis a hot single-lane file; it is its own commit, with the other surfaces and the dump ratchet in the follow-up.Test plan
python3 app/scripts/l10n.py check— 49 locales, 3076 keysTZ=UTC flutter test test/widgets/semantics_baseline_test.dart— unnamed-controls=0 on every pumped surfaceTZ=UTC bash app/test.sh— exit 0make preflight— 14 checks,OMI_PR_BODY_FILE=.local/pr-body-name-unnamed-controls.mddart format --line-length 120on edited DartProduct invariants affected
app/lib/pages/memories/**matchedpage.dart. Accessible names only; the three memory tiers are unchanged.Failure-Class
Failure-Class: none
No existing a11y/unnamed-control class in
.github/failure-classes/. Asking before defining one. Candidate if we do: an activatable semantics node with emptylabel/value/hint/tooltip. This instance fix already ratchets the pumped-surface count to zero.🤖 Generated with Claude Code