Skip to content

refactor(OneChip): promote from experimental to stable#3846

Open
eliseo-juan wants to merge 3 commits intorefactor/storybook-sidebar-reorganization-2from
stabilize/OneChip
Open

refactor(OneChip): promote from experimental to stable#3846
eliseo-juan wants to merge 3 commits intorefactor/storybook-sidebar-reorganization-2from
stabilize/OneChip

Conversation

@eliseo-juan
Copy link
Copy Markdown
Contributor

Summary

  • Changes tags: ["autodocs", "experimental"]tags: ["autodocs", "stable"] in index.stories.tsx
  • Removes experimentalComponent() wrapper from the Chip export
  • Removes the @experimental JSDoc comment
  • Removes unused import { experimentalComponent } from "@/lib/experimental"

Changes

  • packages/react/src/components/OneChip/index.tsx — stabilized export
  • packages/react/src/components/OneChip/index.stories.tsx — updated tags to stable

@eliseo-juan eliseo-juan requested a review from a team as a code owner April 2, 2026 22:49
Copilot AI review requested due to automatic review settings April 2, 2026 22:49
@github-actions github-actions bot added refactor react Changes affect packages/react labels Apr 2, 2026
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Promotes components’ Storybook status from experimental to stable and removes the runtime experimental warning wrapper from their public exports.

Changes:

  • Removes experimentalComponent() wrapping from Chip (OneChip) and F0BigNumber exports.
  • Updates Storybook tags to ["autodocs", "stable"] for OneChip, F0Heading, and F0BigNumber stories.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/react/src/components/OneChip/index.tsx Removes experimental wrapper and exports Chip directly.
packages/react/src/components/OneChip/index.stories.tsx Marks Chip stories as stable.
packages/react/src/components/F0Heading/stories/Heading.stories.tsx Marks Heading stories as stable.
packages/react/src/components/F0BigNumber/index.tsx Removes experimental wrapper from F0BigNumber export.
packages/react/src/components/F0BigNumber/stories/F0BigNumber.stories.tsx Marks BigNumber stories as stable.

layout: "centered",
},
tags: ["autodocs", "experimental"],
tags: ["autodocs", "stable"],
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chip is now promoted to stable, but this Storybook file still lacks the required Snapshot story (using withSnapshot({})) that renders the meaningful variants for Chromatic. Please add a Snapshot story so the component has baseline visual coverage like other stable components.

Copilot uses AI. Check for mistakes.
@@ -122,7 +121,4 @@ const _Chip = ({
)
}

Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

After removing the experimentalComponent wrapper, the exported component's React name will come from _Chip, which shows up as _Chip in React DevTools/Storybook docs. Consider setting _Chip.displayName = "Chip" (or defining the component as function Chip(...)) so the stable export has a clean, user-facing name.

Suggested change
_Chip.displayName = "Chip"

Copilot uses AI. Check for mistakes.
* @experimental This is an experimental component use it at your own risk
*/
export const Chip = experimentalComponent("Chip", _Chip)
export const Chip = _Chip
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Now that Chip is being promoted to stable, please ensure its clickable container meets button semantics for assistive tech. The implementation uses a clickable <div>; it should include an appropriate role (e.g. role="button") and relevant ARIA (and ideally use a <button> for the main interactive element) so it is announced and behaves correctly for screen readers.

Copilot uses AI. Check for mistakes.
export const F0BigNumber = withDataTestId(
experimentalComponent<typeof F0BigNumberCmp>("F0BigNumber", F0BigNumberCmp)
)
export const F0BigNumber = withDataTestId(F0BigNumberCmp)
Copy link

Copilot AI Apr 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR title/description focuses on promoting OneChip only, but this PR also changes F0BigNumber (removes experimentalComponent) and updates Storybook tags for F0Heading/F0BigNumber. Please update the PR description (and/or title) to reflect the additional components being promoted to stable, so reviewers and release notes don’t miss these API/status changes.

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

📦 Alpha Package Version Published

Use pnpm i github:factorialco/f0#npm/alpha-pr-3846 to install the package

Use pnpm i github:factorialco/f0#fb19d3219fcae8e70b1cf25c2a26fd01cac3ea47 to install this specific commit

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

🔍 Visual review for your branch is published 🔍

Here are the links to:

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

Coverage Report for packages/react

Status Category Percentage Covered / Total
🔵 Lines 44.88% 10953 / 24403
🔵 Statements 44.14% 11294 / 25582
🔵 Functions 36.86% 2476 / 6716
🔵 Branches 36.74% 7153 / 19469
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/react/src/components/F0BigNumber/index.tsx 0% 100% 100% 0% 6
packages/react/src/components/OneChip/index.tsx 50% 56.66% 33.33% 50% 88-106
Generated in workflow #12523 for commit 2194eb1 by the Vitest Coverage Report Action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

react Changes affect packages/react refactor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants