chore: implement new storybook architecture - for converged packages/react-menu#17866
Conversation
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 5e6aa4df0c03051e59d686d24b35f01c721a3b4e (build) |
fa31ec3 to
2a3fb60
Compare
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 886 | 901 | 5000 | |
| BaseButton | mount | 900 | 905 | 5000 | |
| Breadcrumb | mount | 2657 | 2668 | 1000 | |
| ButtonNext | mount | 531 | 546 | 5000 | |
| Checkbox | mount | 1530 | 1533 | 5000 | |
| CheckboxBase | mount | 1264 | 1271 | 5000 | |
| ChoiceGroup | mount | 4715 | 4741 | 5000 | |
| ComboBox | mount | 986 | 975 | 1000 | |
| CommandBar | mount | 10184 | 10151 | 1000 | |
| ContextualMenu | mount | 6150 | 6248 | 1000 | |
| DefaultButton | mount | 1121 | 1117 | 5000 | |
| DetailsRow | mount | 3681 | 3717 | 5000 | |
| DetailsRowFast | mount | 3700 | 3661 | 5000 | |
| DetailsRowNoStyles | mount | 3456 | 3485 | 5000 | |
| Dialog | mount | 1470 | 1468 | 1000 | |
| DocumentCardTitle | mount | 143 | 153 | 1000 | |
| Dropdown | mount | 3219 | 3232 | 5000 | |
| FocusTrapZone | mount | 1783 | 1820 | 5000 | |
| FocusZone | mount | 1763 | 1828 | 5000 | |
| IconButton | mount | 1695 | 1704 | 5000 | |
| Label | mount | 340 | 340 | 5000 | |
| Layer | mount | 1788 | 1756 | 5000 | |
| Link | mount | 459 | 465 | 5000 | |
| MakeStyles | mount | 1804 | 1805 | 50000 | |
| MenuButton | mount | 1467 | 1489 | 5000 | |
| MessageBar | mount | 2061 | 2025 | 5000 | |
| Nav | mount | 3231 | 3243 | 1000 | |
| OverflowSet | mount | 1031 | 1046 | 5000 | |
| Panel | mount | 1413 | 1430 | 1000 | |
| Persona | mount | 811 | 830 | 1000 | |
| Pivot | mount | 1396 | 1424 | 1000 | |
| PrimaryButton | mount | 1283 | 1242 | 5000 | |
| Rating | mount | 7525 | 7551 | 5000 | |
| SearchBox | mount | 1292 | 1315 | 5000 | |
| Shimmer | mount | 2509 | 2513 | 5000 | |
| Slider | mount | 1937 | 1952 | 5000 | |
| SpinButton | mount | 4973 | 4959 | 5000 | |
| Spinner | mount | 414 | 426 | 5000 | |
| SplitButton | mount | 3170 | 3154 | 5000 | |
| Stack | mount | 497 | 493 | 5000 | |
| StackWithIntrinsicChildren | mount | 1477 | 1478 | 5000 | |
| StackWithTextChildren | mount | 4446 | 4461 | 5000 | |
| SwatchColorPicker | mount | 10203 | 10168 | 5000 | |
| Tabs | mount | 1408 | 1431 | 1000 | |
| TagPicker | mount | 2379 | 2440 | 5000 | |
| TeachingBubble | mount | 11832 | 11758 | 5000 | |
| Text | mount | 418 | 432 | 5000 | |
| TextField | mount | 1364 | 1388 | 5000 | |
| ThemeProvider | mount | 1196 | 1168 | 5000 | |
| ThemeProvider | virtual-rerender | 596 | 603 | 5000 | |
| ThemeProviderNext | mount | 9158 | 9110 | 5000 | |
| Toggle | mount | 790 | 798 | 5000 | |
| buttonNative | mount | 107 | 114 | 5000 |
Perf Analysis (@fluentui/react-northstar)
Perf tests with no regressions
| Scenario | Current PR Ticks | Baseline Ticks | Ratio |
|---|---|---|---|
| ButtonMinimalPerf.default | 171 | 161 | 1.06:1 |
| ReactionMinimalPerf.default | 385 | 364 | 1.06:1 |
| IconMinimalPerf.default | 609 | 574 | 1.06:1 |
| AttachmentMinimalPerf.default | 161 | 153 | 1.05:1 |
| TextMinimalPerf.default | 348 | 333 | 1.05:1 |
| GridMinimalPerf.default | 352 | 337 | 1.04:1 |
| HeaderMinimalPerf.default | 367 | 354 | 1.04:1 |
| ImageMinimalPerf.default | 378 | 363 | 1.04:1 |
| PopupMinimalPerf.default | 710 | 684 | 1.04:1 |
| TreeWith60ListItems.default | 181 | 174 | 1.04:1 |
| AlertMinimalPerf.default | 271 | 264 | 1.03:1 |
| AttachmentSlotsPerf.default | 1160 | 1126 | 1.03:1 |
| CardMinimalPerf.default | 553 | 539 | 1.03:1 |
| ListNestedPerf.default | 552 | 535 | 1.03:1 |
| ListWith60ListItems.default | 644 | 626 | 1.03:1 |
| PortalMinimalPerf.default | 166 | 161 | 1.03:1 |
| StatusMinimalPerf.default | 685 | 665 | 1.03:1 |
| TableMinimalPerf.default | 407 | 395 | 1.03:1 |
| CarouselMinimalPerf.default | 475 | 466 | 1.02:1 |
| ChatDuplicateMessagesPerf.default | 283 | 278 | 1.02:1 |
| ChatWithPopoverPerf.default | 364 | 358 | 1.02:1 |
| DividerMinimalPerf.default | 357 | 351 | 1.02:1 |
| DropdownManyItemsPerf.default | 679 | 664 | 1.02:1 |
| FlexMinimalPerf.default | 284 | 278 | 1.02:1 |
| HeaderSlotsPerf.default | 764 | 747 | 1.02:1 |
| RefMinimalPerf.default | 239 | 234 | 1.02:1 |
| TableManyItemsPerf.default | 1911 | 1877 | 1.02:1 |
| AccordionMinimalPerf.default | 148 | 146 | 1.01:1 |
| BoxMinimalPerf.default | 350 | 347 | 1.01:1 |
| ButtonUseCssNestingPerf.default | 1042 | 1034 | 1.01:1 |
| CheckboxMinimalPerf.default | 2768 | 2741 | 1.01:1 |
| DialogMinimalPerf.default | 732 | 727 | 1.01:1 |
| EmbedMinimalPerf.default | 4114 | 4078 | 1.01:1 |
| InputMinimalPerf.default | 1262 | 1255 | 1.01:1 |
| LabelMinimalPerf.default | 382 | 377 | 1.01:1 |
| ListCommonPerf.default | 612 | 605 | 1.01:1 |
| SegmentMinimalPerf.default | 342 | 338 | 1.01:1 |
| SkeletonMinimalPerf.default | 351 | 348 | 1.01:1 |
| CustomToolbarPrototype.default | 3728 | 3696 | 1.01:1 |
| ToolbarMinimalPerf.default | 931 | 918 | 1.01:1 |
| TooltipMinimalPerf.default | 960 | 954 | 1.01:1 |
| TreeMinimalPerf.default | 787 | 781 | 1.01:1 |
| VideoMinimalPerf.default | 613 | 609 | 1.01:1 |
| AvatarMinimalPerf.default | 187 | 187 | 1:1 |
| ButtonOverridesMissPerf.default | 1652 | 1645 | 1:1 |
| ButtonSlotsPerf.default | 552 | 550 | 1:1 |
| ButtonUseCssPerf.default | 794 | 797 | 1:1 |
| DatepickerMinimalPerf.default | 5378 | 5368 | 1:1 |
| DropdownMinimalPerf.default | 3012 | 3008 | 1:1 |
| ItemLayoutMinimalPerf.default | 1234 | 1228 | 1:1 |
| MenuButtonMinimalPerf.default | 1548 | 1552 | 1:1 |
| RadioGroupMinimalPerf.default | 432 | 434 | 1:1 |
| SliderMinimalPerf.default | 1529 | 1524 | 1:1 |
| TextAreaMinimalPerf.default | 482 | 483 | 1:1 |
| AnimationMinimalPerf.default | 408 | 411 | 0.99:1 |
| ChatMinimalPerf.default | 605 | 613 | 0.99:1 |
| ListMinimalPerf.default | 495 | 499 | 0.99:1 |
| MenuMinimalPerf.default | 828 | 836 | 0.99:1 |
| SplitButtonMinimalPerf.default | 3689 | 3714 | 0.99:1 |
| LayoutMinimalPerf.default | 356 | 362 | 0.98:1 |
| LoaderMinimalPerf.default | 688 | 700 | 0.98:1 |
| ProviderMergeThemesPerf.default | 1629 | 1655 | 0.98:1 |
| ProviderMinimalPerf.default | 948 | 969 | 0.98:1 |
| FormMinimalPerf.default | 402 | 413 | 0.97:1 |
| RosterPerf.default | 1114 | 1159 | 0.96:1 |
62a3769 to
625f3df
Compare
|
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit 3e72d33:
|
0a66c18 to
8398423
Compare
8f5b856 to
fe7e2b6
Compare
fe7e2b6 to
d94cb60
Compare
| "@storybook/channels": "6.0.28", | ||
| "@storybook/core": "6.0.28", | ||
| "@storybook/react": "6.0.28", | ||
| "@testing-library/jest-dom": "5.11.9", |
There was a problem hiding this comment.
reordered packages by yarn add
| "comment": "chore(react-examples): process collocated stories properly and remove react-menu from dependencies", | ||
| "packageName": "@fluentui/react-examples", | ||
| "email": "martinhochel@microsoft.com", | ||
| "dependentChangeType": "patch" |
There was a problem hiding this comment.
not really sure about the type, I'd say this is a breaking change hmm, but from what I remember, this package is not being used by anyone ?
There was a problem hiding this comment.
Not sure about used, but it is published
| "@fluentui/react-positioning": ["packages/react-positioning/src/index.ts"], | ||
| "@fluentui/react-shared-contexts": ["packages/react-shared-contexts/src/index.ts"], | ||
| "@fluentui/react-menu": ["packages/react-menu/src/index.ts"], | ||
| "@fluentui/react-portal": ["packages/react-portal/src/index.ts"], |
There was a problem hiding this comment.
Ah, thanks for remembering where I forgot !
There was a problem hiding this comment.
no worries, we don't have automation for this atm, blame robots! :D
| '@storybook/addon-essentials', | ||
| '@storybook/addon-a11y', | ||
| '@storybook/addon-knobs/preset', | ||
| 'storybook-addon-performance', |
There was a problem hiding this comment.
would we be OK reming the perf addon ? I have never seen it mentioned nor have I ever used it in any meaningful way
There was a problem hiding this comment.
we can do that, depends on requirements. It is used for react-examples that's why I added it here as well.
My understanding was that this is gonna be used for re-render perf metrics in the future ?
There was a problem hiding this comment.
re-render perf metrics
wasn't that why we created flamegrill ? 🤦♂️
5f55854 to
0bf4e96
Compare
|
ping @JustSlone |
… react-menu from dependencies
0bf4e96 to
3e72d33
Compare
|
🎉 Handy links: |
…react-menu (microsoft#17866) * chore(.storybook): implement root sb config * chore(react-menu): implement local storybook with stories * chore(react-examples): process collocated stories properly and remove react-menu from dependencies * Change files * chore(.storybook): use react-storybook instead storybook * chore: update base.json to with new react-menu deps * chore: update codeowners
Pull request checklist
$ yarn changeDescription of changes
<monorepoRoot>/.storybook<packageFolder>/.storybookforreact-menuFocus areas to test
(optional)
Before:

After:
