Skip to content

[Component Audit] MultiSelector: docs list every prop, its default, and the keys it follows - #11868

Draft
cixzhang wants to merge 8 commits into
mainfrom
night-watch-component-audit/MultiSelector/2026-11-15
Draft

cixzhang wants to merge 8 commits into
mainfrom
night-watch-component-audit/MultiSelector/2026-11-15

Conversation

@cixzhang

@cixzhang cixzhang commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

User impact

Builders reading MultiSelector's docs now find labelTooltip and ref (the trigger button, or the caller's control with renderTrigger; with hasSearch in an editable field the search input is the combobox), and see that hasSelectAll, hasSearch, isDisabled, isLabelHidden, isOptional, isRequired, and isLoading default to false. The Chinese and dense docs gain the props they were missing. A new best practice names the WAI-ARIA APG Combobox pattern MultiSelector follows and the keys it answers to. The labelTooltip entry says it has no effect inside an InputGroup or with renderTrigger, where MultiSelector renders no label of its own. No runtime behavior changes.

New tests guard four promises the component record makes but no test checked: a caller onKeyDown is skipped for a key the built-in keyboard model handles and cancels; onChange runs before changeAction, with the same value, for a toggle, select-all, and clear; a MultiSelector inside an InputGroup renders no Field of its own; and a busy field does not take the disabled theme state. A browser audit spec checks the trigger, the list, keyboard and pointer paths, the read-only, disabled, loading, status, size, and variant states, search, the bottom sheet, both directions, both color modes, and a 320 px viewport.

