Skip to content

refactor(F0Checkbox): promote from experimental to stable#3847

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

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

Conversation

@eliseo-juan
Copy link
Copy Markdown
Contributor

Summary

  • Promotes F0Checkbox from experimental to stable
  • Removes experimentalComponent() wrapper and the @experimental JSDoc comment
  • Removes the now-unused import { experimentalComponent } from "@/lib/experimental"
  • Updates story tag from "experimental" to "stable"

Changes

  • F0Checkbox.tsx: Remove experimentalComponent import, @experimental JSDoc, and unwrap the export to withDataTestId(_F0Checkbox)
  • F0Checkbox.stories.tsx: Change tags: ["autodocs", "experimental"]tags: ["autodocs", "stable"]

@eliseo-juan eliseo-juan requested a review from a team as a code owner April 2, 2026 22:50
Copilot AI review requested due to automatic review settings April 2, 2026 22:50
@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

This PR promotes components from “experimental” to “stable” within packages/react by removing the experimentalComponent() wrapper/annotations and updating Storybook metadata tags accordingly.

Changes:

  • Removed experimentalComponent() wrapping (and related @experimental JSDoc / imports) for F0Checkbox and F0ChipList.
  • Updated Storybook tags from ["autodocs", "experimental"] to ["autodocs", "stable"] across multiple stories.
  • Reformatted F0DatePicker stories file (notably introducing semicolons throughout).

Reviewed changes

Copilot reviewed 6 out of 6 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 Updates Storybook tag to stable.
packages/react/src/components/F0DatePicker/stories/F0DatePicker.stories.tsx Updates Storybook tag to stable and reformats file (introduces semicolons).
packages/react/src/components/F0ChipList/index.tsx Removes experimentalComponent() wrapper and @experimental JSDoc from F0ChipList.
packages/react/src/components/F0ChipList/index.stories.tsx Updates Storybook tag to stable.
packages/react/src/components/F0Checkbox/F0Checkbox.tsx Removes experimentalComponent() wrapper and @experimental JSDoc from F0Checkbox.
packages/react/src/components/F0Checkbox/stories/F0Checkbox.stories.tsx Updates Storybook tag to stable.
Comments suppressed due to low confidence (1)

packages/react/src/components/F0Checkbox/F0Checkbox.tsx:109

  • withDataTestId derives the wrapped component's displayName from component.displayName/component.name. Since the inner function is named _F0Checkbox, React DevTools will show _F0Checkbox instead of F0Checkbox. Consider setting _F0Checkbox.displayName = "F0Checkbox" (as many other F0* components do) before exporting.
    />
  )
}

export const F0Checkbox = withDataTestId(_F0Checkbox)

Comment on lines +1 to +6
import type { Meta, StoryObj } from "@storybook/react-vite";

import { subDays } from "date-fns"
import MockDate from "mockdate"
import { useState } from "react"
import { expect, fn, within } from "storybook/test"
import { subDays } from "date-fns";
import MockDate from "mockdate";
import { useState } from "react";
import { expect, fn, within } from "storybook/test";
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 now uses semicolons (e.g. in the import section), but packages/react/.oxfmtrc.jsonc has "semi": false. This will likely fail format:check; please run the repo formatter (oxfmt) or remove the added semicolons to match the project's formatting rules.

Copilot uses AI. Check for mistakes.
Comment on lines 10 to +13
const meta = {
component: OneEmptyState,
title: "EmptyState",
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.

The PR description/title focuses on promoting F0Checkbox, but this PR also changes other components/stories (e.g. OneEmptyState, F0DatePicker, and F0ChipList). Please update the PR description to reflect the full scope (or split unrelated promotions into separate PRs) so reviewers can assess impact accurately.

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-3847 to install the package

Use pnpm i github:factorialco/f0#89864dda0efd3476aea876bc1a4f0e56c143fea6 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/F0Checkbox/F0Checkbox.tsx 100% 100% 100% 100%
packages/react/src/components/F0ChipList/index.tsx 0% 0% 0% 0% 33-85
Generated in workflow #12524 for commit 35332a9 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