Repository navigation
[Component Audit] Chart: strengthen accessibility and audit coverage - #6247
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
cixzhang
requested review from
imdreamrunner and
josephfarina
as code owners
September 11, 2026 10:56
Contributor
|
AI review status for this pull request.
|
github-actions
Bot
requested review from
cvkxx,
ernestt,
kentonquatman and
rubyycheung
September 11, 2026 10:57
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR Modified ComponentsChart (@astryxdesign/charts) · View in Storybook
ChartLegend (@astryxdesign/charts)
Bundle Size Summary
Accessibility AuditStatus: No accessibility violations detected. Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
cixzhang
added a commit
to cixzhang/astryx
that referenced
this pull request
Sep 11, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
@astryxdesign/chartsusers could not pass standard DOM props or refs toChart, and screen-reader fallback text was fixed English. The component also had no canonical contract and almost no consumer documentation, which made its public states impossible to audit completely.This Night Watch audit uses Component Audit Rubric v1.16.2.
41ab6db2a5d193739759ad2ba14b6be21509a2d729efe4a12e97f9b7f7fb85a546ced3ff28cd2f7cpackages/charts/src/Chart.spec.mdat29efe4a12e97f9b7f7fb85a546ced3ff28cd2f7c(authority: draft)packages/charts/src/*or the Chart story/doc surfaces before remediation.pr-rtlcoverage failure remain.What changed
Chartcontract and complete consumer docs.BaseProps, root DOM/ref forwarding, merged styling, logical token spacing, localized chart/legend accessibility text, and shared locale-aware list formatting.Score
Fixing the four retained BLOCK findings and changing nothing else projects 90.0 / A.
Fixed findings and authority
architecture:public-component-api/INV5–INV8; API Conventions “Capture and Forward ...rest” and “ref as a Prop”).InternationalizationProvider(@astryx.*catalog + provider locale).overflow: cliprather than a scroll container.Retained findings
BLOCK
titleandsubtitleremain optional, so a screen-reader user can receive only a generic chart name with no guaranteed equivalent summary or data path. The correct public accessibility contract needs owner judgment.ChartMargin.left/rightand the nested tooltip placement valuesleft/rightare physical public API. A logical-name migration is breaking and remains out of this audit.SeriesDefexposes_uid,_isTopOfStack, and_resolvedColor, and Chart annotates caller-owned definitions during render. Removing those reachable internals or changing the single-use contract needs an explicit API/compatibility decision.FIX
ResizeObserver; moving to the shared observer requires coordinated test-fixture changes beyond this bounded pass.--filter Charttolab/Chartand excludescharts-*stories. This PR therefore uses package-specific Chromium RTL evidence rather than claiming the stock report covers Charts.z-index: 9999rather than the current layer runtime.NIT
SeriesDeffactories from plain defaults; the checked Storybook fixture is the working interactive surface.Needs Review
current.FR5 closed public-surface inventory (25/25 rows accounted for)
Chart/ChartPropsexportdata,xKey,seriesheightmarginyBaselinevaluesyDomainxDomain; categorical ignoregridslotaxesslotlegendoff/true/configtooltipoff/true/configinteractionsslotchildrenSVG escape hatchtitlesubtitleEvidence and checks
--components Chartgate also passed.lab/Chartrouting gap.pr-rtl, which reproduced the retained I17/V11 coverage gap by measuringlab/chartand reporting one uncovered component.FR10 eligibility (v1)
Verdict: manual-review-only / ineligible for unattended merge. Full v1 exact-head report
Reasons:
spec:AST-029isauthority: currentbut stillphase: accepted; FR11 activation is not shipped.authority: draftand has no exact-head owner approval yet.pr-rtlfailed by the retained I17/V11 coverage gap; all other checks passed.audit-eligibilitycheck is not activated.Do not auto-merge this PR.