Update story status reporting for Storybook 8.3 and use new SET_FILTER
event
#332
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes storybookjs/storybook#28683
This makes the addon compatible with the upcoming changes in Storybook 8.3. See storybookjs/storybook#28693 and storybookjs/storybook#28739
experimental_updateStatus
API now accepts anonClick
property. This is used to open the Visual Tests panel when clicking an error/warning status in the sidebar.experimental_SIDEBAR_BOTTOM
API is deprecated and ignored in SB 8.3. The VTA will continue to use this API for backwards compatibility, but will eventually be removed. When using the VTA with Storybook 8.3, it will rely on Storybook's own sidebar filtering UI.setFilter
event when a filter is set, similar to the VTA'schromaui/addon-visual-tests/enableFilter
event. Both events are listened for in order to be compatible with Storybook <8.3 and Storybook >=8.3.Compatibility is as follows:
experimental_updateStatus
API which the VTA has always used. The VTA's filter UI is ignored (not applied).onClick
property for the story statuses, but that will be ignored by Storybook 8.2 and earlier.Filter UI in Storybook 8.3 is mostly identical to the VTA filter UI, but it's likely to change in a later version.
📦 Published PR as canary version:
1.7.0--canary.332.f043bff.0
✨ Test out this PR locally via:
npm install @chromatic-com/storybook@1.7.0--canary.332.f043bff.0 # or yarn add @chromatic-com/storybook@1.7.0--canary.332.f043bff.0