Repository navigation
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
AI review status for this pull request.
|
58461c3 to
dd453e1
Compare
dd453e1 to
39d54c6
Compare
PR Analysis Report📚 Storybook Preview🧪 Sandbox PreviewNo new or modified components detected. Bundle Size Summary
Accessibility AuditStatus: 1 accessibility violation(s) found — 1 critical. CommandPaletteEmpty - 1 issue(s)
Visual Regression17 of 428 shot(s) changed. A change here is a question, not a failure: check whether the after is the
Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
There was a problem hiding this comment.
Thanks for making the empty state reproducible without changing runtime behavior. The owned Storybook route, corrected docs and example, and the honest record of the current generic message inside the listbox are useful audit progress.
Approval needs a maintainer decision before this can land. Please have a maintainer decide whether both empty states should be exposed as disabled options inside the listbox, or whether CommandPaletteEmpty should stay presentational with empty bootstrap gaining an explicit announcement to match empty search, and record that decision in the governing CommandPalette contract. That choice is currently unsettled, and this review has left the question open for the maintainer through CodeBunny.
One evidence fix is also needed: the dedicated CI route does not actually retain its browser receipts on this head while the known accessibility violation is present. Please resequence that route so the Playwright capture runs and its receipts are uploaded even when the accessibility audit fails, then rerun it — without adding the known aria-required-children violation to the baseline.
[Automated review]
…cs (#7321) ## User impact Standalone `CommandPaletteInput` fields now expose searchbox semantics instead of claiming an expanded combobox with no popup. Inside `CommandPalette`, the query stays a combobox and its role, popup state, list relationship, autocomplete mode, and active descendant can no longer be overwritten by passthrough props. Screen-reader users hear "Search commands" (translated) as the field's name, or the caller's `label`, never the placeholder. ## Owner decision The spec owner settled the default name and approved this pull request's `CommandPaletteInput.spec.md` on 2026-10-14: the default accessible name is a fixed, localizable "Search commands", and a placeholder is never the name ("Merge the specs", 19:31 PT; "Can you resolve the not merging specs", 19:33 PT, applying the recommended options). The record is `authority: current`, and its DEC-1 records the default name. ## What changed - Distinguish no-popup standalone searchbox semantics from popup-backed combobox semantics while preserving standalone caller-owned roles and ARIA relationships. A popup attribute the caller passes counts as caller-owned even while its value is `undefined`, and a passed value reaches the field unchanged, so a field wired to its own toggling popup stays a combobox and an explicitly undefined `aria-expanded` is omitted, as in the released field. `aria-owns` and any `aria-haspopup` other than `false` also count as caller popup attributes, so a field wired to its popup only through them stays a combobox; `aria-haspopup="false"` keeps a searchbox. - Keep renderable trailing content, including numeric `0`, inside the trailing layout group and omit empty React nodes. - Name the field `aria-label`, then `label`, then the translated "Search commands"; placeholder text is never the name. - Inside `CommandPalette` the field owns `role`, `aria-expanded`, `aria-autocomplete`, `aria-controls`, and `aria-activedescendant`; other ARIA props, including `aria-haspopup` and `aria-owns`, pass through (AR3 names them). - Add focused contract tests, dedicated Storybook states, a curated RTL target, aligned docs, a patch changeset, and the current `CommandPaletteInput.spec.md` component contract. ## Authority and compatibility - Accessibility basis: WCAG 2.2 4.1.2, the WAI-ARIA combobox pattern, `spec:AST-020/FR1,FR2`, and `spec:AST-056/AR2`. - Passthrough precedence: `architecture:public-component-api/INV5`. - Compatibility basis for this patch: `spec:AST-017/FR1,FR3,FR5`; callers that connect the standalone field to their own popup retain their role and ARIA relationships, so the no-popup correction has no released victim. - The default-name change is an accessibility behavior fix under `spec:AST-017/FR53`: no app code changes, and the Changeset names the old default (the placeholder), the new one ("Search commands"), and `label` as the way to keep a specific name. The standalone semantics change names the old default (an expanded `combobox`), the new one (`searchbox`), and `role="combobox"` as the way back. - Open P5 owner decision, not changed here: the released primary callback is `onValueChange(value)` while `onChange(event)` carries the native event. ## Overlap and record boundary - Search terms: `CommandPaletteInput`, `command-palette-input`, query field, searchbox, combobox, `aria-expanded`, `aria-controls`, native passthrough; over current records and open pull requests. - Canonical owner until now: `component:CommandPalette` (`CommandPalette.spec.md`), which listed the native query field among the parts it owns. This change narrows that line to composition and points the field's semantics and native passthrough at `component:CommandPaletteInput`. - Why the field needs its own record: `CommandPaletteInput` is exported and used on its own, with no CommandPalette context. Its standalone semantics (searchbox without a popup, caller-owned combobox with one) and its passthrough routing apply where no palette exists, so the aggregate record, whose scope is the composed palette and its popup context, cannot govern them. The aggregate keeps the popup context, composition, and the open query-field theming question. - Overlapping open work: - #6950 edits `CommandPalette.spec.md` (result-surface anatomy and keyboard rows) and the same `CommandPaletteInput.tsx` lines: it gates the contextual `aria-expanded`, `aria-controls`, and `aria-activedescendant` on selectable results, guards IME composition keys, and gives the field a default name that does not come from the placeholder. It changes only the contextual branch; this pull request owns the standalone branch and keeps the contextual branch's values. Whichever lands second rebases: the contextual gating and IME guard carry over unchanged, and both pull requests now give the same default name from the same catalog key. - #7094 edits `CommandPalette.spec.md` for Empty only; no shared lines. ## Audit score Rubric: **1.16.6** · mode: **Night Watch** - Before: **74.8 / C**, 4 open BLOCKs, rendered design not measured. - After: **87.5 / C**, 2 open BLOCKs (A1 accessible-name migration; P5 callback naming), rendered design not measured. - Sensitivity: resolve P5 alone → **93.3 / C**; resolve A1 alone → **94.2 / C**; resolve both → **100 / A**. ## Test plan - `pnpm vitest run packages/core/src/CommandPalette/CommandPaletteInput.test.tsx packages/core/src/theme/themingTargets.test.ts` — 451 passed. - `pnpm vitest run packages/core/src/CommandPalette` after merging main — 109 passed, including a caller popup that toggles `aria-expanded={open || undefined}` and an explicitly undefined `aria-expanded`; both fail against the previous head. - `pnpm vitest run packages/core/src/CommandPalette` — 114 passed, including fields wired only through `aria-owns`, `aria-haspopup="listbox"`, and `aria-haspopup={true}` (combobox) and `aria-haspopup` false (searchbox); the three combobox cases fail against the previous head. - `pnpm -F @astryxdesign/core build` — passed. - `pnpm -F @astryxdesign/storybook build` — passed. - `pnpm lint:strict` — 0 errors; existing repository warnings only. - `pnpm check:knowledge` and `pnpm check:changesets` — passed. - Full `pnpm test` encountered unrelated CLI filesystem/time-limit failures under the concurrent local run; the deterministic failed CLI suites pass in isolation. Exact-head Actions remains authoritative. - Browser, accessibility, RTL, and visual evidence: pending exact-head Actions. No local browser result is credited. - `pnpm vitest run packages/core/src/CommandPalette` at this head — 116 passed. The default-name, custom-placeholder, and contextual-name tests fail when the name falls back to the placeholder. ## Writing rubric results - R1 narration: compatibility wording was rewritten as present-tense classification and guarantees. - R2 research: none. - R3 evidence: facts and standards, not changes. - R4 rejected alternatives: none. - R5 change references: none. - R6 open questions: OQ1 callback migration remains genuinely unanswered; the aggregate CommandPalette contract retains its existing query-field theming question. - Rerun over both records after merging main and resolving the `CommandPalette.spec.md` ownership line: R1–R5 clean (no narration, research, change references, or pull-request links; scanned for the R1 terms and `#`+digits, `/pull/`, `/issues/`); R6 unchanged. - Rerun for the default-name decision and the promotion to current (`CommandPaletteInput.spec.md`): R1 ORD3, AR1, AR3, and the compatibility lines state present behavior; the "released fallback" and "known BLOCK" sentences are gone. R2 none. R3 none. R4 one, inside DEC-1, one line. R5 none. R6 OQ1 unchanged.
Completes the first whole-component audit of
core/CommandPaletteEmpty, adds component-owned browser evidence, and records the unresolved empty-list semantic contract without choosing it.User impact
People using a screen reader currently encounter a generic message directly inside the command listbox. Empty search also announces the no-results state through the live region, while empty bootstrap has no separate announcement. The audit makes both states reproducible and reviewable without changing runtime behavior before the exposed-tree and announcement contract is settled.
Authority and frozen source
core/CommandPaletteEmpty01fb22f931c78bd3f2f99008e9b41bfa67969bc939d54c6db40f84a2b59305f0f57e57aafd28b29boptionorgrouparchitecture:public-component-api/INV1,INV5–INV9;architecture:component-theming-surface/INV3–INV7;architecture:component-test-sufficiency/INV1–INV7,INV10–INV11spec:AST-029/FR3–FR10Reproducible scorecard
Before, the component had no owned Storybook route and its generic empty message was not independently audited inside the real CommandPalette branch. Section §5b was not measured and is excluded from the measured-weight normalization.
children,BaseProps, ref, DOM/data/ARIA, class, style, andxstylecomposition remain unchanged.84.3 / 96 measured). After: 1 open BLOCK.Sensitivity: settling and correcting the one remaining semantic BLOCK, with no other score change, projects 99.6 / A.
Smallest restoration
emptyBootstrapTextandemptySearchTextreceive content rather than nestedCommandPaletteEmptyelements.No runtime behavior, public prop, export, default, target, or compatibility promise changes.
FR5 closed evidence inventory
childrenrenderingchildrendocsBaseProps, ref, merge order, native prop spreadxstyleteststhemePropsand StyleX sourceInventory closure: every public export, prop, native-root seam, content partition, built-in empty branch, live-region interaction, target, and responsive/directional boundary is represented. Bootstrap and search empty states share the same rendered Empty path and announcement ownership.
Writing rubric results
Validation
Passed locally on the frozen head:
pnpm check:knowledge,pnpm check:changesets, andpnpm check:syncExact-head Linux CI supplies the final Chromium accessibility, RTL, visual, and retained sensor evidence. The accessibility failure for the generic listbox child is expected to remain visible while the owner hold is open; it is not baselined away.
Needs Review
Should both empty states be exposed as disabled options inside the listbox, or should Empty stay presentational with bootstrap gaining an explicit announcement to match empty search?
This is a terminal owner hold. Runtime remediation, merge, and the final ledger write remain blocked until the aggregate contract selects one outcome.
FR10 exact-head eligibility report
{ "schemaVersion": 1, "component": "CommandPaletteEmpty", "package": "core", "mode": "nightly", "rubricVersion": "1.16.6", "repositoryHead": "39d54c6db40f84a2b59305f0f57e57aafd28b29b", "componentContractHead": "39d54c6db40f84a2b59305f0f57e57aafd28b29b", "inventory": {"closed": true, "rows": 7}, "score": {"before": 87.8, "after": 93.2, "beforeBlocks": 2, "afterBlocks": 1, "status": "terminal-owner-hold"}, "unresolvedObjectiveGaps": ["generic empty message is a direct listbox child"], "unresolvedManualGaps": ["choose disabled-option exposure for both states or presentational exposure plus a bootstrap announcement"], "remediations": [ {"id": "V10", "state": "verified-exact-head", "evidence": "component-owned story renders the actual built-in CommandPalette empty branch"}, {"id": "V15", "state": "verified-exact-head", "evidence": "neutral/probe, light/dark, RTL, and narrow sensor matrix"}, {"id": "docs", "state": "verified", "evidence": "consumer anatomy/target docs and corrected non-nesting source example"} ], "approvals": {"componentSpecOwner": "required-terminal-hold", "privateExactHeadSelfReview": "clean", "reviewSignal": "success from GitHub Actions App 15368"}, "checks": {"local": "green except host browser launch; exact-head CI owns browser proof", "exactHeadCI": "all green except pr-a11y, which exposes the retained accessibility BLOCK"}, "eligibility": {"eligible": false, "reasons": ["terminal owner decision is unresolved", "one accessibility BLOCK remains"]} }