-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Migrate storybook to 6.2.9 #18693
Migrate storybook to 6.2.9 #18693
Conversation
The babel warnings below is a known issue and was fixed in 6.3.x |
Asset size changes
Over Tolerance (1024 B) Over Baseline Below Baseline New Removed 1 kB = 1000 B Baseline commit: 465a840933b39e5a54c0492180543806542b24b7 (build) |
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
buttonNative | mount | 110 | 120 | 5000 | Possible regression |
All results
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 802 | 845 | 5000 | |
BaseButton | mount | 894 | 868 | 5000 | |
Breadcrumb | mount | 2628 | 2581 | 1000 | |
ButtonNext | mount | 524 | 518 | 5000 | |
Checkbox | mount | 1530 | 1480 | 5000 | |
CheckboxBase | mount | 1269 | 1279 | 5000 | |
ChoiceGroup | mount | 4712 | 4673 | 5000 | |
ComboBox | mount | 961 | 980 | 1000 | |
CommandBar | mount | 10073 | 10222 | 1000 | |
ContextualMenu | mount | 6222 | 6286 | 1000 | |
DefaultButton | mount | 1110 | 1114 | 5000 | |
DetailsRow | mount | 3663 | 3660 | 5000 | |
DetailsRowFast | mount | 3670 | 3700 | 5000 | |
DetailsRowNoStyles | mount | 3530 | 3493 | 5000 | |
Dialog | mount | 2175 | 2177 | 1000 | |
DocumentCardTitle | mount | 137 | 145 | 1000 | |
Dropdown | mount | 3216 | 3227 | 5000 | |
FluentProviderNext | mount | 7184 | 7357 | 5000 | |
FocusTrapZone | mount | 1777 | 1795 | 5000 | |
FocusZone | mount | 1864 | 1817 | 5000 | |
IconButton | mount | 1721 | 1747 | 5000 | |
Label | mount | 335 | 343 | 5000 | |
Layer | mount | 1810 | 1776 | 5000 | |
Link | mount | 454 | 464 | 5000 | |
MakeStyles | mount | 1783 | 1812 | 50000 | |
MenuButton | mount | 1428 | 1399 | 5000 | |
MessageBar | mount | 1997 | 2003 | 5000 | |
Nav | mount | 3243 | 3210 | 1000 | |
OverflowSet | mount | 1053 | 1021 | 5000 | |
Panel | mount | 2102 | 2104 | 1000 | |
Persona | mount | 798 | 790 | 1000 | |
Pivot | mount | 1399 | 1411 | 1000 | |
PrimaryButton | mount | 1294 | 1294 | 5000 | |
Rating | mount | 7489 | 7704 | 5000 | |
SearchBox | mount | 1323 | 1308 | 5000 | |
Shimmer | mount | 2546 | 2505 | 5000 | |
Slider | mount | 1926 | 1976 | 5000 | |
SpinButton | mount | 4877 | 4945 | 5000 | |
Spinner | mount | 396 | 423 | 5000 | |
SplitButton | mount | 3068 | 3124 | 5000 | |
Stack | mount | 481 | 494 | 5000 | |
StackWithIntrinsicChildren | mount | 1551 | 1542 | 5000 | |
StackWithTextChildren | mount | 4500 | 4489 | 5000 | |
SwatchColorPicker | mount | 10148 | 10241 | 5000 | |
Tabs | mount | 1410 | 1392 | 1000 | |
TagPicker | mount | 2421 | 2415 | 5000 | |
TeachingBubble | mount | 11886 | 11823 | 5000 | |
Text | mount | 416 | 408 | 5000 | |
TextField | mount | 1371 | 1360 | 5000 | |
ThemeProvider | mount | 1172 | 1179 | 5000 | |
ThemeProvider | virtual-rerender | 584 | 596 | 5000 | |
Toggle | mount | 822 | 815 | 5000 | |
buttonNative | mount | 110 | 120 | 5000 | Possible regression |
Perf Analysis (@fluentui/react-northstar
)
Perf tests with no regressions
Scenario | Current PR Ticks | Baseline Ticks | Ratio |
---|---|---|---|
AccordionMinimalPerf.default | 162 | 138 | 1.17:1 |
PortalMinimalPerf.default | 187 | 174 | 1.07:1 |
FlexMinimalPerf.default | 285 | 268 | 1.06:1 |
BoxMinimalPerf.default | 353 | 335 | 1.05:1 |
ListWith60ListItems.default | 649 | 621 | 1.05:1 |
RefMinimalPerf.default | 246 | 235 | 1.05:1 |
PopupMinimalPerf.default | 602 | 580 | 1.04:1 |
SkeletonMinimalPerf.default | 348 | 335 | 1.04:1 |
ButtonSlotsPerf.default | 543 | 528 | 1.03:1 |
GridMinimalPerf.default | 340 | 331 | 1.03:1 |
ListMinimalPerf.default | 506 | 492 | 1.03:1 |
SegmentMinimalPerf.default | 349 | 339 | 1.03:1 |
StatusMinimalPerf.default | 667 | 649 | 1.03:1 |
TableMinimalPerf.default | 405 | 394 | 1.03:1 |
AlertMinimalPerf.default | 273 | 268 | 1.02:1 |
AvatarMinimalPerf.default | 196 | 192 | 1.02:1 |
CarouselMinimalPerf.default | 448 | 440 | 1.02:1 |
CheckboxMinimalPerf.default | 2739 | 2681 | 1.02:1 |
DropdownMinimalPerf.default | 3109 | 3063 | 1.02:1 |
FormMinimalPerf.default | 395 | 386 | 1.02:1 |
AttachmentMinimalPerf.default | 159 | 157 | 1.01:1 |
ButtonMinimalPerf.default | 165 | 164 | 1.01:1 |
ButtonOverridesMissPerf.default | 1705 | 1690 | 1.01:1 |
CardMinimalPerf.default | 544 | 539 | 1.01:1 |
ChatDuplicateMessagesPerf.default | 296 | 294 | 1.01:1 |
LayoutMinimalPerf.default | 368 | 363 | 1.01:1 |
ListCommonPerf.default | 629 | 625 | 1.01:1 |
SplitButtonMinimalPerf.default | 3778 | 3737 | 1.01:1 |
TextMinimalPerf.default | 344 | 339 | 1.01:1 |
ToolbarMinimalPerf.default | 936 | 931 | 1.01:1 |
TooltipMinimalPerf.default | 1005 | 994 | 1.01:1 |
AttachmentSlotsPerf.default | 1064 | 1060 | 1:1 |
ChatWithPopoverPerf.default | 363 | 363 | 1:1 |
DatepickerMinimalPerf.default | 5347 | 5330 | 1:1 |
EmbedMinimalPerf.default | 4061 | 4051 | 1:1 |
HeaderMinimalPerf.default | 346 | 346 | 1:1 |
LoaderMinimalPerf.default | 684 | 684 | 1:1 |
MenuButtonMinimalPerf.default | 1619 | 1622 | 1:1 |
ProviderMergeThemesPerf.default | 1675 | 1672 | 1:1 |
SliderMinimalPerf.default | 1580 | 1580 | 1:1 |
TableManyItemsPerf.default | 1847 | 1851 | 1:1 |
CustomToolbarPrototype.default | 3896 | 3899 | 1:1 |
DialogMinimalPerf.default | 727 | 735 | 0.99:1 |
DividerMinimalPerf.default | 343 | 347 | 0.99:1 |
HeaderSlotsPerf.default | 734 | 744 | 0.99:1 |
ItemLayoutMinimalPerf.default | 1180 | 1188 | 0.99:1 |
ProviderMinimalPerf.default | 1004 | 1014 | 0.99:1 |
TextAreaMinimalPerf.default | 479 | 485 | 0.99:1 |
TreeMinimalPerf.default | 795 | 800 | 0.99:1 |
TreeWith60ListItems.default | 169 | 170 | 0.99:1 |
DropdownManyItemsPerf.default | 666 | 681 | 0.98:1 |
InputMinimalPerf.default | 1246 | 1268 | 0.98:1 |
LabelMinimalPerf.default | 373 | 379 | 0.98:1 |
ListNestedPerf.default | 532 | 545 | 0.98:1 |
MenuMinimalPerf.default | 814 | 829 | 0.98:1 |
IconMinimalPerf.default | 599 | 614 | 0.98:1 |
RadioGroupMinimalPerf.default | 432 | 445 | 0.97:1 |
VideoMinimalPerf.default | 603 | 621 | 0.97:1 |
AnimationMinimalPerf.default | 392 | 408 | 0.96:1 |
ChatMinimalPerf.default | 634 | 659 | 0.96:1 |
ReactionMinimalPerf.default | 360 | 380 | 0.95:1 |
ImageMinimalPerf.default | 343 | 363 | 0.94:1 |
RosterPerf.default | 1078 | 1181 | 0.91:1 |
Update: No longer an issue - updating the imports (as seen in this commit) fixes this I can resolve the errors by adding
This error is introduced when upgrading |
Update: tried storybook version Running into a regression where codeblocks are not displayed properly for |
4ba9e2f
to
060fd1a
Compare
package.json
Outdated
@@ -108,6 +109,7 @@ | |||
"@types/webpack-env": "1.16.0", | |||
"@types/yargs": "13.0.11", | |||
"ajv": "8.4.0", | |||
"autoprefixer": "^9.7.2", |
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.
please use fixed versions in root devDependencies
packages/react-examples/src/react-components/FluentUIComponents/Introduction.stories.mdx
Show resolved
Hide resolved
@@ -5,6 +5,10 @@ const config = createConfig({ | |||
setupFiles: [path.resolve(path.join(__dirname, 'config', 'tests.js'))], | |||
|
|||
snapshotSerializers: [resolveMergeStylesSerializer()], | |||
|
|||
moduleNameMapper: { | |||
'@storybook/addon-docs/blocks$': '@storybook/addon-docs/dist/cjs/blocks', |
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.
q: is this a know limitation (to explicitly provide CJS storybooks output) ? I mean we don't run tests on stories do we?
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.
.storybook/main.js
Outdated
@@ -23,6 +23,14 @@ module.exports = /** @type {Pick<StorybookConfig,'addons' |'stories' |'webpackFi | |||
'@storybook/addon-a11y', | |||
'@storybook/addon-knobs/preset', | |||
'storybook-addon-performance', | |||
{ | |||
name: '@storybook/addon-postcss', |
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.
q: why is this needed ?
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.
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.
hmm I don't think we need postcss for vNext (as styling is processed by make-styles - so vendor prefix etc are being properly added - am I right @layershifter ?)
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.
Yes, it's correct, we don't need PostCSS for vNext components
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.
Got it - I will remove addon-postcss
from the storybook addons and also remove the postcss.config.js
file i created.
e60aba3
to
0a03584
Compare
@@ -21,7 +20,6 @@ const storyOrder = [ | |||
'Migrations/Flex/Overview', | |||
]; | |||
|
|||
addDecorator(withInfo); |
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.
withInfo
was replaced by some addon ?
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.
As of now, i haven't added anything to replace it yet. Since addon-info
is deprecated, it was not playing nice with the new storybook webpack5 builder so Elizabeth and I decided to remove it for now (see here)
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.
sounds good, vNext uses storybook Docs anyways with typescript doc generation
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.
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.
I'll create a separate issue for this!
Update: No longer an issue; I ran After merging with latest master; now running into an issue below when running |
there are 3 VTest regression - svg icons stories are ordered in different way (weird) - probably some underlying mechanism change of how 6.2. renders stories that use deprecated if folks are ok with that (@ecraig12345 @ling1726 ), lets approve those and ship this beauty! 😍 |
That's really strange, it looks like previously they weren't fully alphabetized and now they are? But since all the icons are still there it should be fine (as long as it stays stable), so I accepted the changes. |
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.
left some comments, but not blocking. Great work @TristanWatanabe 🙌
Hello @TristanWatanabe! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
🎉 Handy links: |
#### Pull request checklist - [x] Addresses an existing issue: Fixes microsoft#18142 - [x] Include a change request file using `$ yarn change` #### Description of changes
Pull request checklist
$ yarn change
Description of changes