Open Sidnioulz opened 1 week ago
CI is running/has finished running commands for commit 84a0da278fa1195ec96fd5ad07c41ad5caf102c7. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.
📂 See all runs for this CI Pipeline Execution
Sent with 💌 from NxCloud.
Closes #22081.
Context
What I did
What's left to do
Checklist for Contributors
Testing
The changes in this PR are covered in the following automated tests:
Manual testing
code/.storybook/manager.tsx
with the snippet belowyarn storybook:ui
The snippet:
Documentation
Checklist for Maintainers
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 adds layout customization options to conditionally show/hide the Storybook toolbar and sidebar based on story context, primarily addressing the need to hide toolbars on documentation pages.
layoutCustomisations
object in manager config withshowSidebar
andshowToolbar
functionsgetShowToolbarWithCustomisations
andgetNavSizeWithCustomisations
in layout module to handle visibility logictoolbar.mdx
explaining conditional toolbar visibility featuresLayout
andPreview
components to integrate customization logic through API propsaddons.ts
andapi.ts