Skip to content

Controls: Embed addon-controls into the core #30864

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Mar 25, 2025

Conversation

ndelangen
Copy link
Member

@ndelangen ndelangen commented Mar 20, 2025

What I did

This pull request includes several significant changes to the Storybook project, primarily focusing on the removal of the @storybook/addon-controls addon and its associated files and references. The changes also involve updates to related documentation and configuration files.

Removal of @storybook/addon-controls:

Updates to related documentation and configuration files:

Adjustments to onboarding addon:

Checklist for Contributors

Testing

The changes in this PR are covered in the following automated tests:

  • stories
  • unit tests
  • integration tests
  • end-to-end tests

Manual testing

This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!

Documentation

  • Add or update documentation reflecting your changes
  • If you are deprecating/removing a feature, make sure to update
    MIGRATION.MD

Checklist for Maintainers

  • When this PR is ready for testing, make sure to add ci:normal, ci:merged or ci:daily GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found in code/lib/cli-storybook/src/sandbox-templates.ts

  • Make sure this PR contains one of the labels below:

    Available labels
    • bug: Internal changes that fixes incorrect behavior.
    • maintenance: User-facing maintenance tasks.
    • dependencies: Upgrading (sometimes downgrading) dependencies.
    • build: Internal-facing build tooling & test updates. Will not show up in release changelog.
    • cleanup: Minor cleanup style change. Will not show up in release changelog.
    • documentation: Documentation only changes. Will not show up in release changelog.
    • feature request: Introducing a new feature.
    • BREAKING CHANGE: Changes that break compatibility in some way with current major version.
    • other: Changes that don't fit in the above categories.

🦋 Canary release

This PR does not have a canary release associated. You can request a canary release of this pull request by mentioning the @storybookjs/core team here.

core team members can create a canary release here or locally with gh workflow run --repo storybookjs/storybook canary-release-pr.yml --field pr=<PR_NUMBER>

Greptile Summary

This PR embeds the controls addon functionality directly into Storybook core, removing the standalone @storybook/addon-controls package while maintaining all existing functionality.

  • Removed standalone controls addon files and dependencies from code/addons/controls/ and updated all test storybooks to remove the addon dependency
  • Added new controls implementation in code/core/src/controls/ with updated import paths and internal structure
  • Updated code/core/scripts/entries.ts to include new core entries for controls functionality
  • Added migration documentation instructing users to remove addon-controls package and configuration
  • Updated essentials package to remove controls references since it's now part of core

…s, migrating its functionality into core. Update dependencies and documentation accordingly.
…core. Added detailed comments regarding the future of inferControls and the need for a decision on addon integration.
Copy link

nx-cloud bot commented Mar 20, 2025

View your CI Pipeline Execution ↗ for commit 8cd7367.

Command Status Duration Result
nx run-many -t build --parallel=3 ✅ Succeeded 1m 58s View ↗

☁️ Nx Cloud last updated this comment at 2025-03-25 10:42:43 UTC

@ndelangen ndelangen marked this pull request as ready for review March 21, 2025 08:33
Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

55 file(s) reviewed, 1 comment(s)
Edit PR Review Bot Settings | Greptile

PureArgsTable as ArgsTable,
type PresetColor,
type SortType,
} from '../../../../lib/blocks/src/index';
Copy link
Contributor

Choose a reason for hiding this comment

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

style: Relative import path may be fragile. Consider using an alias or absolute import path.

…ols and Addon Actions to core, and adjust related sections for consistency and clarity.
Base automatically changed from norebrt/docs-out-of-essentials to next March 25, 2025 10:19
@ndelangen ndelangen merged commit df31298 into next Mar 25, 2025
44 of 54 checks passed
@ndelangen ndelangen deleted the norbert/addon-controls-in-core branch March 25, 2025 11:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy