Skip to content

fix(core): announce loading from busy owners, not composed Spinners - #7940

Closed
korkt-kim wants to merge 1 commit into
meta:mainfrom
korkt-kim:korkt-kim/fix-issue-7856
Closed

korkt-kim wants to merge 1 commit into
meta:mainfrom
korkt-kim:korkt-kim/fix-issue-7856

Conversation

@korkt-kim

Copy link
Copy Markdown
Contributor

User impact

A loading ComplexSelector still mounts a Spinner as its own status region. CommandPalette requests its loading announcement from the input only when the query is nonempty, so opening the palette or clearing the query misses that path. Someone waiting for choices can miss the busy start or receive feedback from more than one owner.

Fixes #7856. This continues the first four controls fixed in #7920; it preserves their implementation and reuses its internal hook.

Problem and solution fit

The indicator's lifetime is not the task's lifetime. Mounting a Spinner with a live role does not reliably deliver its initial message, and replacing an indicator or input slot should not start another announcement occasion.

The fix makes composed Spinners decorative and gives the task owner one busy-start announcement through useBusyAnnouncement. Page owners use the shared polite channel. Owners inside a native dialog use its persistent, initially empty region because the body channel is not exposed behind the modal. A retained, closed dialog waits until it opens; settled or unmounted owners cancel pending delivery.

Expected behavior and authority

AST-086 FR3, FR6 and FR8 require an empty-first persistent region or the shared channel, one delivery per busy occasion, and no live role on the composed indicator. FR4 leaves transcript content to its log owner; history-loading feedback is outside that log.

The existing input-field contract, CommandPaletteInput contract, and ChatMessageList contract continue to own their task behavior. Result and empty-result announcements, busy-state calculations, localized words, and transcript delivery are preserved.

AST-009 FR4, FR17 and FR19 distinguish DOM/accessibility-tree routing evidence from actual speech. Real-AT observation is recommended follow-up, not a merge or release gate.

Smallest restoration

Evidence

Source: 35d910e9af74056e99a4c38ea3397391c0e47fcc, rebased onto main at 36515dccd11c8eebd212bd763b07087023cefce3.

  • Before: substituting the base versions of ComplexSelector.tsx and useBusyAnnouncement.ts through a temporary Vite loader makes five selected regressions fail: the exposed indicator, hidden-dialog busy start, close-before-write, message change before delivery, and settled/unmounted pending writes. No working-tree source swap was used.
  • After: all 63 new ownership/lifecycle cases and all 20 upstream busy-owner cases pass. Initial and repeated busy starts deliver once; unchanged rerenders and StrictMode replay do not repeat them. A modal region is inserted empty, then populated on a later frame.
  • Representative unchanged paths: standalone Spinner tests, existing result/empty-result behavior, control names and busy state, Switch's localized message, and chat transcript ownership remain covered by the affected regression run.
  • Browser: Playwright 1.61.1 with Chromium 149.0.7827.55 on macOS passes all three checked-in routing/accessibility-tree tests against Storybook serving this source. They cover a page control; an initially busy native modal with field, Switch, CheckboxInput, and native/touch date paths; and palette bootstrap, query, clear and reopen. The Spinner is excluded from the accessibility tree while one polite status owner is exposed.
  • Separate fix(Spinner): route standalone loading through the shared announcement channel #7910 combination: 287 focused tests pass with Spinner and status-binding sources loaded from ad6e9ae01175ed11afb8aca1fab34148547ce57f under their original module IDs. Loaded files were the Spinner runtime/tests and the two jsdom status-binding files. This is a pinned-source overlay, not a merged checkout; fix(Spinner): route standalone loading through the shared announcement channel #7910's Chromium binding was not run in that combination, and its standalone role choice is not decided here.

Actual screen-reader speech was not tested. Recommended follow-up remains NVDA + Chrome on Windows, VoiceOver + Safari on macOS, and native/touch date flows on VoiceOver + Safari on iOS and TalkBack + Chrome on Android. The committed stories are a11y-busy-announcements--page-controls, --initially-busy-modal, and --palette-busy-starts.

Scope

Testing

  • Affected Vitest regression run: 3,012 passed across 91 files.
  • Current-source Chromium routing/accessibility-tree suite: 3 passed.
  • Pinned fix(Spinner): route standalone loading through the shared announcement channel #7910 focused combination: 287 passed across 8 files.
  • Core TypeScript, targeted ESLint, Prettier, git diff --check, and pnpm check:repo (including knowledge and changeset checks): passed.
  • Base-source regression proof: all five selected cases fail as expected.

Unit and type checks ran with Node 22.23.3 and pnpm 11.10.0.

pnpm exec vitest run --project ui --maxWorkers=4 \
  packages/core/src/{TextInput,TextArea,Selector,MultiSelector,ComplexSelector,Typeahead,Tokenizer,DateInput,DateRangeInput,DateTimeInput,TimeInput,FileInput,CheckboxInput,Switch,DropdownMenu,Thumbnail,Chat,CommandPalette,Spinner,FieldStatus} \
  packages/core/src/__tests__/busyAnnouncements.test.tsx \
  packages/core/src/__tests__/BusyOwnerAnnouncement.test.tsx \
  packages/core/src/hooks/useAnnounce.test.tsx

pnpm exec tsc --noEmit -p packages/core/tsconfig.json
pnpm check:repo

# Against Storybook serving the source commit above:
ASTRYX_STORYBOOK_URL=http://localhost:6126 pnpm exec playwright test \
  packages/core/src/__tests__/BusyAnnouncements.a11y.chromium.spec.ts \
  --project chromium
Global-baseline applicability receipt (46 matched claims)

The semantic trigger is accessibility. This receipt preserves each matched record, claim, trigger, match reason and digest at the base/head above. It is applicability evidence, not blanket authority over the change or merge approval; the direct owners cited above resolve the loading delta first.

node scripts/review-global-baselines.mjs \
  --authority-commit 36515dccd11c8eebd212bd763b07087023cefce3 \
  --review-head 35d910e9af74056e99a4c38ea3397391c0e47fcc \
  --triggers accessibility
{
  "schemaVersion": 1,
  "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
  "reviewHead": "35d910e9af74056e99a4c38ea3397391c0e47fcc",
  "requestedTriggers": [
    "accessibility"
  ],
  "matches": [
    {
      "recordId": "architecture:internationalization",
      "path": "docs/architecture/internationalization.md",
      "trigger": "accessibility",
      "claimId": "INV1",
      "claim": "Astryx owns Astryx strings, not application copy.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"architecture:internationalization/INV1\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "0546a891278a33ce04b930a87e284801dd5edf42f2f247f11b47c82c8b7cb2bd"
    },
    {
      "recordId": "architecture:internationalization",
      "path": "docs/architecture/internationalization.md",
      "trigger": "accessibility",
      "claimId": "INV1a",
      "claim": "Astryx-owned text is catalog-backed.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"architecture:internationalization/INV1a\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "0546a891278a33ce04b930a87e284801dd5edf42f2f247f11b47c82c8b7cb2bd"
    },
    {
      "recordId": "architecture:internationalization",
      "path": "docs/architecture/internationalization.md",
      "trigger": "accessibility",
      "claimId": "INV7",
      "claim": "Messages produce strings.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"architecture:internationalization/INV7\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "0546a891278a33ce04b930a87e284801dd5edf42f2f247f11b47c82c8b7cb2bd"
    },
    {
      "recordId": "design:bidirectionality",
      "path": "docs/design/bidirectionality.md",
      "trigger": "accessibility",
      "claimId": "DR1",
      "claim": "Preserve meaning, not coordinates.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"design:bidirectionality/DR1\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "b73b8b28a3f85bdf5d6a7a28ac80798a13decf1e2ead7f8ca39d98f4c75ef804"
    },
    {
      "recordId": "design:bidirectionality",
      "path": "docs/design/bidirectionality.md",
      "trigger": "accessibility",
      "claimId": "DR10",
      "claim": "Exceptions require semantics, not convenience.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"design:bidirectionality/DR10\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "b73b8b28a3f85bdf5d6a7a28ac80798a13decf1e2ead7f8ca39d98f4c75ef804"
    },
    {
      "recordId": "design:bidirectionality",
      "path": "docs/design/bidirectionality.md",
      "trigger": "accessibility",
      "claimId": "DR11",
      "claim": "Keyboard direction is resolved at interaction time.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"design:bidirectionality/DR11\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "b73b8b28a3f85bdf5d6a7a28ac80798a13decf1e2ead7f8ca39d98f4c75ef804"
    },
    {
      "recordId": "design:bidirectionality",
      "path": "docs/design/bidirectionality.md",
      "trigger": "accessibility",
      "claimId": "DR12",
      "claim": "Pointer and touch geometry is direction-invariant in quality.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"design:bidirectionality/DR12\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "b73b8b28a3f85bdf5d6a7a28ac80798a13decf1e2ead7f8ca39d98f4c75ef804"
    },
    {
      "recordId": "design:bidirectionality",
      "path": "docs/design/bidirectionality.md",
      "trigger": "accessibility",
      "claimId": "DR2",
      "claim": "Content direction and layout direction are distinct.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"design:bidirectionality/DR2\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "b73b8b28a3f85bdf5d6a7a28ac80798a13decf1e2ead7f8ca39d98f4c75ef804"
    },
    {
      "recordId": "design:bidirectionality",
      "path": "docs/design/bidirectionality.md",
      "trigger": "accessibility",
      "claimId": "DR8",
      "claim": "Hit targets follow visible controls.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"design:bidirectionality/DR8\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "b73b8b28a3f85bdf5d6a7a28ac80798a13decf1e2ead7f8ca39d98f4c75ef804"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR1",
      "claim": "The recommendation follows the claimed user outcome. Real AT/browser follow-up is recommended only when the intended outcome depends on AT-specific behavior: how AT exposes or announces focus, AT-specific focus order, spoken/braille output, browse or virtual-cursor behavior, mode changes, or a known AT/browser divergence. A semantic code change or focus-only browser behavior is not the trigger. The recommendation never makes real-AT evidence a merge or release requirement (FR17).",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR1\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR10",
      "claim": "The tested state is the claimed state. Evidence exercises the transition or state that carries the user outcome, such as opening the surface, moving focus, producing the status update, dismissing and restoring focus, or entering with the virtual cursor. A static baseline that merely contains the component is insufficient.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR10\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR11",
      "claim": "Real means the shipping pairing. A real-AT check runs the named assistive technology against the named shipping browser on its supported operating system. A virtual machine, remote machine, or simulator is acceptable only when it runs that actual pairing and preserves the input/mode under test. A DOM emulator, accessibility snapshot, synthetic speech stub, or browser engine standing in for a branded browser is not real-AT evidence.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR11\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR12",
      "claim": "Desktop-neutral follow-up uses two independent stacks: NVDA + Chrome on Windows and VoiceOver + Safari on macOS. A platform-specific claim uses its matching pairing only unless FR14 expands it.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR12\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR13",
      "claim": "Mobile follow-up uses a matching mobile stack. A mobile or touch/virtual-cursor outcome uses at least one matching mobile pairing, and both iOS and Android only when the claim covers both and there is reason to expect different outcomes.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR13\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR14",
      "claim": "Divergence expands rather than replaces. Every side named in a known divergence is included even when that adds a pairing beyond FR12 or FR13.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR14\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR15",
      "claim": "Versions and modes are part of the result. A receipt names OS, AT, browser, input mode, and material settings or verbosity that affect the result. “Screen reader checked” or a browser name without its AT is not a matrix.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR15\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR16",
      "claim": "Representative does not mean exhaustive. Passing the selected pairings supports only the recorded outcome and pairings. It does not claim every AT, browser, verbosity setting, locale, or input method behaves identically.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR16\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR17",
      "claim": "Merge and release need only producible evidence. A change merges to `main` and ships in a stable release once the unit, DOM, accessibility-tree, axe, and real-browser evidence its owning records require passes. Pending, missing, or not-yet-run real-AT observation MUST NOT block merge or stable release, and no record may make it a gate.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR17\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR19",
      "claim": "Lower layers set the bar where real AT is unavailable. An announcement claim is met at merge by FR4 evidence. Focus-exposure, mode, and virtual-cursor claims are met by the accessibility-tree and real-browser evidence that observes the nearest producible state. That evidence MUST NOT be described as proving speech, timing, or cursor placement.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR19\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR2",
      "claim": "Focus changes warrant follow-up only for AT-specific outcomes. Real-AT follow-up is recommended when the claim depends on how AT exposes, announces, or orders programmatic, initial, restored, composite, or after-dismissal focus. Focus destination, order, return, keyboard operation, focus-ring styling, a refactor preserving the same browser focus target, or a static `tabIndex` correction does not warrant it by itself. The owning component and [interaction-modality record](../../architecture/interaction-modality.md) define those browser and visual behaviors.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR2\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR3",
      "claim": "Role, name, and description are proved at the accessibility tree. A computed role, accessible name, or description is proved by accessibility-tree evidence. Real-AT follow-up is additionally recommended when the change relies on that semantic being announced during entry or a state transition, changing interaction/browse mode, or resolving a known AT/browser divergence.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR3\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR4",
      "claim": "Announcements are proved by their routing. A live region, status message, alert, validation announcement, or loading/completion transition is proved by DOM and accessibility-tree evidence of which element or channel carries it, its text, its urgency, and how many updates each occasion produces. Real-AT follow-up is recommended when success depends on what is spoken, its order, when it occurs, whether it repeats, or whether it is skipped.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR4\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR5",
      "claim": "Virtual-cursor entry warrants follow-up. Real-AT follow-up is recommended when success depends on where screen-reader browse or virtual cursor enters, whether content is discoverable from that entry point, or whether the user can move between browse and interaction modes. Ordinary keyboard Tab order with no browse-mode claim does not warrant it.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR5\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR6",
      "claim": "Known divergence widens follow-up. When a changed pattern has a recorded AT/browser divergence, follow-up covers every named side of it until an owner records that the divergence no longer applies. A passing result from one side does not stand in for another known to differ.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR6\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR7",
      "claim": "Other changes use proportionate evidence. Static semantics, keyboard behavior, color/contrast, target size, source order, and similar accessibility changes use the least expensive evidence layer that directly proves the claim. They do not acquire a real-AT follow-up merely because they are accessibility work.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR7\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR8",
      "claim": "AT-dependent claims are named. A change whose intended outcome depends on AT behavior says so in its record and names the lower-layer evidence that proves what can be proved. It needs no matrix, scenario, or release record to merge.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR8\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-009",
      "path": "docs/specs/AST-009/spec.md",
      "trigger": "accessibility",
      "claimId": "FR9",
      "claim": "Evidence composes by claim. A change keeps its lower-layer evidence. Real-AT observation, when it runs, adds only the claims it can prove and MUST NOT replace deterministic regression coverage for behavior the lower layers own.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-009/FR9\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "9a56dee2ae1933e9ede668a959d57ff83f3424649252740e5a09e2d38b2fab93"
    },
    {
      "recordId": "spec:AST-020",
      "path": "docs/specs/AST-020/spec.md",
      "trigger": "accessibility",
      "claimId": "FR1",
      "claim": "WCAG 2.2 A and AA are the conformance baseline.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-020/FR1\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "c98ee5ebc48101d90d9ed12b4035d31301c56fb10edd4165672849d2fddfb86f"
    },
    {
      "recordId": "spec:AST-020",
      "path": "docs/specs/AST-020/spec.md",
      "trigger": "accessibility",
      "claimId": "FR15",
      "claim": "Adoption follows the role a component already plays.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-020/FR15\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "c98ee5ebc48101d90d9ed12b4035d31301c56fb10edd4165672849d2fddfb86f"
    },
    {
      "recordId": "spec:AST-020",
      "path": "docs/specs/AST-020/spec.md",
      "trigger": "accessibility",
      "claimId": "FR2",
      "claim": "APG defines an adopted widget pattern, not universal conformance.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-020/FR2\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "c98ee5ebc48101d90d9ed12b4035d31301c56fb10edd4165672849d2fddfb86f"
    },
    {
      "recordId": "spec:AST-020",
      "path": "docs/specs/AST-020/spec.md",
      "trigger": "accessibility",
      "claimId": "FR6",
      "claim": "Evidence layers keep distinct proof boundaries.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-020/FR6\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "c98ee5ebc48101d90d9ed12b4035d31301c56fb10edd4165672849d2fddfb86f"
    },
    {
      "recordId": "spec:AST-055",
      "path": "docs/specs/AST-055-caller-rendered-trigger/spec.md",
      "trigger": "accessibility",
      "claimId": "AR1",
      "claim": "The caller's control carries the disclosure.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-055/AR1\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "e40db994f7de57d27adf6a148460a169625bc605b437570c2af957808713acc9"
    },
    {
      "recordId": "spec:AST-055",
      "path": "docs/specs/AST-055-caller-rendered-trigger/spec.md",
      "trigger": "accessibility",
      "claimId": "AR2",
      "claim": "One interactive element, one focus ring.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-055/AR2\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "e40db994f7de57d27adf6a148460a169625bc605b437570c2af957808713acc9"
    },
    {
      "recordId": "spec:AST-055",
      "path": "docs/specs/AST-055-caller-rendered-trigger/spec.md",
      "trigger": "accessibility",
      "claimId": "AR3",
      "claim": "Focus returns to the control.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-055/AR3\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "e40db994f7de57d27adf6a148460a169625bc605b437570c2af957808713acc9"
    },
    {
      "recordId": "spec:AST-055",
      "path": "docs/specs/AST-055-caller-rendered-trigger/spec.md",
      "trigger": "accessibility",
      "claimId": "AR4",
      "claim": "Every supported configuration keeps a complete keyboard path.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-055/AR4\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "e40db994f7de57d27adf6a148460a169625bc605b437570c2af957808713acc9"
    },
    {
      "recordId": "spec:AST-056",
      "path": "docs/specs/AST-056-search-prop-shape/spec.md",
      "trigger": "accessibility",
      "claimId": "AR1",
      "claim": "The empty-result message reaches assistive technology as written.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-056/AR1\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "2cc54ca2bdfcfaaa8d56ef98b3934037c5e8135707ee9cb6d42b7a255c919a7f"
    },
    {
      "recordId": "spec:AST-056",
      "path": "docs/specs/AST-056-search-prop-shape/spec.md",
      "trigger": "accessibility",
      "claimId": "AR2",
      "claim": "The query input has an accessible name that is not its placeholder.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-056/AR2\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "2cc54ca2bdfcfaaa8d56ef98b3934037c5e8135707ee9cb6d42b7a255c919a7f"
    },
    {
      "recordId": "spec:AST-057",
      "path": "docs/specs/AST-057-row-actions/spec.md",
      "trigger": "accessibility",
      "claimId": "AR1",
      "claim": "The panel is real while resting and absent while closed.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-057/AR1\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "1e1dff68e3a59c8c6ada5f8348e36647a4aa3c497f3baf645746047a5a5d0be0"
    },
    {
      "recordId": "spec:AST-057",
      "path": "docs/specs/AST-057-row-actions/spec.md",
      "trigger": "accessibility",
      "claimId": "AR2",
      "claim": "The gesture touches nothing on a pointer that can hover.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-057/AR2\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "1e1dff68e3a59c8c6ada5f8348e36647a4aa3c497f3baf645746047a5a5d0be0"
    },
    {
      "recordId": "spec:AST-057",
      "path": "docs/specs/AST-057-row-actions/spec.md",
      "trigger": "accessibility",
      "claimId": "AR3",
      "claim": "The row's primary stays one tab stop.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-057/AR3\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "1e1dff68e3a59c8c6ada5f8348e36647a4aa3c497f3baf645746047a5a5d0be0"
    },
    {
      "recordId": "spec:AST-058",
      "path": "docs/specs/AST-058-option-actions/spec.md",
      "trigger": "accessibility",
      "claimId": "AR1",
      "claim": "The tree is valid in both modes.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-058/AR1\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "c6b62f16eff00ba153ab0d7c2861d8f4b82766fc2c436e7f8ff9c72c24e8ef0c"
    },
    {
      "recordId": "spec:AST-058",
      "path": "docs/specs/AST-058-option-actions/spec.md",
      "trigger": "accessibility",
      "claimId": "AR2",
      "claim": "Names stay separate.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-058/AR2\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "c6b62f16eff00ba153ab0d7c2861d8f4b82766fc2c436e7f8ff9c72c24e8ef0c"
    },
    {
      "recordId": "spec:AST-058",
      "path": "docs/specs/AST-058-option-actions/spec.md",
      "trigger": "accessibility",
      "claimId": "AR3",
      "claim": "Every modality reaches the action.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-058/AR3\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "c6b62f16eff00ba153ab0d7c2861d8f4b82766fc2c436e7f8ff9c72c24e8ef0c"
    },
    {
      "recordId": "spec:AST-058",
      "path": "docs/specs/AST-058-option-actions/spec.md",
      "trigger": "accessibility",
      "claimId": "AR4",
      "claim": "Selection semantics are unchanged.",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-058/AR4\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "c6b62f16eff00ba153ab0d7c2861d8f4b82766fc2c436e7f8ff9c72c24e8ef0c"
    },
    {
      "recordId": "spec:AST-058",
      "path": "docs/specs/AST-058-option-actions/spec.md",
      "trigger": "accessibility",
      "claimId": "DEC-2",
      "claim": "The host is a grid once an option carries an action",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-058/DEC-2\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "c6b62f16eff00ba153ab0d7c2861d8f4b82766fc2c436e7f8ff9c72c24e8ef0c"
    },
    {
      "recordId": "spec:AST-058",
      "path": "docs/specs/AST-058-option-actions/spec.md",
      "trigger": "accessibility",
      "claimId": "DEC-3",
      "claim": "Two fixed cells per row",
      "matchReason": "Requested trigger \"accessibility\" matched review-applicability:v1 claim \"spec:AST-058/DEC-3\".",
      "authorityCommit": "36515dccd11c8eebd212bd763b07087023cefce3",
      "recordDigest": "c6b62f16eff00ba153ab0d7c2861d8f4b82766fc2c436e7f8ff9c72c24e8ef0c"
    }
  ]
}

@vercel

vercel Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
astryx Ready Ready Preview Oct 22, 2026 7:16pm UTC

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Oct 22, 2026
@astracat-bot

astracat-bot Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
📝 Draft — not reviewed automatically (for maintainers only) Oct 25, 2026, 4:44 AM UTC

@github-actions github-actions Bot added community Authored by a community contributor (not on the eng/design team) needs:code-review High-risk change (new package/component/API) — needs human code review before merge needs:design-review Affects visuals — Design should review labels Oct 22, 2026
cixzhang pushed a commit that referenced this pull request Oct 24, 2026
…S keyboard (#8183)

## User impact

On an iPhone, tapping the clear button of a TextInput or NumberInput that is not focused empties the field and focuses it, but no keyboard comes up. The person has to tap the field again to type the replacement they cleared the field for.

## Problem and solution fit

Since #5440, the clear button's pointer path focuses the field a frame later (`requestAnimationFrame`). iOS Safari raises its keyboard only for a focus made while handling the touch, so the later focus lands with no keyboard. #5440 deferred the focus to avoid a page jump to the top. `preventScroll`, which that change also added, is what prevents the jump; the deferral only broke the keyboard. This change keeps `preventScroll` and focuses inside the tap.

## Expected behavior and authority

UIKit's clear button makes its field the first responder: in a UIKit app on iOS 26.2 the keyboard starts rising 75 ms after the lift. No current record says otherwise; #5440 is the regression history. Siblings: #8158 makes the same change in PanelSearchInput; #6425, #7690, #7910, #7940 (TextInput) and #5978, #8015 (NumberInput) touch the same files with other intents.

## Smallest restoration

Two lines in each of TextInput and NumberInput: the pointer path calls `focus({preventScroll: true})` directly instead of in the next frame. The keyboard and assistive-technology path (`detail === 0`) is unchanged, as is the clear button's `preventDefault` on pointerdown, which keeps a focused field focused. DateInput, TimeInput, DateTimeInput and FileInput have the same pattern; their lanes own them.

## Evidence

Mobile Safari, iOS 26.2 (simulator), page scrolled 254 px, field unfocused with a value, one tap on its clear button:

| | keyboard | page scroll |
| --- | --- | --- |
| TextInput before | none (viewport stays 714) | stays 254 |
| TextInput after | up (viewport 714 → 377) | stays 254 |
| NumberInput before | none | stays 254 |
| NumberInput after | number pad (714 → 404) | 254 → 266: Safari reveals the field the pad would cover |

![Clear tap before and after: TextInput, then NumberInput](https://raw.githubusercontent.com/vjeux/astryx/evidence/c08-clear-keyboard/clear-keyboard/clear-tap-keyboard.png)

- Regression tests: the pointer path focuses synchronously, with `preventScroll`, and without `requestAnimationFrame`. This replaces the test that pinned the deferral.

## Scope

- [x] One defect is restored.
- [x] Separable contradictory or unsettled tagalongs were removed or split.
- [x] No new public API, visual representation, default, or interaction model is hidden under the bug-fix label.
- [x] Public text and artifacts contain no internal Meta context.

## Testing

- `pnpm vitest run` on TextInput, NumberInput and Field: 15 files, 600 tests.
- Core typecheck, eslint and prettier on touched files, `check:changesets`.
- Mobile Safari on the iOS 26.2 simulator (iPhone 17 Pro): the four runs above, with visual viewport, focus and scroll events read from the page.
@korkt-kim korkt-kim closed this Oct 25, 2026
@github-actions
github-actions Bot deleted the korkt-kim/fix-issue-7856 branch October 25, 2026 10:15

This branch was successfully deployed

1 active deployment
Preview — 35d910e9 Deployed Oct 22, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Meta Open Source bot. community Authored by a community contributor (not on the eng/design team) needs:code-review High-risk change (new package/component/API) — needs human code review before merge needs:design-review Affects visuals — Design should review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] A Spinner composed inside a busy control announces itself

1 participant