-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat(react-storybook-addon-codesandbox): support various providers for "export to" functionality #29536
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
Merged
Hotell
merged 6 commits into
microsoft:master
from
Hotell:hotell/storybook/make-codesandbox-addon-pluggable
Oct 24, 2023
Merged
feat(react-storybook-addon-codesandbox): support various providers for "export to" functionality #29536
Hotell
merged 6 commits into
microsoft:master
from
Hotell:hotell/storybook/make-codesandbox-addon-pluggable
Oct 24, 2023
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…S and Stackblitz providers
…y for global SB Parameters extension
…irect API contract instead of living in global storybook config
Collaborator
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| FluentProviderWithTheme | virtual-rerender-with-unmount | 75 | 78 | 10 | Possible regression |
All results
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 644 | 603 | 5000 | |
| Button | mount | 321 | 316 | 5000 | |
| Field | mount | 1121 | 1124 | 5000 | |
| FluentProvider | mount | 688 | 691 | 5000 | |
| FluentProviderWithTheme | mount | 78 | 75 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 61 | 65 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 75 | 78 | 10 | Possible regression |
| InfoButton | mount | 9 | 12 | 5000 | |
| MakeStyles | mount | 839 | 868 | 50000 | |
| Persona | mount | 1752 | 1722 | 5000 | |
| SpinButton | mount | 1396 | 1349 | 5000 |
|
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 354f22b:
|
Collaborator
Perf Analysis (
|
| Scenario | Current PR Ticks | Baseline Ticks | Ratio |
|---|---|---|---|
| FlexMinimalPerf.default | 153 | 140 | 1.09:1 |
| DropdownManyItemsPerf.default | 408 | 377 | 1.08:1 |
| AvatarMinimalPerf.default | 108 | 101 | 1.07:1 |
| ButtonMinimalPerf.default | 91 | 85 | 1.07:1 |
| AttachmentMinimalPerf.default | 86 | 81 | 1.06:1 |
| ChatMinimalPerf.default | 437 | 414 | 1.06:1 |
| HeaderSlotsPerf.default | 466 | 439 | 1.06:1 |
| ImageMinimalPerf.default | 221 | 209 | 1.06:1 |
| LayoutMinimalPerf.default | 200 | 190 | 1.05:1 |
| SplitButtonMinimalPerf.default | 2274 | 2167 | 1.05:1 |
| IconMinimalPerf.default | 386 | 367 | 1.05:1 |
| TextAreaMinimalPerf.default | 291 | 276 | 1.05:1 |
| ListCommonPerf.default | 385 | 370 | 1.04:1 |
| ListMinimalPerf.default | 317 | 306 | 1.04:1 |
| PortalMinimalPerf.default | 87 | 84 | 1.04:1 |
| VideoMinimalPerf.default | 435 | 417 | 1.04:1 |
| AlertMinimalPerf.default | 153 | 149 | 1.03:1 |
| EmbedMinimalPerf.default | 1870 | 1820 | 1.03:1 |
| ListNestedPerf.default | 325 | 315 | 1.03:1 |
| RosterPerf.default | 1585 | 1543 | 1.03:1 |
| ReactionMinimalPerf.default | 215 | 208 | 1.03:1 |
| TreeMinimalPerf.default | 478 | 466 | 1.03:1 |
| BoxMinimalPerf.default | 190 | 186 | 1.02:1 |
| CarouselMinimalPerf.default | 266 | 261 | 1.02:1 |
| HeaderMinimalPerf.default | 206 | 201 | 1.02:1 |
| MenuButtonMinimalPerf.default | 948 | 932 | 1.02:1 |
| RefMinimalPerf.default | 107 | 105 | 1.02:1 |
| AnimationMinimalPerf.default | 301 | 297 | 1.01:1 |
| ChatDuplicateMessagesPerf.default | 145 | 143 | 1.01:1 |
| DatepickerMinimalPerf.default | 3502 | 3466 | 1.01:1 |
| DialogMinimalPerf.default | 437 | 434 | 1.01:1 |
| FormMinimalPerf.default | 224 | 222 | 1.01:1 |
| InputMinimalPerf.default | 528 | 521 | 1.01:1 |
| ItemLayoutMinimalPerf.default | 702 | 693 | 1.01:1 |
| PopupMinimalPerf.default | 345 | 341 | 1.01:1 |
| ProviderMergeThemesPerf.default | 635 | 631 | 1.01:1 |
| TableMinimalPerf.default | 232 | 230 | 1.01:1 |
| CustomToolbarPrototype.default | 1472 | 1452 | 1.01:1 |
| ButtonOverridesMissPerf.default | 633 | 635 | 1:1 |
| CheckboxMinimalPerf.default | 1116 | 1117 | 1:1 |
| RadioGroupMinimalPerf.default | 250 | 251 | 1:1 |
| SliderMinimalPerf.default | 726 | 729 | 1:1 |
| TableManyItemsPerf.default | 1084 | 1079 | 1:1 |
| AttachmentSlotsPerf.default | 627 | 635 | 0.99:1 |
| DropdownMinimalPerf.default | 1387 | 1399 | 0.99:1 |
| GridMinimalPerf.default | 184 | 185 | 0.99:1 |
| SegmentMinimalPerf.default | 196 | 197 | 0.99:1 |
| TextMinimalPerf.default | 189 | 191 | 0.99:1 |
| ToolbarMinimalPerf.default | 523 | 526 | 0.99:1 |
| AccordionMinimalPerf.default | 79 | 81 | 0.98:1 |
| CardMinimalPerf.default | 302 | 307 | 0.98:1 |
| TooltipMinimalPerf.default | 1236 | 1266 | 0.98:1 |
| LoaderMinimalPerf.default | 188 | 194 | 0.97:1 |
| SkeletonMinimalPerf.default | 191 | 196 | 0.97:1 |
| ChatWithPopoverPerf.default | 184 | 192 | 0.96:1 |
| LabelMinimalPerf.default | 213 | 222 | 0.96:1 |
| MenuMinimalPerf.default | 476 | 496 | 0.96:1 |
| ListWith60ListItems.default | 331 | 349 | 0.95:1 |
| ProviderMinimalPerf.default | 198 | 208 | 0.95:1 |
| StatusMinimalPerf.default | 379 | 401 | 0.95:1 |
| ButtonSlotsPerf.default | 310 | 331 | 0.94:1 |
| TreeWith60ListItems.default | 77 | 84 | 0.92:1 |
| DividerMinimalPerf.default | 192 | 210 | 0.91:1 |
Collaborator
🕵 fluentuiv8 No visual regressions between this PR and main |
Collaborator
🕵 FluentUIV0 No visual regressions between this PR and main |
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 566e507c8882f76d2848dbec7785a317fa9c9982 (build) |
Collaborator
🕵 fluentuiv9 No visual regressions between this PR and main |
Collaborator
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| BaseButton | mount | 625 | 618 | 5000 | |
| Breadcrumb | mount | 1657 | 1690 | 1000 | |
| Checkbox | mount | 1660 | 1695 | 5000 | |
| CheckboxBase | mount | 1484 | 1436 | 5000 | |
| ChoiceGroup | mount | 2941 | 2883 | 5000 | |
| ComboBox | mount | 648 | 663 | 1000 | |
| CommandBar | mount | 6179 | 6210 | 1000 | |
| ContextualMenu | mount | 13078 | 13402 | 1000 | |
| DefaultButton | mount | 751 | 745 | 5000 | |
| DetailsRow | mount | 2131 | 2159 | 5000 | |
| DetailsRowFast | mount | 2188 | 2175 | 5000 | |
| DetailsRowNoStyles | mount | 2005 | 1996 | 5000 | |
| Dialog | mount | 2774 | 2667 | 1000 | |
| DocumentCardTitle | mount | 223 | 237 | 1000 | |
| Dropdown | mount | 1979 | 1989 | 5000 | |
| FocusTrapZone | mount | 1116 | 1116 | 5000 | |
| FocusZone | mount | 1090 | 1064 | 5000 | |
| GroupedList | mount | 40985 | 41115 | 2 | |
| GroupedList | virtual-rerender | 19600 | 19699 | 2 | |
| GroupedList | virtual-rerender-with-unmount | 50449 | 50249 | 2 | |
| GroupedListV2 | mount | 225 | 227 | 2 | |
| GroupedListV2 | virtual-rerender | 211 | 207 | 2 | |
| GroupedListV2 | virtual-rerender-with-unmount | 235 | 227 | 2 | |
| IconButton | mount | 1070 | 1064 | 5000 | |
| Label | mount | 341 | 341 | 5000 | |
| Layer | mount | 2713 | 2710 | 5000 | |
| Link | mount | 388 | 386 | 5000 | |
| MenuButton | mount | 927 | 912 | 5000 | |
| MessageBar | mount | 21522 | 21450 | 5000 | |
| Nav | mount | 1911 | 1942 | 1000 | |
| OverflowSet | mount | 797 | 761 | 5000 | |
| Panel | mount | 1748 | 1753 | 1000 | |
| Persona | mount | 726 | 729 | 1000 | |
| Pivot | mount | 856 | 856 | 1000 | |
| PrimaryButton | mount | 833 | 843 | 5000 | |
| Rating | mount | 4515 | 4550 | 5000 | |
| SearchBox | mount | 917 | 926 | 5000 | |
| Shimmer | mount | 1828 | 1859 | 5000 | |
| Slider | mount | 1327 | 1324 | 5000 | |
| SpinButton | mount | 2796 | 2841 | 5000 | |
| Spinner | mount | 377 | 376 | 5000 | |
| SplitButton | mount | 1851 | 1774 | 5000 | |
| Stack | mount | 401 | 397 | 5000 | |
| StackWithIntrinsicChildren | mount | 866 | 875 | 5000 | |
| StackWithTextChildren | mount | 2634 | 2604 | 5000 | |
| SwatchColorPicker | mount | 5992 | 5978 | 5000 | |
| TagPicker | mount | 1431 | 1414 | 5000 | |
| Text | mount | 362 | 369 | 5000 | |
| TextField | mount | 925 | 913 | 5000 | |
| ThemeProvider | mount | 854 | 817 | 5000 | |
| ThemeProvider | virtual-rerender | 592 | 586 | 5000 | |
| ThemeProvider | virtual-rerender-with-unmount | 1262 | 1278 | 5000 | |
| Toggle | mount | 599 | 599 | 5000 | |
| buttonNative | mount | 190 | 189 | 5000 |
Collaborator
📊 Bundle size reportUnchanged fixtures
|
Hotell
commented
Oct 17, 2023
packages/react-components/react-storybook-addon-codesandbox/src/getDependencies.test.ts
Show resolved
Hide resolved
Hotell
commented
Oct 17, 2023
packages/react-components/react-storybook-addon-codesandbox/src/getDependencies.ts
Show resolved
Hide resolved
Hotell
commented
Oct 17, 2023
packages/react-components/react-storybook-addon-codesandbox/src/sandbox-factory.spec.ts
Show resolved
Hide resolved
Hotell
commented
Oct 17, 2023
packages/react-components/react-storybook-addon-codesandbox/src/sandbox-utils.ts
Show resolved
Hide resolved
tudorpopams
approved these changes
Oct 24, 2023
marcosmoura
added a commit
to marcosmoura/fluentui
that referenced
this pull request
Oct 24, 2023
* master: (48 commits) fix(react-drawer): regression with mountNode prop not available after refactoring (microsoft#29524) feat(react-storybook-addon-codesandbox): support various providers for "export to" functionality (microsoft#29536) feat(TimePicker-compat): call onTimeSelect on blur (microsoft#29597) feat: (breadcrumb) Removed appearance prop (microsoft#29554) chore(deps): bump fsevents from 1.2.9 to 1.2.13 (microsoft#29476) Adding comment in Hovercard that we support cumulative area chart currently (microsoft#29395) applying package updates applying package updates chore(vr-tests-react-components, perf-tests-app): Remove infobutton from vr-tests and perf test app (microsoft#29603) docs: Add guidance for modifying textarea's height. (microsoft#29601) fix(react-calendar-compat): Classnames removed and added to day cells need to be split instead of providing a string with spaces (microsoft#29611) [Part 2] Changes to onboard charting to fluent docsite (microsoft#29608) chore: bump jest to 29.7.0 (microsoft#29298) applying package updates feat(react-infolabel, react-components): Release InfoLabel to stable (microsoft#29585) feat(react-datepicker-compat): Update DatePicker to use react-calendar-compat (microsoft#29587) feat: adds motion to DialogSurface (microsoft#29391) fix: Use correct target windows for ResizeObserver (microsoft#29551) chg (microsoft#29592) Fix missing x callout custom callout (microsoft#29547) ...
1 task
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Previous Behavior
our custom react-addon supports only codesanbox-browser with CRA
New Behavior
Parameterstype extensionBreaking changes:
addon configuration
Demo showcase:
Follow-ups:
react-storybook-addon-export-to-sandboxRelated Issue(s)