-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
Conversation
…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.
View your CI Pipeline Execution ↗ for commit 8cd7367.
☁️ Nx Cloud last updated this comment at |
… script definitions for controls in entries.ts. Add '@storybook/addon-controls' to consolidated packages for better integration.
…torybookjs/storybook into norbert/addon-controls-in-core
… core and adjust formatting for consistency.
…d comment out reenable tasks for bench-packages and bench-sandboxes in workflows.
There was a problem hiding this 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'; |
There was a problem hiding this comment.
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.
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
:code/.storybook/main.ts
: Removed thecontrols
addon directory and titlePrefix references.code/addons/controls/README.md
: Deleted the entire README file for thecontrols
addon.code/addons/controls/manager.js
: Removed the import statement for thecontrols
manager.code/addons/controls/package.json
: Deleted thepackage.json
file for thecontrols
addon.code/addons/controls/project.json
: Deleted theproject.json
file for thecontrols
addon.code/addons/controls/src/index.ts
: Removed all exports and imports related to thecontrols
addon.code/addons/controls/tsconfig.json
: Deleted thetsconfig.json
file for thecontrols
addon.code/addons/controls/vitest.config.ts
: Deleted thevitest.config.ts
file for thecontrols
addon.Updates to related documentation and configuration files:
code/addons/essentials/README.md
: Removed references to thecontrols
addon from the essentials README. [1] [2]code/addons/essentials/package.json
: Removedcontrols
addon dependencies and manager entries. [1] [2] [3]code/addons/essentials/src/controls/manager.ts
: Removed the export statement for thecontrols
manager.code/addons/essentials/src/preset.ts
: Removed thecontrols
option from the preset options and updated the addons list. [1] [2]Adjustments to onboarding addon:
code/addons/onboarding/src/Onboarding.tsx
: Updated thesetSelectedPanel
call to use theCONTROLS_ADDON_ID
constant. [1] [2]code/addons/onboarding/src/manager.tsx
: Updated thesetSelectedPanel
call to use theCONTROLS_ADDON_ID
constant. [1] [2]Checklist for Contributors
Testing
The changes in this PR are covered in the following automated tests:
Manual testing
This section is mandatory for all contributions. If you believe no manual test is necessary, please state so explicitly. Thanks!
Documentation
MIGRATION.MD
Checklist for Maintainers
When this PR is ready for testing, make sure to add
ci:normal
,ci:merged
orci:daily
GH label to it to run a specific set of sandboxes. The particular set of sandboxes can be found incode/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.
code/addons/controls/
and updated all test storybooks to remove the addon dependencycode/core/src/controls/
with updated import paths and internal structurecode/core/scripts/entries.ts
to include new core entries for controls functionality