-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Release: Prerelease 8.6.0-beta.1 #30543
Conversation
Co-authored-by: jonniebigodes <[email protected]>
…tation Docs: Add CSF factory API documentation
…:storybookjs/storybook into jeppe/partially-revert-vite-allowedhosts
…e-allowedhosts Builder-Vite: Fix defaulting to allowing all hosts
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.
13 file(s) reviewed, 6 comment(s)
Edit PR Review Bot Settings | Greptile
document.getElementById('storybook-root').innerHTML = | ||
`<p style="color: red; max-width: 70ch">${message.replaceAll( | ||
'\n', | ||
'<br/>' | ||
)}<ul>${docs.map((doc) => `<li><a href='${doc}' target='_blank'>${doc}</a></li>`).join('')}<ul></p>`; |
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.
logic: Potential XSS vulnerability - hostname is inserted into innerHTML without sanitization
// Import all stories from the stories file | ||
import * as stories from './Button.stories'; | ||
|
||
const { Primary, Secondary } = stories; |
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: Secondary is destructured but never used in the tests
const { Primary, Secondary } = stories; | |
const { Primary } = stories; |
// Import all stories from the stories file | ||
import * as stories from './Button.stories'; | ||
|
||
const { Primary, Secondary } = stories; |
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: Secondary is destructured but never used in the tests
const { Primary, Secondary } = stories; | |
const { Primary } = stories; |
|
||
const { Primary, Secondary } = stories; | ||
|
||
test('renders primary button with default args', async () => { |
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.
logic: test is marked async but no await is used in the test
test('renders primary button with default args', async () => { | |
test('renders primary button with default args', () => { |
expect(buttonElement).not.toBeNull(); | ||
}); | ||
|
||
test('renders primary button with overridden props', async () => { |
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.
logic: test is marked async but no await is used in the test
test('renders primary button with overridden props', async () => { | |
test('renders primary button with overridden props', () => { |
Previously, story properties such as `Story.args` or `Story.parameters` were accessed directly when reusing them in another story. While accessing them like this is still supported, it is deprecated in CSF Factories. | ||
|
||
All of the story properties are now contained within a new property called `composed` and should be accessed from that property instead. For instance, `Story.composed.args` or `Story.composed.parameters`. |
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: Important deprecation notice about direct property access. Consider highlighting this more prominently with a warning callout
UI: Fix tags sort for browser back-compat
85f3fe4
to
d8fdfbb
Compare
React: Fix incorrect import in preview.ts
d8fdfbb
to
b7c3e43
Compare
b7c3e43
to
b2cb3c0
Compare
Co-authored-by: jonniebigodes <[email protected]>
Docs: Add documentation for `parameters.a11y.test`
b2cb3c0
to
6989cf5
Compare
Tags: Add story/meta usage telemetry
6989cf5
to
4d27fdc
Compare
View your CI Pipeline Execution ↗ for commit 4d27fdc.
☁️ Nx Cloud last updated this comment at |
This is an automated pull request that bumps the version from
8.6.0-beta.0
to8.6.0-beta.1
.Once this pull request is merged, it will trigger a new release of version
8.6.0-beta.1
.If you're not a core maintainer with permissions to release you can ignore this pull request.
To do
Before merging the PR, there are a few QA steps to go through:
And for each change below:
This is a list of all the PRs merged and commits pushed directly to
next
, that will be part of this release:parameters.a11y.test
#30538test
tags description #30548 (will also be patched)If you've made any changes doing the above QA (change PR titles, revert PRs), manually trigger a re-generation of this PR with this workflow and wait for it to finish. It will wipe your progress in this to do, which is expected.
Feel free to manually commit any changes necessary to this branch after you've done the last re-generation, following the Make Manual Changes section in the docs, especially if you're making changes to the changelog.
When everything above is done:
Generated changelog
8.6.0-beta.1