Skip to content

fix(app): give every unnamed interactive control a spoken name - #14399

Merged
Git-on-my-level merged 4 commits into
mainfrom
task/msd-ui-name-unnamed-controls
Sep 17, 2026
Merged

Git-on-my-level merged 4 commits into
mainfrom
task/msd-ui-name-unnamed-controls

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Sep 17, 2026 •

Copy link
Copy Markdown
Member

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

  • Tasks body GestureDetector(onTap: () {}): no-op hit absorber around RefreshIndicator. Fix is excludeFromSemantics: true, not a name.
  • Conversation-detail body / Summary / Transcript GestureDetectors: they dismiss empty search / unfocus; they are page-covering hit targets, not controls. Same excludeFromSemantics.
  • Back and chevron: do not swap in BackButton. Conversation-detail's leading is a custom 36pt circle FaIcon; devices uses a custom chevron FaIcon. Replacing either would change chrome. Both now use MaterialLocalizations.of(context).backButtonTooltip on the existing IconButton — the same string Flutter's BackButton uses. Memories already has automaticallyImplyLeading: 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.
  • Memories SearchBar extra tap: Flutter's SearchBar wraps the named text field in an InkWell whose 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)

Surface Before After
home 0 0
conversations 1 0
conversation_detail 7 0
memories 4 0
tasks 1 0
settings 1 0
onboarding 0 0
devices 1 0
chat 0 0
pumped total 15 0

Each inventory test now asserts unnamedInteractive is empty so the count cannot grow back on these pumps.

Still unpumpable (counts remain lower bounds)

Same five as the baseline:

A semantics tree is not VoiceOver. This dump is the ratchet; device VO is still owed.

conversation_detail/page.dart is 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 keys
  • TZ=UTC flutter test test/widgets/semantics_baseline_test.dart — unnamed-controls=0 on every pumped surface
  • TZ=UTC bash app/test.sh — exit 0
  • make preflight — 14 checks, OMI_PR_BODY_FILE=.local/pr-body-name-unnamed-controls.md
  • dart format --line-length 120 on edited Dart

Product invariants affected

  • INV-MEM-1 — path glob app/lib/pages/memories/** matched page.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 empty label/value/hint/tooltip. This instance fix already ratchets the pumped-surface count to zero.

🤖 Generated with Claude Code

Review in cubic

Git-on-my-level and others added 4 commits September 18, 2026 03:12
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]>
@Git-on-my-level
Git-on-my-level merged commit fac2291 into main Sep 17, 2026
36 checks passed
@Git-on-my-level
Git-on-my-level deleted the task/msd-ui-name-unnamed-controls branch September 17, 2026 22:01
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.

1 participant