Repository navigation
[Component Audit] ChartAxis: preserve complete truncated labels - #6346
Merged
Merged
Conversation
cixzhang
requested review from
imdreamrunner and
josephfarina
as code owners
September 16, 2026 10:40
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Contributor
|
AI review status for this pull request.
|
Contributor
PR Analysis Report📚 Storybook PreviewView Storybook for this PR 🧪 Sandbox PreviewView Sandbox for this PR Modified ComponentsChartAxis (@astryxdesign/charts)
Bundle Size Summary
Accessibility AuditStatus: 36 accessibility violation(s) found — 2 critical, 34 serious. Button pattern - 1 issue(s)
ChatComposer - 1 issue(s)
ChatComposerInput - 1 issue(s)
ChatReasoning - 1 issue(s)
ChatToolCalls - 1 issue(s)
Checkbox pattern - 1 issue(s)
CheckboxList - 1 issue(s)
ClickableCard - 1 issue(s)
CodeEditor - 1 issue(s)
CodeEditorPerf - 1 issue(s)
CodeEditorTheme - 1 issue(s)
CodeTheme - 1 issue(s)
DateRangeInput - 1 issue(s)
FileInput - 1 issue(s)
GridMasonry - 1 issue(s)
Heading - 1 issue(s)
Icon - 1 issue(s)
LogStream - 1 issue(s)
MediaTheme Auto - 1 issue(s)
PowerSearch - 1 issue(s)
ProgressBar - 1 issue(s)
Radio group pattern - 1 issue(s)
RadioList - 1 issue(s)
RichTextEditor - 2 issue(s)
SelectableCard - 1 issue(s)
Stepper - 1 issue(s)
TableGroupedRows - 1 issue(s)
TableTree - 1 issue(s)
Text - 1 issue(s)
Theme - 1 issue(s)
PopArt - 1 issue(s)
Thumbnail - 1 issue(s)
Timestamp - 1 issue(s)
Token - 1 issue(s)
Tokenizer - 1 issue(s)
Generated by PR Enrichment workflow | Storybook | Sandbox | View full report |
cixzhang
deleted the
night-watch-component-audit/ChartAxis/2026-09-16
branch
September 16, 2026 12:23
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.
User impact
Builders using
truncatewith emoji, flags, joined emoji, or combining marks could receive a visibly corrupted axis label, and equally short Unicode labels could be thinned much more aggressively than ASCII labels. ChartAxis now uses user-perceived characters for truncation and automatic density, its existing API is directly documented, and its public edge/density behavior has stronger regression coverage.This is the first Night Watch audit of
charts/ChartAxis, using Component Audit Rubric v1.16.6.Scope and exact heads
charts/ChartAxis(@astryxdesign/charts, canary-only)N/1.16.6bfee8a4a306cb98eb98a6c3967117efc8d798cafd9425653de47f40a4aea8b99418517775c412affpackages/charts/src/ChartAxis.spec.mdat the audited head (authority: draft)architecture:component-test-sufficiency,architecture:component-theming-surface,spec:AST-002, andspec:AST-029, plus objective standardspackages/charts/src/getChartColors.tsand the package barrel for Vega theming but does not overlap ChartAxis; Spec: generate the visual-prop contract from TypeScript #6091 touches shared theming/API architecture but does not change this component's contract or remediationScore
not_measured, a later rendered score from 1–5 would place the total between 79.3 / C and 84.7 / B.Fixed findings and authority
�…; independent review then proved equally short truncated ASCII labels retained[1,3,5,7,9]while emoji/flag/ZWJ labels retained only[1,6]. Exact head preserves the complete grapheme and retains the same labels for equal perceived-width sets. Density and rendering share one formatted label, so consumer formatting and grapheme truncation are not repeated. Authority: Unicode Text Segmentation,architecture:component-test-sufficiency/INV3–INV6, INV9, andspec:AST-029/DEC-4. Both tests were red before their production changes and green afterward.astryx component ChartAxis --denseexited 1 and the integration validator reportedsource_without_component_doc. Exact head returns complete typed docs and removes the ChartAxis warning. This is an observational consumer-doc correction underspec:AST-029/FR7, not a new product contract.architecture:component-test-sufficiency/INV2–INV6, INV8–INV9.No public prop, type, default, or compatibility promise changed. No Changeset is present:
@astryxdesign/chartsis private/canary-only andpnpm check:changesetsrejects release entries for it.Visual evidence
Not measured; fail closed. This is not N/A because a visible truncated-label state changed.
MachPortRendezvousServerpolicy boundary.charts/ChartAxis.pr-visualplan intentionally excludes packages markedcanaryOnly, so it cannot substitute for an audit capture.Closed FR5 public-surface inventory
All 29/29 finite rows are accounted for. Gaps remain explicit and do not make the inventory open.
ChartAxis/ChartAxisPropsexportsCharttickCounttickCounttickFormatJanu…regression�…→ green complete grapheme + ellipsismaxTicksshowTicksoff/onanimatedand out-of-range visibilitycharts/ChartAxisverified-N/A reason[1,3,5,7,9]vs Unicode[1,6]; green sets matchTests and evidence
�…before its fix; the truncation × density test retained ASCII[1,3,5,7,9]versus Unicode[1,6]before its fix. Both pass after the minimal production changes.pnpm lint:strict: passed with 0 errors (84 inherited warnings outside this change).pnpm build: passed.pnpm test: 17,175 passed, 56 skipped, 4 unrelated failures (macOS GNU-cp --reflinkassumptions, one Table timing budget, one CLI watch shutdown timeout). Exact-head Linux CI remains the repository-wide signal.Needs Review
currentwould require a separate exact-head owner decision.Exact-head audit eligibility report
{ "schemaVersion": 1, "component": "ChartAxis", "package": "charts", "auditMode": "N", "rubricVersion": "1.16.6", "heads": { "repository": "d9425653de47f40a4aea8b99418517775c412aff", "componentContract": "d9425653de47f40a4aea8b99418517775c412aff" }, "inventory": { "closed": true, "gaps": ["E08", "E10", "E12", "E21", "E22", "E23", "E24", "E26"] }, "unresolvedGaps": { "objective": [ "Horizontal continuous/time, vertical categorical, safe tick-count, mixed-sign zero-line, active motion, and 320px partitions do not all have mutation-sensitive browser evidence.", "Rendered design, focused axe, and runtime RTL could not be measured locally because Chromium launch is denied by managed macOS policy; exact-head Linux CI is pending." ], "manual": [ "Decide whether ChartAxis remains visual content inside Chart's single named image or exposes independently localized axis groups.", "No current component or family authority decides whether axis lines, marks, or labels become public theme targets." ] }, "remediations": [ { "ruleId": "I20", "beforeEvidence": ["Focused red tests rendered a family emoji as �… and retained equal perceived-width truncated labels at ASCII [1,3,5,7,9] versus Unicode [1,6] at base head bfee8a4a306cb98eb98a6c3967117efc8d798caf."], "afterEvidence": ["Exact-head tests render complete graphemes and retain identical auto-thinned indices for equal perceived-width truncated ASCII and Unicode sets; all 11 ChartAxis tests pass."] }, { "ruleId": "X1", "beforeEvidence": ["Package integration reported source_without_component_doc for ChartAxis and direct dense component lookup exited 1."], "afterEvidence": ["Direct dense component lookup exits 0 with complete docs; the ChartAxis integration warning is gone."] }, { "ruleId": "V3/V10/X9", "beforeEvidence": ["Seven focused tests and one shared story did not directly cover top/right placement, automatic density, grapheme truncation, truncation × density, or dedicated discovery."], "afterEvidence": ["Eleven focused tests and three dedicated ChartAxis stories cover physical edges, automatic density, grapheme truncation, and the truncation × density interaction; typechecks and builds pass."] } ], "approvals": [ {"name": "private independent self-review", "state": "pending"}, {"name": "trusted Review signal", "state": "not-dispatched"}, {"name": "component contract owner approval", "state": "not-required-for-draft"} ], "checks": [ {"name": "local focused tests", "state": "success"}, {"name": "local lint:strict", "state": "success"}, {"name": "local build", "state": "success"}, {"name": "local typecheck/docs/knowledge/docsite/Storybook", "state": "success"}, {"name": "local full test", "state": "inherited-failures"}, {"name": "local Chromium/axe/RTL", "state": "not-measured-host-policy"}, {"name": "review-required", "state": "success", "note": "No code review required; no public review exists, so this is not trusted Review Loop clearance."}, {"name": "spec-owner-approval", "state": "success", "note": "Draft-only knowledge change; the status does not make the draft current."}, {"name": "exact-head GitHub CI", "state": "pending"}, {"name": "audit-eligibility", "state": "inactive"} ], "eligibility": { "eligible": false, "unattendedAutoMerge": false, "reasons": [ "spec:AST-029 is phase accepted, not shipped", "the trusted audit-eligibility status is not activated", "private independent review, a fresh Review signal dispatch, and GitHub CI remain pending", "rendered design evidence is not measured", "manual authority gaps remain" ] } }Unattended auto-merge: false. Do not enable auto-merge.