Skip to content

fix(field): separate tooltip status presentation - #5738

Closed
cixzhang wants to merge 1 commit into
mainfrom
fix/fieldstatus-tooltip-boundary
Closed

cixzhang wants to merge 1 commit into
mainfrom
fix/fieldstatus-tooltip-boundary

Conversation

@cixzhang

@cixzhang cixzhang commented Aug 31, 2026 •

Copy link
Copy Markdown
Contributor

Why

Direct FieldStatus renders only attached and detached message presentations. The tooltip value belongs to the Field family, where composing controls consume it before rendering FieldStatus and surface the message from an on-field affordance.

This implements the boundary approved in #5736.

What

  • narrow FieldStatusVariant to attached and detached
  • add FieldStatusPresentation for Field-family statusVariant props, including the tooltip sentinel
  • add a conservative migration codemod only for casts directly on known Field-family statusVariant props
  • add a breaking Changeset with manual guidance for ambiguous root imports and direct JSX

No runtime rendering, DOM, styling, or ARIA behavior changes.

Compatibility

This is a TypeScript breaking change for direct FieldStatus variant=\"tooltip\" usage and for Field-family code that explicitly annotated values as FieldStatusVariant. Existing Field-family statusVariant=\"tooltip\" behavior remains unchanged; those annotations move to FieldStatusPresentation.

Testing

  • pnpm test --run packages/core/src/FieldStatus/FieldStatus.test.tsx packages/core/src/Field/Field.test.tsx packages/core/src/hooks/useInputStatusIcon.test.tsx (95 passed)
  • migration codemod tests (10 passed, including parameter/local shadowing and idempotence)
  • Core, Lab, RichText, and strict CLI typechecks
  • pnpm check:repo

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

vercel Bot commented Aug 31, 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 Aug 31, 2026 3:49am

Request Review

@cixzhang

Copy link
Copy Markdown
Contributor Author

Deferred by the component owner to the next minor release. Keep this PR draft and out of the current landing stack; the approved API boundary remains documented in #5736.

@cixzhang
cixzhang force-pushed the fix/fieldstatus-tooltip-boundary branch from 7a7486b to c7d5e57 Compare August 31, 2026 03:46
github-actions Bot added a commit that referenced this pull request Aug 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR Analysis Report

Preview availability: Storybook and Sandbox were not published for this CI run.

Modified Components

ComplexSelector (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 463 -
Complexity N/A Very High (44) -
DateInput (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 3296 -
Complexity N/A Very High (356) -
DateRangeInput (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 539 -
Complexity N/A Very High (66) -
Field (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 780 -
Complexity N/A Very High (48) -
FieldStatus (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 138 -
Complexity N/A Low (5) -
FileInput (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 659 -
Complexity N/A Very High (102) -
MultiSelector (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 1603 -
Complexity N/A Very High (211) -
NumberInput (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 1069 -
Complexity N/A Very High (151) -
PowerSearch (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 3847 -
Complexity N/A Very High (342) -
Selector (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 1934 -
Complexity N/A Very High (197) -
TextArea (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 434 -
Complexity N/A Very High (65) -
TextInput (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 331 -
Complexity N/A Very High (55) -
TimeInput (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 487 -
Complexity N/A Very High (82) -
Tokenizer (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 688 -
Complexity N/A Very High (102) -
Typeahead (@astryxdesign/core)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 1222 -
Complexity N/A Very High (174) -
TransferList (@astryxdesign/lab)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 1555 -
Complexity N/A Very High (200) -
RichTextEditor (@astryxdesign/richtext)
Metric Before After Delta
Bundle Size (ESM) N/A N/A N/A
Lines of Code N/A 602 -
Complexity N/A Very High (57) -

Bundle Size Summary

Package Size (ESM) Size (CJS) Gzipped
@astryxdesign/core N/A 4.8KB 1.2KB
@astryxdesign/lab N/A 3.5KB 1.5KB
@astryxdesign/richtext N/A N/A N/A

Accessibility Audit

Status: 6 accessibility violation(s) found — 2 critical, 4 serious.

DateRangeInput - 1 issue(s)
  • 🔴 critical: Ensure an element's role supports its ARIA attributes
    • Rule: aria-allowed-attr · Affects 1/20 stories · Learn more
    • WCAG: 4.1.2 (Level A)
FileInput - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 3/15 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
PowerSearch - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/26 stories · Learn more
    • WCAG: 1.4.3 (Level AA)
RichTextEditor - 2 issue(s)
  • 🟠 serious: Ensure every ARIA input field has an accessible name
    • Rule: aria-input-field-name · Affects 2/18 stories · Learn more
    • WCAG: 4.1.2 (Level A)
  • 🔴 critical: Ensure every form element has a label
    • Rule: label · Affects 1/18 stories · Learn more
    • WCAG: 4.1.2 (Level A)
Tokenizer - 1 issue(s)
  • 🟠 serious: Ensure the contrast between foreground and background colors meets WCAG 2 AA minimum contrast ratio thresholds
    • Rule: color-contrast · Affects 2/21 stories · Learn more
    • WCAG: 1.4.3 (Level AA)

Visual Regression

Status: Skipped — Broad stable scope is deferred to the daily release gate. It covers 3136 trusted baseline shots instead of recapturing them for this PR. View the report


Generated by PR Enrichment workflow | View full report

@cixzhang

cixzhang commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Closing at the author's request.

@cixzhang cixzhang closed this Sep 4, 2026
@github-actions
github-actions Bot deleted the fix/fieldstatus-tooltip-boundary branch September 5, 2026 06:19

This branch was successfully deployed

1 active deployment
Preview — c7d5e573 Deployed Aug 31, 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant