Skip to content

refactor(F0DatePicker): promote from experimental to stable#3849

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

refactor(F0DatePicker): promote from experimental to stable#3849
eliseo-juan wants to merge 6 commits intorefactor/storybook-sidebar-reorganization-2from
stabilize/F0DatePicker

Conversation

@eliseo-juan
Copy link
Copy Markdown
Contributor

Summary

  • Removes experimentalComponent() wrapper from F0DatePicker export
  • Removes @experimental JSDoc comment and unused experimentalComponent import
  • Updates Storybook stories tag from "experimental" to "stable"

Changes

  • packages/react/src/components/F0DatePicker/index.ts — simplified export using withDataTestId directly
  • packages/react/src/components/F0DatePicker/__stories__/F0DatePicker.stories.tsx — updated tags to ["autodocs", "stable"]

Copilot AI review requested due to automatic review settings April 2, 2026 22:52
@eliseo-juan eliseo-juan requested a review from a team as a code owner April 2, 2026 22:52
@github-actions github-actions bot added refactor react Changes affect packages/react labels Apr 2, 2026
@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-3849 to install the package

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

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/stories from “experimental” to “stable” by removing the experimental wrapper from exports and updating Storybook metadata tags so these components are treated as stable in documentation.

Changes:

  • Remove experimentalComponent() wrapping from F0DatePicker (and F0BigNumber) exports, keeping withDataTestId.
  • Update Storybook tags from ["autodocs", "experimental"] to ["autodocs", "stable"] for several components.

Reviewed changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
packages/react/src/components/OneEmptyState/stories/OneEmptyState.stories.tsx Marks the OneEmptyState story as stable via Storybook tags.
packages/react/src/components/F0Text/stories/Text.stories.tsx Marks F0Text story as stable via Storybook tags.
packages/react/src/components/F0Heading/stories/Heading.stories.tsx Marks F0Heading story as stable via Storybook tags.
packages/react/src/components/F0DatePicker/index.ts Removes experimental export wrapper; exports stable F0DatePicker with withDataTestId.
packages/react/src/components/F0DatePicker/stories/F0DatePicker.stories.tsx Marks F0DatePicker story as stable via Storybook tags.
packages/react/src/components/F0BigNumber/index.tsx Removes experimental export wrapper; exports stable F0BigNumber with withDataTestId.
packages/react/src/components/F0BigNumber/stories/F0BigNumber.stories.tsx Marks F0BigNumber story as stable via Storybook tags.

Comment on lines 1 to +6
import { withDataTestId } from "@/lib/data-testid"
import { experimentalComponent } from "@/lib/experimental"
export * from "./types"

import { F0BigNumber as F0BigNumberCmp } from "./F0BigNumber"

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.

This PR changes more than the title/description suggest: besides promoting F0DatePicker, it also removes the experimental wrapper from F0BigNumber and flips Storybook tags to "stable" for OneEmptyState, F0Text, and F0Heading. Please either update the PR title/description to cover these additional promotions, or split/revert the unrelated changes to keep scope clear.

Copilot uses AI. Check for mistakes.
Comment on lines 10 to 16
const meta = {
component: OneEmptyState,
title: "EmptyState",
tags: ["autodocs", "experimental"],
tags: ["autodocs", "stable"],
argTypes: {
...dataTestIdArgs,
},
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.

This story file doesn't define a Snapshot story using withSnapshot({}). In packages/react, Storybook stories are expected to include a Snapshot story for Chromatic coverage; please add one that renders the meaningful variants of OneEmptyState.

Copilot uses AI. Check for mistakes.
@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/F0DatePicker/index.ts 100% 100% 100% 100%
Generated in workflow #12526 for commit 15cbd2d 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