Audit result

  • Package/component: core/MultiSelector (released in @astryxdesign/core under ./MultiSelector)
  • Mode: Night Watch whole-component audit, rubric 1.16.6
  • Base: 1649f688848 (current main merged in, including the active option's new highlighted theme state)
  • Exact head: 4b9ad4d9a35d2efb965615767bf372b65a19d16c
  • Component contract: existing component:MultiSelector (authority: current), unchanged. No observational backfill was prepared.
  • Runtime change: none. Consumer docs, the CLI prop-doc drift list, unit tests, a browser evidence spec, and a [docs] changeset.
Before After
Score 87.2 / C (1 open BLOCK caps the grade at C) 89.6 / C (1 open BLOCK caps the grade at C)
Distinct defects 1 BLOCK, 10 FIX, 0 NIT 1 BLOCK, 6 FIX, 0 NIT

Sensitivity: fix the one open BLOCK and change nothing else, and the after score projects to 94.4 / A (§1 would read 4.5, with the A2 FIX still open).

Section W Before After State
§1 Accessibility 16 3 3 scored; the built-in trigger is a combobox button with aria-haspopup="listbox", aria-expanded, and aria-controls naming a multi-select listbox; ArrowDown opens it on the first selected option, Enter toggles and keeps it open, Escape closes and returns focus; read-only keeps its tab stop with aria-readonly and opens nothing; disabled keeps its tab stop with aria-disabled, no native disabled, a default cursor, no hover paint, and a reason linked through aria-describedby; error status sets aria-invalid; control boxes 24 px or larger (sm 28, md 32, lg 36); axe clean in the default, status, size, variant, read-only, disabled, and loading cases and in the open list. Open BLOCK (A15): the keyboard-active option shows only the hover fill, 1.12:1 light and 1.15:1 dark against the list, under the 3:1 of WCAG 2.2 SC 1.4.11 (the record's Current-state impact). Open FIX (A2): in the empty-search state the listbox holds no option, because the empty message is role="presentation" (spec:AST-086), and axe reports aria-required-children on that listbox; Selector renders its empty state the same way. Graded FIX, not BLOCK: the combobox pattern is otherwise intact and the no-results message still reaches screen readers through its announcement (FR14), so nobody is left without the outcome
§2 Theming 14 5 5 scored; seven documented targets on their painting elements, variant, size, status, disabled, and readonly reflected on the trigger target; token values only; light and dark checked
§3 Public API 14 5 5 scored; FieldInputBaseProps, ref on the trigger, displayName, changeAction beside onChange, container* and control* in place of root styling (FR13)
§4 Behavior 12 4 4 scored; rest, hover, focus, open, toggle, read-only, disabled with a reason, loading, three statuses, three sizes, three variants, empty, search, and the bottom sheet. Three open FIXes the record lists as implementation gaps: isLoading is read as options not yet arrived (FR2; spec:AST-001 FR4); a field with no options opens a "No options" list (FR2; spec:AST-001 FR3, FR6); the trigger height does not grow with a set text size (FR13; spec:AST-102 FR4)
§5a Design, objective 6 5 5 scored from source; spacing, radius, height, type, and color from tokens; the chevron turns and the press scales with transform on duration and easing tokens
§5b Design, rendered 4 5 5 scored from receipted frames in light and dark: the overlay hover tint on the control box, the focus ring, status borders paired with icons, the busy spinner on ordinary paint, the sheet; trigger text at least 4.5:1 in every rest read that has text. The active option's fill is scored once, in §1
§6 Testing 8 4 4.5 scored; FIX closed (V3): no test proved the skipped caller onKeyDown (FR13), the onChange-then-changeAction order (ORD1), the Field-free InputGroup path (FR1), or that busy does not take the disabled theme state (FR11; the paint itself is shown in the loading frame). Open FIX (V3): no direct test that both presentations host one panel tree (FR5) or that the delegated CheckboxInput, Divider, Text, and BottomSheet targets keep their owners beyond rendering (FR4). Both V3 groups are graded FIX, not BLOCK: the behavior holds in existing integration cases and the exact-head frames, so no user reaches a defect through the missing assertion
§7 Code health 8 4.5 4.5 scored; Open FIX (C2, pre-existing): an Effect closes an open surface when the caller turns isReadOnly on. It syncs a caller prop to the layer, which no handler can do, and any focus repair is the layer's own close path (FR15), so it is graded as a pre-existing C2 instance. Advisory, not scored: the isDefaultOpen mount Effect belongs in the shared layer primitive
§8 Docs 8 4 5 scored; FIXes closed: labelTooltip and ref missing from every doc variant, and five or six props missing from the Chinese and dense docs (X5b); seven boolean props without their false default (X5); no accessibility guidance naming the pattern and keys (X16)
§9 i18n and RTL 5 5 5 scored; every string is a catalog key; the curated D4 target and the right-to-left frames put the popup's start edge at the control box's start edge; grid arrows follow direction (FR10, OptionActions spec)
§10 Responsive and touch 5 5 5 scored; at 390 px the bottom-sheet trigger says aria-haspopup="dialog", a toggle keeps the sheet open, Escape closes it and returns focus; at 320 px the field fits its column and the popup is no wider than the control box

§11 is not run for an existing core component.

Why the score moved: the §8 FIXes close with the doc entries, and one of the two §6 FIX groups closes with four new unit cases. The open BLOCK and the record's implementation gaps are unchanged, so the grade stays capped at C.

Pre-fix score: scored from base source before any change. Night Watch records only the landed post-fix result in the score ledger, so the pre-fix score lives here.

Findings fixed

ID Finding Authority Fix and proof
V3 (FIX) No test proved that a caller onKeyDown is skipped for a key the built-in model cancels, that onChange runs before changeAction with the same value, that an InputGroup path renders no Field, or that busy does not take the disabled theme state FR1, FR11, FR13, ORD1; the record's verification map names each as an evidence gap Four new cases in MultiSelector.test.tsx and MultiSelector.fr10.test.tsx. Mutation checks: calling the caller handler after a cancelled key, calling changeAction before onChange, rendering the Field inside a group, and reflecting busy as disabled each fail their case
X5b (FIX) labelTooltip (listed in the CLI prop-doc drift file) and ref were missing from every doc variant; variant, indicatorPosition, width, startIcon, hasClear, and isDefaultOpen were missing from the Chinese docs, and all but variant from the dense docs component:MultiSelector public contract Entries added; the now-fixed MultiSelector.labelTooltip not_in_doc line is removed from core-prop-docs.known-drift.json, which the CLI prop-doc test enforces
X5 (FIX) hasSelectAll, hasSearch, isDisabled, isLabelHidden, isOptional, isRequired, and isLoading had no documented default source defaults (false) default: 'false' on each entry
X16 (FIX) No best practice named the accessibility pattern or its keys WAI-ARIA APG Combobox pattern; FR12 One best practice in each doc variant names the pattern and the open, move, toggle, and close keys

Needs Review

  1. Active option perception (open BLOCK, A15). The record's Current-state impact already lists it. Re-measured on current main, after the active option gained a highlighted theme state: still 1.12:1 light and 1.15:1 dark, with no outline. The maintainers have decided the repair: the active option takes component:Selector AR5's focus ring, because a theme state alone cannot guarantee 3:1. That repair changes rendering, so it lands separately and this audit leaves the finding open.
  2. Empty listbox in the empty-search state (open FIX, A2). spec:AST-086 makes the empty message presentational, and the audit spec sets aside only that listbox's aria-required-children result and reports it here. The maintainers have decided the repair for MultiSelector and Selector together: the message moves outside the listbox, which is not rendered empty. It lands separately.
  3. Record follow-up (not scored). The verification map still lists as evidence gaps the read-only aria-readonly and form submission, the multi-selector-search and section-heading targets (existing cases already assert all four), and three of the claims this pull request now tests (FR1 InputGroup, FR13 cancelled keys, the FR11 theme state). ORD1 is now tested for a toggle, select-all, and clear, but not for a creation, so its line should name only the create path. A later owner-approved record change can update those lines.
  4. Implementation gaps the record lists (open FIXes). Loading read as no options and zero options (FR2; spec:AST-001) need an option-source pending state; the fixed height (FR13; spec:AST-102 FR4) needs the shared element-size change. Each is an owner decision.

Evidence

  • Audit spec: MultiSelectorAudit.a11y.chromium.spec.ts drives existing MultiSelector stories. Every frame has a receipt bound to the Storybook build and checkout: story id, theme, mode, direction, viewport, DPR 2, settled fonts, and no page errors. Each line below is a check that fails the receipt when it does not hold:
    • default (Default; light and dark, both directions, 900 px): a combobox button with aria-haspopup="listbox" and aria-expanded false; a control box of at least 24×24 px; trigger text at least 4.5:1; axe clean closed and open; hover paints the control box differently from rest; Tab reaches the trigger and it matches :focus-visible; ArrowDown opens a multi-select listbox of five multi-selector-option rows with the two selected first and the first highlighted, below the control box and start-aligned in the page direction; Enter deselects and keeps the list open; Escape closes it, returns focus, and the trigger reads 1 selected;
    • statics (light and dark): Sizes with heights increasing from sm to lg; Ghost Variant, Secondary Variant, and Trigger Modes with their variant reflected; Status with aria-invalid on the error field only and, in each field, one status icon in place of the chevron; Read Only with aria-readonly, no aria-controls, a tab stop, no clear button, both values submitted, and no open on a press; Disabled With Message with aria-disabled, no native disabled, a tab stop, a default cursor, no painted hover, no open on a press or ArrowDown, the reason shown on focus and linked through aria-describedby, and axe clean; Empty States with the loading field busy, focusable, and not disabled, and the custom empty text in the open list;
    • search (Searchable; both directions): the plain trigger opens the panel with focus in the search combobox; "an" leaves only matching rows; no match shows the empty-search state, with axe clean apart from that listbox's aria-required-children result (Needs Review 2); one Escape closes it and returns focus;
    • sheet (Bottom Sheet Presentation; light and dark, 390 px): aria-haspopup="dialog", a sheet with a listbox of five rows, a toggle that keeps it open, Escape closes and returns focus; and Default at 320 px: the field fits its column and the popup is no wider than the control box.
  • Exact-head run: Audits at head run 43895882800: 25 audit receipts and 55 frames pass at the exact head (receipts in its contract evidence artifact). Exact-head CI is the browser measurement.
  • Before and after: no file a story renders changed (docs, tests, the drift list, and the spec only), so the rendered frames are the base rendering; there is no visual before/after pair to compare.
  • Unit tests: the MultiSelector folder, BusyOwnerAnnouncement, Selector.searchHighlight, docPropReferences, docPropLiterals, and themingTargets suites pass locally (878 cases), and so does the CLI prop-doc test. Core typecheck and strict lint pass.
  • RTL audit: the curated D4 target for MultiSelector on Default, which the exact-head Touched components check runs, plus the right-to-left frames above.
  • Visual acceptance: N/A: no rendered change.
  • Accessibility: axe runs in the default case (closed and open), every static case, the search no-results state, and the sheet after a toggle; the 320 px case runs none; the audit's default axe pass covers every MultiSelector story.

Closed evidence inventory

Surface Source Tests Consumer docs Rendered evidence Authority Result
Exports MultiSelector, its props and option types MultiSelector/index.ts export checks in CI MultiSelector.doc.mjs — architecture:public-component-api reachable
Field shell and InputGroup path MultiSelector.tsx grouped-Field case (new), group geometry cases anatomy default, status frames FR1, FR4 pass
Trigger: role, popup, expanded, controls MultiSelector.tsx ARIA, keyboard cases usage, best practice (new) default frames FR3, FR8, FR12 pass
options, sections, dividers, select-all MultiSelector.tsx list-structure, select-all cases options, hasSelectAll (default added) default, sheet frames FR2 pass
value, onChange, changeAction, htmlName MultiSelector.tsx order case (new), form cases each read-only frame ORD1, FR14 pass
hasSearch, hasCreate, empty texts MultiSelector.tsx search, create cases; CreateRow spec each (default added) search frames FR9, FR14, FR16 pass
isReadOnly MultiSelector.tsx read-only cases isReadOnly read-only frames FR7 pass
isDisabled, disabledMessage MultiSelector.tsx focusable-disabled cases both (default added) disabled frames FR11 pass
isLoading, busy MultiSelector.tsx busy theme-state case (new), loading cases isLoading (default added) loading frame FR11 pass
size, variant, status, statusVariant MultiSelector.tsx statusVariant cases each sizes, variants, status frames FR3, FR13 pass
triggerDisplay, formatValue, maxBadges, renderOption, indicatorPosition MultiSelector.tsx display cases each trigger-modes frame FR1, FR2 pass
presentation MultiSelector.tsx bottom-sheet cases presentation sheet frames FR5 pass
renderTrigger, handleRef, onOpenChange, isDefaultOpen MultiSelector.tsx render-prop, handle cases each — FR8 pass
onClick, onFocus, onKeyDown MultiSelector.tsx handler cases, skipped-key case (new) each — FR13 pass
container*, control*, labelTooltip, ref MultiSelector.tsx FR10 suites each (labelTooltip, ref new) — FR13 pass
Option actions (grid) MultiSelector.tsx grid cases; OptionActions spec options — FR10 pass
Seven theming targets MultiSelector.tsx theme-target cases, themingTargets theming.targets open frames FR3, FR6 pass
Active option perception MultiSelector.tsx — — open-keyboard frames (1.12:1, 1.15:1) WCAG 2.2 SC 1.4.11 open BLOCK
Empty-search listbox MultiSelector.tsx empty-state cases emptySearchText no-results frames spec:AST-086; ARIA required owned elements open FIX
FR10 eligibility report
{
  "schema": "astryx.audit-eligibility/v1",
  "component": "MultiSelector",
  "package": "core",
  "mode": "night-watch",
  "rubricVersion": "1.16.6",
  "repository": {"base": "1649f688848", "head": "4b9ad4d9a35d2efb965615767bf372b65a19d16c"},
  "contract": {"id": "component:MultiSelector", "authority": "current", "changed": false},
  "inventory": {"closed": true, "rows": 19},
  "remediations": [
    {"id": "V3", "kind": "behavior-test", "evidence": "4 unit cases with mutation checks"},
    {"id": "X5b", "kind": "doc-drift", "evidence": "labelTooltip, ref and Chinese and dense entries; known-drift line removed"},
    {"id": "X5", "kind": "doc-drift", "evidence": "false defaults on 7 boolean props"},
    {"id": "X16", "kind": "doc-drift", "evidence": "best practice names and links the combobox pattern and keys"}
  ],
  "unresolved": {
    "objective": ["A15 active option under 3:1 (record current-state impact)", "A2 empty listbox in the empty-search state"],
    "manual": ["FR2 loading and zero options", "FR13 fixed height", "C2 read-only close Effect", "record verification-map follow-up"]
  },
  "approvals": {"specOwner": "n/a (no record change)"},
  "verdict": {"autoMergeEligible": false, "reasons": ["AST-029 FR11 activation has not shipped", "open BLOCK A15"]}
}

Overlap checked: #11484 and #11851 change MultiSelector source (this pull request changes none); #6819 changes the default presentation (draft); #11621 also removes a line from the CLI prop-doc drift list, next to this one.

…s, and name the combobox pattern; tests guard the change order, cancelled keys, busy paint, and the grouped field
@vercel

vercel Bot commented Nov 15, 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 Nov 16, 2026 3:34pm UTC

Request Review

@astracat-bot

astracat-bot Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

AI review status for this pull request.

Review status Updated
🟢 Reviewed (for maintainers only) Nov 16, 2026, 3:43 PM UTC

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Nov 15, 2026
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

PR Analysis Report

Current run: The current CI run concluded skipped. Current analysis is unavailable.


Generated by PR Enrichment workflow | View current CI run

@astracat-bot astracat-bot Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: CI has not run on this head yet, and it starts once the pull request is marked ready for review.

The MultiSelector docs now match the component: the English, Chinese and dense docs list every prop, each literal default is written down, and the new best practice's keys follow the component record. The four new unit tests pass and cover clauses the record lists as untested.

  • Non-blocking: once this lands, the MultiSelector record's verification map still lists the evidence gaps these tests close (FR1, FR11, the onKeyDown part of FR13, and the change-order rule); a record edit that cites these tests keeps it accurate.
Claims and files checked

Review mode: full; reason: no-earlier-review

  • Claim (changeset): the prop docs list labelTooltip and ref. Verified: MultiSelector.doc.mjs:323-328 and :439-444; the prop-docs drift test passes with the labelTooltip allowance removed.
  • Claim (changeset): hasSelectAll, hasSearch, isDisabled, isLabelHidden, isOptional, isRequired and isLoading default to false. Verified against the destructured defaults in MultiSelector.tsx:1121-1143.
  • Claim (changeset): the Chinese docs gain variant, and the Chinese and dense docs gain indicatorPosition, width, startIcon, hasClear, isDefaultOpen, labelTooltip and ref. Verified: MultiSelector.doc.mjs:560, :587-594, :610, :765-770, :787; each matches its English entry.
  • Claim (changeset): the dense onKeyDown entry says the handler is skipped for keys the built-in model handles and cancels. Verified: MultiSelector.doc.mjs:785-786, and the new test at MultiSelector.fr10.test.tsx:164.
  • Claim (changeset): a new best practice names the combobox pattern and its keys. Verified: MultiSelector.doc.mjs:522-526, :646-650, :706-710, against the record's keyboard, grid and focus-return clauses.
  • Claim (title): the docs list every prop, its default, and the keys it follows. Verified: 50 props in each of the three doc sets, and every literal default in the code is documented.
  • Claim (description): the audit is in progress and its scorecard lands before the pull request is ready. A status statement; nothing to verify at this head.
  • .changeset/multi-selector-audit-docs.md: clear.
  • packages/cli/test/core-prop-docs.known-drift.json: clear.
  • packages/core/src/MultiSelector/MultiSelector.doc.mjs: clear.
  • packages/core/src/MultiSelector/MultiSelector.fr10.test.tsx: clear.
  • packages/core/src/MultiSelector/MultiSelector.test.tsx: clear.
  • packages/core/src/MultiSelector/__tests__/MultiSelectorAudit.a11y.chromium.spec.ts: clear; CI runs it on this audit pull request.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: CI has not run on this head yet, and it starts once the pull request is marked ready for review.

The MultiSelector docs match the component, and this push's audit-spec change measures the control box, which is the press target the component record names. The drift test, the four new unit tests and the core typecheck pass on this head.

  • Non-blocking: the narrow-light-ltr audit case now passes at any viewport, because the Default story fixes a 300 px column inside 64 px of padding; it cannot support a 320 px reflow result in the audit scorecard unless it runs on a fixture whose field fills the viewport.
  • Non-blocking: once this lands, the MultiSelector record's verification map still lists the evidence gaps these tests close (FR1, FR11, the onKeyDown part of FR13, and the change-order rule); a record edit that cites these tests keeps it accurate.
Claims and files checked

Review mode: incremental; reason: none

  • Claim (changeset): the prop docs list labelTooltip and ref. Verified: MultiSelector.doc.mjs:323-328 and :439-444; the prop-docs drift test passes with the labelTooltip allowance removed.
  • Claim (changeset): hasSelectAll, hasSearch, isDisabled, isLabelHidden, isOptional, isRequired and isLoading default to false. Verified against the destructured defaults in MultiSelector.tsx:1121-1143.
  • Claim (changeset): the Chinese docs gain variant, and the Chinese and dense docs gain indicatorPosition, width, startIcon, hasClear, isDefaultOpen, labelTooltip and ref. Verified: MultiSelector.doc.mjs:560, :587-594, :610, :765-770, :787; each set now has an entry for all 50 props.
  • Claim (changeset): the dense onKeyDown entry says the handler is skipped for keys the built-in model handles and cancels. Verified: MultiSelector.doc.mjs:785-786, and the new test at MultiSelector.fr10.test.tsx:164.
  • Claim (changeset): a new best practice names the combobox pattern and its keys. Verified: MultiSelector.doc.mjs:522-526, :646-650, :706-710, against the record's keyboard, grid and focus-return clauses.
  • Claim (title): the docs list every prop, its default, and the keys it follows. Verified: 50 props in each of the three doc sets, and every destructured default in the code is documented.
  • Claim (description): the audit is in progress and its scorecard lands before the pull request is ready. A status statement; nothing to verify at this head.
  • Claim (commit): the audit spec measures the control box, the press target. Verified: MultiSelector.tsx:1925-1935 routes a press on the control box to the trigger, and the popup anchors to that box.
  • .changeset/multi-selector-audit-docs.md: clear.
  • packages/cli/test/core-prop-docs.known-drift.json: clear.
  • packages/core/src/MultiSelector/MultiSelector.doc.mjs: clear.
  • packages/core/src/MultiSelector/MultiSelector.fr10.test.tsx: clear.
  • packages/core/src/MultiSelector/MultiSelector.test.tsx: clear.
  • packages/core/src/MultiSelector/__tests__/MultiSelectorAudit.a11y.chromium.spec.ts: non-blocking note on the narrow case (above); otherwise clear.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: one new prop description in the MultiSelector docs is wrong for searchable fields.

  • Miss: the new ref entry (MultiSelector.doc.mjs line 443, and the Chinese entry at line 610) says the trigger is the button that carries the combobox role, but in an editable field with hasSearch the trigger has no role and the search input is the combobox (MultiSelector.tsx line 2709), so both entries need to say that the role moves to the search input in that mode.
  • Non-blocking: the audit's search case accepts a second Escape and only records the count (MultiSelectorAudit.a11y.chromium.spec.ts lines 780-784), while the component closes on the first press, so a strict check keeps the receipt honest.

The other doc entries, defaults and keys match the component, and the drift test, the four new unit tests and the core typecheck pass on this head. CI has not run on this draft yet.

Claims and files checked

Review mode: incremental; reason: none

  • Claim (title): the docs list every prop, its default, and the keys it follows. Verified: 50 props in each of the English, Chinese and dense sets, and every literal default is documented (the prop-docs drift test passes).
  • Claim (description): the audit is in progress and its scorecard lands before the pull request is ready. A status statement; nothing to verify at this head.
  • Claim (changeset): the prop docs list labelTooltip and ref. Verified present at MultiSelector.doc.mjs:323-328 and :439-444; the ref wording is the blocking finding above.
  • Claim (changeset): seven booleans default to false. Verified against the destructured defaults in MultiSelector.tsx:1121-1143.
  • Claim (changeset): the Chinese docs gain variant, and the Chinese and dense docs gain indicatorPosition, width, startIcon, hasClear, isDefaultOpen, labelTooltip and ref. Verified: MultiSelector.doc.mjs:560, :587-594, :610, :765-770, :787.
  • Claim (changeset): the dense onKeyDown entry says the handler is skipped for keys the built-in model handles and cancels. Verified: MultiSelector.doc.mjs:785-786 and the new test at MultiSelector.fr10.test.tsx:164.
  • Claim (changeset): a new best practice names the combobox pattern and its keys. Verified: MultiSelector.doc.mjs:522-526, :646-650, :706-710, against the component record's keyboard, grid and focus-return clauses.
  • Claim (first commit): tests guard the change order, cancelled keys, busy paint and the grouped field. Verified: MultiSelector.test.tsx:632, :1910, :5406 and MultiSelector.fr10.test.tsx:164 pass.
  • Claim (second commit): the audit spec measures the control box, the press target. Verified: MultiSelector.tsx:1925-1935 routes a press on the control box to the trigger.
  • Claim (third commit): the search audit drives the plain trigger and the search combobox. Verified: MultiSelector.tsx:2709 drops the trigger's combobox role with search, and the search input carries it (:2031-2038).
  • .changeset/multi-selector-audit-docs.md: clear.
  • packages/cli/test/core-prop-docs.known-drift.json: clear.
  • packages/core/src/MultiSelector/MultiSelector.doc.mjs: blocking finding on the ref entries; otherwise clear.
  • packages/core/src/MultiSelector/MultiSelector.fr10.test.tsx: clear.
  • packages/core/src/MultiSelector/MultiSelector.test.tsx: clear.
  • packages/core/src/MultiSelector/__tests__/MultiSelectorAudit.a11y.chromium.spec.ts: two non-blocking notes (the search case's second Escape, and the narrow case from the earlier inline comment); otherwise clear.

Automated review (maintainer link)

…, disabled axe, one Escape; docs: labelTooltip limit

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: one new prop description in the MultiSelector docs is still wrong for searchable fields.

  • Miss: the new ref entry (MultiSelector.doc.mjs line 443, and the Chinese entry at line 611) says the trigger is the button that carries the combobox role, but in an editable field with hasSearch the trigger has no role and the search input is the combobox (MultiSelector.tsx line 2709), so both entries need one sentence that names that exception and keeps the renderTrigger case in the first sentence the CLI prints.

The audit-spec changes in this push read correctly and type-check, and the prop-docs drift test, the new unit tests and the core typecheck pass on this head. Non-blocking: the new labelTooltip limit is accurate, but the CLI prints only its first sentence, and inside an InputGroup the group's own labelTooltip is the one to use (see the inline note). CI has not run on this draft yet.

Claims and files checked

Review mode: incremental; reason: none

  • Claim (title): the docs list every prop, its default, and the keys it follows. Verified: 50 props in each of the English, Chinese and dense sets, every literal default documented (the prop-docs drift test passes), and the keys named in a best practice.
  • Claim (description): the audit is in progress and its scorecard lands before the pull request is ready. A status statement; nothing to verify at this head.
  • Claim (changeset): the prop docs list labelTooltip and ref. Verified at MultiSelector.doc.mjs:323-328 and :439-444; the ref wording is the blocking finding above.
  • Claim (changeset): seven booleans default to false. Verified against the destructured defaults in MultiSelector.tsx:1121-1143.
  • Claim (changeset): the Chinese docs gain variant, and the Chinese and dense docs gain indicatorPosition, width, startIcon, hasClear, isDefaultOpen, labelTooltip and ref. Verified at MultiSelector.doc.mjs:560, :587-595, :611, :766-772 and :789.
  • Claim (changeset): the dense onKeyDown entry says the handler is skipped for keys the built-in model handles and cancels. Verified at :787-788 and by the new test at MultiSelector.fr10.test.tsx:164.
  • Claim (changeset): a new best practice names the WAI-ARIA combobox pattern and its keys. Verified at :522-526; the keys match the component's keyboard model and focus return.
  • Claim (latest commit): labelTooltip has no effect inside an InputGroup or with renderTrigger. Verified: only the Field reads it (MultiSelector.tsx:2845), and neither path renders one; wording note inline.
  • Claim (latest commit): the audit's axe exception is scoped, the status check is per field, the disabled case runs axe, and the search case closes on one Escape. Verified at MultiSelectorAudit.a11y.chromium.spec.ts:793-807, :573-589 and :694-696.
  • File .changeset/multi-selector-audit-docs.md: clear.
  • File packages/cli/test/core-prop-docs.known-drift.json: clear; the drift test passes without the removed allowance.
  • File packages/core/src/MultiSelector/MultiSelector.doc.mjs: the blocking ref finding, and the non-blocking labelTooltip note.
  • File packages/core/src/MultiSelector/MultiSelector.fr10.test.tsx: clear.
  • File packages/core/src/MultiSelector/MultiSelector.test.tsx: clear.
  • File packages/core/src/MultiSelector/__tests__/MultiSelectorAudit.a11y.chromium.spec.ts: clear apart from the earlier non-blocking note on the narrow case, which still applies.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: one new prop description in the MultiSelector docs is still wrong for searchable fields.

  • Miss: the new ref entry (MultiSelector.doc.mjs line 443, and the Chinese entry at line 611) says the trigger is the button that carries the combobox role, but in an editable field with hasSearch the trigger has no role and the search input is the combobox (MultiSelector.tsx line 2709), so both entries need a sentence that names that exception.

The latest push makes the labelTooltip limit accurate, and the prop-docs drift test, the unit tests and the core typecheck pass on this head. Non-blocking: astryx component prints only the first sentence of each entry, so that limit, and the ref entry's renderTrigger case, stay out of its output. CI has not run on this draft yet.

Claims and files checked

Review mode: incremental; reason: none

  • Claim (title): the docs list every prop, its default, and the keys it follows. Verified: 50 props in each of the English, Chinese and dense sets, every literal default the code sets (MultiSelector.tsx:1121-1154) appears in the docs, and the keys are named in a best practice (MultiSelector.doc.mjs:525).
  • Claim (description): the audit is in progress and its scorecard lands before the pull request is ready. A status statement; nothing to verify at this head.
  • Claim (changeset): the prop docs list labelTooltip and ref. Verified at MultiSelector.doc.mjs:323-328 and :439-444; the ref wording is the blocking finding above.
  • Claim (changeset): seven booleans default to false. Verified against the destructured defaults in MultiSelector.tsx:1121-1154.
  • Claim (changeset): the Chinese docs gain variant, and the Chinese and dense docs gain indicatorPosition, width, startIcon, hasClear, isDefaultOpen, labelTooltip and ref. Verified at MultiSelector.doc.mjs:560, :587-595, :611, :766-772 and :789.
  • Claim (changeset): the dense onKeyDown entry says the handler is skipped for keys the built-in model handles and cancels. Verified at :787-788 and by the new test at MultiSelector.fr10.test.tsx:164.
  • Claim (changeset): a new best practice names the WAI-ARIA combobox pattern and its keys. Verified at :522-526; the keys match the component's keyboard model and focus return.
  • Claim (latest commit): labelTooltip has no effect inside an InputGroup or with renderTrigger, where MultiSelector renders no label of its own. Verified: only the Field reads it (MultiSelector.tsx:2845), and the InputGroup and renderTrigger paths return without one (:2819-2821, :2554).
  • Claim (latest commit): the audit spec's comments give reasons. Comment-only change at MultiSelectorAudit.a11y.chromium.spec.ts:444-445 and :794-795.
  • File .changeset/multi-selector-audit-docs.md: clear.
  • File packages/cli/test/core-prop-docs.known-drift.json: clear; the drift test passes without the removed allowance.
  • File packages/core/src/MultiSelector/MultiSelector.doc.mjs: the blocking ref finding, and the non-blocking first-sentence note.
  • File packages/core/src/MultiSelector/MultiSelector.fr10.test.tsx: clear.
  • File packages/core/src/MultiSelector/MultiSelector.test.tsx: clear.
  • File packages/core/src/MultiSelector/__tests__/MultiSelectorAudit.a11y.chromium.spec.ts: clear apart from the earlier non-blocking note on the narrow case, which still applies.

Automated review (maintainer link)

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Changes requested: one new prop description in the MultiSelector docs is still wrong for searchable fields.

  • Miss: the new ref entry (MultiSelector.doc.mjs line 443, and the Chinese entry at line 611) says the trigger is the button that carries the combobox role, but in an editable field with hasSearch the trigger has no role and the search input is the combobox (MultiSelector.tsx line 2710), so both entries need a sentence that names that exception.

The other new entries, the false defaults and the keyboard guidance match the component, and the prop-docs drift test, the MultiSelector unit tests and the core typecheck pass on this head. Non-blocking: astryx component prints only the first sentence of each entry, so the labelTooltip limit stays out of its English output. CI has not run on this draft yet.

Claims and files checked

Review mode: full; reason: merge-touches-pr-files

  • Claim (title): the docs list every prop, its default, and the keys it follows. Verified: 50 props in each of the English, Chinese and dense sets, every default the code sets (MultiSelector.tsx:1121-1154) is documented, and a best practice names the keys (MultiSelector.doc.mjs:525).
  • Claim (description and changeset): the docs now list labelTooltip and ref. Verified at MultiSelector.doc.mjs:323-328 and :439-444; the ref wording is the blocking finding above.
  • Claim (description and changeset): seven booleans default to false. Verified against the destructured defaults in MultiSelector.tsx:1121-1143.
  • Claim (description and changeset): the Chinese docs gain variant, and the Chinese and dense docs gain indicatorPosition, width, startIcon, hasClear, isDefaultOpen, labelTooltip and ref. Verified: both sets now name every English prop, and each new entry matches its English meaning.
  • Claim (changeset): the dense onKeyDown entry says the handler is skipped for keys the built-in model handles and cancels. Verified at MultiSelector.doc.mjs:787-788 and by the new test at MultiSelector.fr10.test.tsx:164.
  • Claim (description and changeset): a new best practice names the WAI-ARIA combobox pattern and its keys. Verified: the keys match the keyboard model (hooks.ts:250-315) and the grid case.
  • Claim (description): the labelTooltip entry says it has no effect inside an InputGroup or with renderTrigger. Verified: only the Field reads it (MultiSelector.tsx:2846), and the InputGroup and renderTrigger paths render none (:2821-2823, :2555-2633).
  • Claim (description): no runtime behavior changes. Verified: only docs, tests and a test allowlist change, and the API surface comparison shows no added, changed or removed row.
  • Claim (description): new tests check the skipped caller onKeyDown, the onChange-then-changeAction order, the Field-free InputGroup path and the busy paint. Verified: the four cases exist and pass with the rest of the MultiSelector and prop-docs suites (244 tests).
  • Claim (description): a browser audit spec covers the trigger, list, keyboard and pointer paths, the listed states, search, the bottom sheet, both directions, both color modes and a 320 px viewport, with 25 receipts and 55 frames. Verified by reading the spec: it defines those cases, 25 receipts and 55 frames; its pass is reported for the previous head, and CI has not run it on this head.
  • Claim (description): unit tests, core typecheck and strict lint pass. The suites above, the core typecheck and lint on the changed tests pass here; the wider suites the description names were not rerun.
  • Claim (description): the open contrast and empty-search findings are pre-existing and out of scope. Verified: the component record already lists the active-option contrast as current-state impact, and the empty message is presentational in source (MultiSelector.tsx:2312-2325).
  • Claim (description): the audit scores and grades. The author's assessment; not a code claim.
  • File .changeset/multi-selector-audit-docs.md: clear.
  • File packages/cli/test/core-prop-docs.known-drift.json: clear; the drift test passes without the removed allowance.
  • File packages/core/src/MultiSelector/MultiSelector.doc.mjs: the ref finding (lines 443 and 611); the rest clear.
  • File packages/core/src/MultiSelector/MultiSelector.fr10.test.tsx: clear.
  • File packages/core/src/MultiSelector/MultiSelector.test.tsx: clear.
  • File packages/core/src/MultiSelector/__tests__/MultiSelectorAudit.a11y.chromium.spec.ts: clear.

Automated review (maintainer link)

… editable searchable field; labelTooltip fits one sentence

@astracat-bot astracat-bot Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Approved pending CI: CI has not run on this head yet, and it starts once the pull request is marked ready for review.

The ref entries in the English, Chinese and dense MultiSelector docs now name the search input as the combobox of an editable searchable field, which matches the component, so the earlier requested change is resolved. The other new entries, the false defaults and the keyboard guidance match the component; the prop-docs drift test, the MultiSelector unit tests, the core typecheck and lint pass on this head, and the public API surface is unchanged. Non-blocking: with isDisabled and hasSearch the trigger also has no combobox role, so "an editable field" in the ref entry is exact only when read as "not read-only" (inline suggestion).

Claims and files checked

Review mode: incremental; reason: none

  • Claim (title, changeset, description): the docs list every prop, its default, and the keys it follows. Verified: the English, Chinese and dense sets each name all 50 props, every default the code sets (MultiSelector.tsx:1121-1154) is documented, and a best practice names the keys (MultiSelector.doc.mjs:525, :650, :710).
  • Claim (changeset, description): the docs now list labelTooltip and ref. Verified at MultiSelector.doc.mjs:323-328 and :439-444; the ref wording matches the trigger and search-input roles (MultiSelector.tsx:2710, :2034).
  • Claim (changeset, description): seven booleans default to false. Verified against the destructured defaults in MultiSelector.tsx:1121-1143.
  • Claim (changeset): the Chinese docs gain variant, and the Chinese and dense docs gain indicatorPosition, width, startIcon, hasClear, isDefaultOpen, labelTooltip and ref. Verified: the base sets lacked exactly those, and at this head neither set misses an English prop.
  • Claim (changeset): the dense onKeyDown entry says the handler is skipped for keys the built-in model handles and cancels. Verified at MultiSelector.doc.mjs:787-788 and by the test at MultiSelector.fr10.test.tsx:164.
  • Claim (changeset, description): a best practice names the WAI-ARIA combobox pattern and its keys. Verified against the keyboard model (hooks.ts:250-316) and the grid case.
  • Claim (description): the labelTooltip entry says it has no effect inside an InputGroup or with renderTrigger. Verified: only the Field reads it (MultiSelector.tsx:2846), the InputGroup and renderTrigger paths render no Field (:2821-2823, :2555-2633), and the group takes its own labelTooltip (InputGroup.tsx:120).
  • Claim (description): no runtime behavior changes. Verified: only docs, tests, a test allowlist and a changeset change, and the built API surface shows no added, changed or removed row.
  • Claim (description): new tests check the skipped caller onKeyDown, the onChange-then-changeAction order for a toggle, select-all and clear, the Field-free InputGroup path, and the busy paint. Verified: the four cases (MultiSelector.test.tsx:632, :1910, :5406; MultiSelector.fr10.test.tsx:164) pass with the rest of those suites (244 tests).
  • Claim (description): each case fails under its named mutation. Verified by reading each assertion; the mutations were not run here.
  • Claim (description): the browser audit spec covers the listed states, directions, color modes and the 320 px viewport, with 25 receipts and 55 frames. Verified by reading the spec, which defines exactly those cases; its passing run is for the previous head, and the only commit since edits doc strings that no story reads.
  • Claim (description): the MultiSelector folder and the other named unit suites, the prop-doc test, core typecheck and strict lint pass. Verified: the named suites pass at this head (879 tests; the description counts 878), as do the prop-doc test, core typecheck and lint on the changed files.
  • Claim (description): the open contrast and empty-search findings are pre-existing and out of scope. Verified: the component record lists the active-option contrast as current-state impact, and the empty message is presentational in source (MultiSelector.tsx:2312-2325).
  • Claim (description): the record's verification map still lists evidence gaps these tests close. Verified: the map names the InputGroup Field, busy paint, cancelled-key and change-order gaps.
  • Claim (description): scores, grades and the maintainers' chosen repairs. The author's assessment and plans; not code claims, and nothing in this pull request depends on them.
  • File .changeset/multi-selector-audit-docs.md: clear.
  • File packages/cli/test/core-prop-docs.known-drift.json: clear; the drift test passes without the removed allowance.
  • File packages/core/src/MultiSelector/MultiSelector.doc.mjs: clear; the earlier ref finding is fixed (lines 443, 611, 789), with one non-blocking wording note.
  • File packages/core/src/MultiSelector/MultiSelector.fr10.test.tsx: clear.
  • File packages/core/src/MultiSelector/MultiSelector.test.tsx: clear.
  • File packages/core/src/MultiSelector/__tests__/MultiSelectorAudit.a11y.chromium.spec.ts: clear.

Automated review (maintainer link)

name: 'ref',
type: 'Ref<HTMLElement>',
description:
"Ref to the trigger button, or with renderTrigger to the caller's control. The trigger shows the value and carries the combobox role, except in an editable field with hasSearch, where the search input is the combobox.",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Non-blocking: with isDisabled and hasSearch the trigger also has no combobox role, because isEffectivelyReadOnly is isReadOnly && !isDisabled (MultiSelector.tsx:1211, :2710), and a disabled list never opens, so no search input renders either. "Editable" here is exact only when read as "not read-only". Wording that holds in every state (the same meaning fits the Chinese entry at line 611 and the dense one at line 789):

"Ref to the trigger button, or with renderTrigger to the caller's control. The trigger shows the value and carries the combobox role unless hasSearch is set on a field that is not read-only; then the search input in the open list is the combobox.",

This branch was successfully deployed

1 active deployment
Preview — 4b9ad4d9 Deployed Nov 16, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant