Skip to content

fix(core): component audit — DateTimeInput, Divider, DateRangeInput - #3655

Merged
cixzhang merged 1 commit into
mainfrom
navi/component-audit/2026-07-07
Jul 7, 2026
Merged

cixzhang merged 1 commit into
mainfrom
navi/component-audit/2026-07-07

Conversation

@cixzhang

@cixzhang cixzhang commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Component Audit: DateInput, DateRangeInput, DateTimeInput, Dialog, Divider

Routine component audit covering checks 1-10 across five components.

Findings

Structure (check 7) — redundant escape hatch re-declarations:

  • DateTimeInput: manually declares xstyle?: StyleXStyles despite extending
    BaseProps which already provides it. Removed the redundant declaration and
    the now-unused StyleXStyles import.
  • Divider: manually declares xstyle, className, and style with full
    JSDoc despite extending BaseProps<HTMLDivElement>. Removed all three and the
    now-unused StyleXStyles import.

Semantic type scale (check 1) — wrong token class:

  • DateRangeInput: preset quick-select buttons used --text-body-size (for
    content/display text). Preset buttons are interactive controls, so switched
    to --text-label-size and --text-label-leading. Both resolve to the same
    base-theme value today, but themes that differentiate label from body text
    will now render these buttons with the correct weight/size.

No issues found

DateInput, Dialog, and Divider passed all remaining checks cleanly. Prop naming,
themeProps placement, a11y wiring, export hygiene, and token usage are all
correct across all five components.

Night Watch — Component Auditor

…e token

- DateTimeInput: remove manual xstyle re-declaration (already from BaseProps)
- Divider: remove manual xstyle/className/style re-declarations (already from BaseProps)
- DateRangeInput: use --text-label-size for preset buttons (interactive controls)
  instead of --text-body-size which is for content/display text
@cixzhang cixzhang added the hardening Component hardening and quality sweep label Jul 7, 2026
@vercel

vercel Bot commented Jul 7, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
astryx Ready Ready Preview, Comment Jul 7, 2026 10:32am

Request Review

@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Meta Open Source bot. label Jul 7, 2026

@thedjpetersen thedjpetersen 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.

@github-actions

github-actions Bot commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

PR Analysis Report

📚 Storybook Preview

View Storybook for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

🧪 Sandbox Preview

View Sandbox for this PR
GitHub Pages may take up to a minute to hydrate after deploy.

No new or modified components detected.

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.6KB 0B

Accessibility Audit

Status: No accessibility violations detected.


Generated by PR Enrichment workflow | Storybook | Sandbox | View full report

github-actions Bot added a commit that referenced this pull request Jul 7, 2026
@cixzhang
cixzhang merged commit 3683089 into main Jul 7, 2026
15 checks passed
cixzhang added a commit that referenced this pull request Jul 7, 2026
@github-actions
github-actions Bot deleted the navi/component-audit/2026-07-07 branch July 12, 2026 06:57

This branch was successfully deployed

1 active deployment
Preview — f724d57b Deployed Jul 7, 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. hardening Component hardening and quality sweep

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants