Repository navigation
test(AvatarGroupOverflow): add component-scoped audit coverage - #6120
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR Modified ComponentsAvatarGroup (@astryxdesign/core) · View in Storybook
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Visual RegressionStatus: No visual change across 2 compared shot(s). Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
cixzhang
left a comment
There was a problem hiding this comment.
Semantic verdict: request changes
Builders and the audit currently see buttons in Default, Standalone, CustomContent, LargeCount, ZeroCount, RTL, and NarrowContainer. argTypes.onClick.action injects a callback into every args-based story, so those stories do not cover the static-span states they claim. Please keep only Clickable interactive and regenerate exact-head accessibility and visual evidence.
[Reviewed by Robohands]
|
Addressed the evidence-integrity finding on exact head |
cixzhang
left a comment
There was a problem hiding this comment.
Semantic verdict: request changes
The regenerated frames look right, but every sensor receipt names build f657d1d90ee2c7635c8ce506b7af19a889cc9387, which is neither this head nor a repository commit. That leaves the new story-state evidence unbound. Please regenerate the receipts from this exact head with its resolvable full SHA.
[Reviewed by Robohands]
|
Fixed the receipt-integrity finding on real exact head |
cixzhang
left a comment
There was a problem hiding this comment.
Semantic verdict: request changes
The draft still promises a static overflow is non-focusable, but builders can pass tabIndex={0} through BaseProps and the span forwards it to the root. That makes the observational contract internally inconsistent: it records DOM passthrough as supported while ruling out a supported state. Please describe the default branch as a static span outside AvatarGroup’s roving-focus set, without claiming it cannot be focused.
[Reviewed by Robohands]
|
Corrected the observational draft at exact head |
cixzhang
left a comment
There was a problem hiding this comment.
Semantic verdict: approve
This now matches shipped behavior: static spans stay outside roving focus, while caller tabIndex remains supported. Exact-head evidence and CI are green.
[Reviewed by Robohands]
Two commits, no conflicts, no file overlap with this branch's 22. - #6120 gives AvatarGroupOverflow its own audit coverage and story; - #6097 simplifies Stepper's collapse and context APIs. Stepper renders an IconButton, which this branch binds to the button pattern, so that coupling was checked rather than assumed: the incoming diff does not touch the IconButton call, and nothing here changes component behaviour. Neither commit touches internal/a11y-spec, the a11y stories, the workflows, or the Playwright config.
AvatarGroupOverflow Night Watch audit
Scope and heads
core/AvatarGroupOverflow97765a7aa6a30c6ebdbd49b77749f800953e2398packages/core/src/AvatarGroup/AvatarGroupOverflow.spec.mdat97765a7aa6a30c6ebdbd49b77749f800953e2398; exact-head owner approval is required.architecture:knowledge-contracts,spec:AST-002,spec:AST-029, plus objective standards and rubric procedure.Score
Closed public-surface inventory
count: numberAvatarGroupOverflow.tsxcount clamp + ICU labelchildren?: ReactNodecustom count contentcontent = children ?? +NonClick?: () => voidbutton type=button; shared overlay/focus stylesrefxstyle,className,style, rest)useAvatarGroup, fallback md/circle/0onClickbranchonClickbranchuseTranslator+ ICU{count, number}marginInlineStartObservational component contract
packages/core/src/AvatarGroup/AvatarGroupOverflow.spec.mdfrom the current schema v3/template v4.authority: draftpending exact-head owner approval.Fixed objective defects
xstylewording. Added the second concrete do-not rule and canonical wording.No runtime behavior or public API changed. No behavior test remediation was needed, so the pinned TDD flow was not invoked beyond confirming the established public seam.
Evidence-integrity correction
The initial story metadata used Storybook action injection for
onClick, which made args-based stories interactive even when they were intended to prove the static span branch. The corrected exact head sets the shared default toonClick: undefined, removes automatic action injection, and assigns a mock callback only toClickable.The regenerated receipts now assert the rendered root tag before every capture: Default, CustomContent, AllSizes, AllShapes, LargeCount, ZeroCount, Standalone, RightToLeft, and NarrowContainer render
SPAN; only Clickable rendersBUTTON. All 26 light/dark captures pass these assertions with no page errors. Every receipt carries resolvable full commitc898931c77c44099d99e5cd047b88528d2d40a30. The only change from that visual-evidence head to the current PR head is observational draft text inAvatarGroupOverflow.spec.md, so no rendered path changed.Unresolved evidence
--color-text-secondary/ neutral-surface relationship covered by open system issue [Bug] Widespread WCAG 2.1 AA colour contrast failures across Design System #4652. Per rubric, it is reported but not scored against this component.Visual evidence
Each of 26 captures records the exact build, story, theme/mode, direction, viewport, semantic state, visible geometry/computed styles, font readiness, and page errors. Every receipt settled with zero page or console errors.
Validation
pnpm lint:strict: 0 errors (89 pre-existing warnings).build,test,lint,docsite-test,pr-a11y,pr-rtl, and stable visual regression: green on exact head.pnpm testhas unrelated managed-Mac/environment failures (virtual-store copy/hardlink assumptions and CLI case-sensitivity/search output); CI full test is green.pnpm buildreached theme-neutral then failed on a missing generated relative module; CI full build is green.Exact-head eligibility report
{ "schemaVersion": 1, "component": "AvatarGroupOverflow", "package": "core", "auditMode": "N", "rubricVersion": "1.16", "heads": { "repository": "97765a7aa6a30c6ebdbd49b77749f800953e2398", "componentContract": "97765a7aa6a30c6ebdbd49b77749f800953e2398" }, "inventory": { "closed": true, "gaps": [] }, "unresolvedGaps": { "objective": [], "manual": [] }, "remediations": [ { "ruleId": "V1/V10/X9", "beforeEvidence": ["No dedicated test/story file; a11y audited 0 components"], "afterEvidence": ["17 dedicated tests; 10 dedicated stories; static story roots assert SPAN, Clickable asserts BUTTON; a11y audited all 10 with 0 violations"] }, { "ruleId": "I17", "beforeEvidence": ["RTL: 0 measured, 1 coverage gap"], "afterEvidence": ["RTL D2 pass: 1 measured, 0 coverage gaps"] }, { "ruleId": "X3/X18", "beforeEvidence": ["One do-not rule; non-canonical xstyle wording"], "afterEvidence": ["Two do-not rules; canonical stylex.create wording"] } ], "approvals": [ {"name": "human review", "state": "required"}, {"name": "component contract owner exact-head approval", "state": "required"} ], "checks": [ {"name": "lint", "state": "success"}, {"name": "test", "state": "success"}, {"name": "build", "state": "success"}, {"name": "pr-a11y", "state": "success"}, {"name": "pr-rtl", "state": "success"}, {"name": "Stable visual regression", "state": "success"}, {"name": "audit-eligibility", "state": "missing"} ], "eligibility": { "eligible": false, "reasons": [ "spec:AST-029 is phase accepted, not shipped", "trusted exact-head audit-eligibility check is not active" ] } }Auto-merge was not enabled. The PR remains open for human review.