-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
chore: fix codesandbox export for preview component by making @fluentui/react-components required dependency #29016
Conversation
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 614 | 602 | 5000 | |
Button | mount | 315 | 302 | 5000 | |
Field | mount | 1101 | 1125 | 5000 | |
FluentProvider | mount | 687 | 713 | 5000 | |
FluentProviderWithTheme | mount | 83 | 80 | 10 | |
FluentProviderWithTheme | virtual-rerender | 69 | 75 | 10 | |
FluentProviderWithTheme | virtual-rerender-with-unmount | 66 | 75 | 10 | |
InfoButton | mount | 13 | 13 | 5000 | |
MakeStyles | mount | 876 | 855 | 50000 | |
Persona | mount | 1702 | 1673 | 5000 | |
SpinButton | mount | 1309 | 1370 | 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 71e7ffa:
|
🕵 fluentuiv8 No visual regressions between this PR and main |
Perf Analysis (
|
Scenario | Current PR Ticks | Baseline Ticks | Ratio | Regression Analysis |
---|---|---|---|---|
PortalMinimalPerf.default | 86 | 82 | 1.05:1 | analysis |
AccordionMinimalPerf.default | 87 | 87 | 1:1 | analysis |
Perf tests with no regressions
Scenario | Current PR Ticks | Baseline Ticks | Ratio |
---|---|---|---|
AnimationMinimalPerf.default | 302 | 285 | 1.06:1 |
ChatWithPopoverPerf.default | 206 | 194 | 1.06:1 |
ProviderMinimalPerf.default | 206 | 195 | 1.06:1 |
TreeMinimalPerf.default | 496 | 467 | 1.06:1 |
LayoutMinimalPerf.default | 204 | 194 | 1.05:1 |
AttachmentMinimalPerf.default | 85 | 82 | 1.04:1 |
CardMinimalPerf.default | 309 | 297 | 1.04:1 |
ChatDuplicateMessagesPerf.default | 150 | 144 | 1.04:1 |
DropdownManyItemsPerf.default | 400 | 384 | 1.04:1 |
GridMinimalPerf.default | 194 | 186 | 1.04:1 |
InputMinimalPerf.default | 545 | 525 | 1.04:1 |
ItemLayoutMinimalPerf.default | 724 | 693 | 1.04:1 |
SegmentMinimalPerf.default | 195 | 188 | 1.04:1 |
IconMinimalPerf.default | 388 | 373 | 1.04:1 |
TableManyItemsPerf.default | 1131 | 1088 | 1.04:1 |
AttachmentSlotsPerf.default | 663 | 641 | 1.03:1 |
DropdownMinimalPerf.default | 1452 | 1410 | 1.03:1 |
FlexMinimalPerf.default | 164 | 159 | 1.03:1 |
ImageMinimalPerf.default | 224 | 217 | 1.03:1 |
ListNestedPerf.default | 323 | 313 | 1.03:1 |
MenuMinimalPerf.default | 507 | 493 | 1.03:1 |
BoxMinimalPerf.default | 190 | 187 | 1.02:1 |
ButtonMinimalPerf.default | 89 | 87 | 1.02:1 |
ButtonSlotsPerf.default | 316 | 309 | 1.02:1 |
FormMinimalPerf.default | 226 | 222 | 1.02:1 |
ListCommonPerf.default | 386 | 380 | 1.02:1 |
SplitButtonMinimalPerf.default | 2276 | 2221 | 1.02:1 |
TextAreaMinimalPerf.default | 285 | 279 | 1.02:1 |
CheckboxMinimalPerf.default | 1141 | 1129 | 1.01:1 |
DatepickerMinimalPerf.default | 3615 | 3586 | 1.01:1 |
ListMinimalPerf.default | 313 | 309 | 1.01:1 |
RosterPerf.default | 1552 | 1544 | 1.01:1 |
ProviderMergeThemesPerf.default | 660 | 654 | 1.01:1 |
StatusMinimalPerf.default | 400 | 395 | 1.01:1 |
VideoMinimalPerf.default | 430 | 424 | 1.01:1 |
ButtonOverridesMissPerf.default | 659 | 658 | 1:1 |
ChatMinimalPerf.default | 435 | 436 | 1:1 |
EmbedMinimalPerf.default | 1871 | 1871 | 1:1 |
SkeletonMinimalPerf.default | 201 | 202 | 1:1 |
SliderMinimalPerf.default | 725 | 723 | 1:1 |
CustomToolbarPrototype.default | 1463 | 1456 | 1:1 |
CarouselMinimalPerf.default | 251 | 254 | 0.99:1 |
DividerMinimalPerf.default | 202 | 204 | 0.99:1 |
ReactionMinimalPerf.default | 204 | 207 | 0.99:1 |
HeaderMinimalPerf.default | 202 | 207 | 0.98:1 |
HeaderSlotsPerf.default | 460 | 469 | 0.98:1 |
PopupMinimalPerf.default | 345 | 352 | 0.98:1 |
ToolbarMinimalPerf.default | 521 | 531 | 0.98:1 |
TooltipMinimalPerf.default | 1239 | 1269 | 0.98:1 |
DialogMinimalPerf.default | 443 | 457 | 0.97:1 |
MenuButtonMinimalPerf.default | 945 | 977 | 0.97:1 |
AlertMinimalPerf.default | 154 | 161 | 0.96:1 |
AvatarMinimalPerf.default | 112 | 117 | 0.96:1 |
LabelMinimalPerf.default | 213 | 221 | 0.96:1 |
RadioGroupMinimalPerf.default | 245 | 254 | 0.96:1 |
ListWith60ListItems.default | 358 | 375 | 0.95:1 |
LoaderMinimalPerf.default | 182 | 194 | 0.94:1 |
RefMinimalPerf.default | 102 | 109 | 0.94:1 |
TreeWith60ListItems.default | 80 | 85 | 0.94:1 |
TextMinimalPerf.default | 186 | 200 | 0.93:1 |
TableMinimalPerf.default | 211 | 234 | 0.9:1 |
🕵 FluentUIV0 No visual regressions between this PR and main |
📊 Bundle size reportUnchanged fixtures
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 937bff2d22d6e9d5848a1c0be748006c684934a3 (build) |
🕵 fluentuiv9 No visual regressions between this PR and main |
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
BaseButton | mount | 648 | 629 | 5000 | |
Breadcrumb | mount | 1687 | 1680 | 1000 | |
Checkbox | mount | 1704 | 1702 | 5000 | |
CheckboxBase | mount | 1484 | 1463 | 5000 | |
ChoiceGroup | mount | 2926 | 2984 | 5000 | |
ComboBox | mount | 659 | 636 | 1000 | |
CommandBar | mount | 6189 | 6232 | 1000 | |
ContextualMenu | mount | 12576 | 12181 | 1000 | |
DefaultButton | mount | 744 | 768 | 5000 | |
DetailsRow | mount | 2176 | 2198 | 5000 | |
DetailsRowFast | mount | 2199 | 2210 | 5000 | |
DetailsRowNoStyles | mount | 2005 | 2002 | 5000 | |
Dialog | mount | 2770 | 2745 | 1000 | |
DocumentCardTitle | mount | 230 | 226 | 1000 | |
Dropdown | mount | 1985 | 1990 | 5000 | |
FocusTrapZone | mount | 1139 | 1115 | 5000 | |
FocusZone | mount | 1076 | 1064 | 5000 | |
GroupedList | mount | 37275 | 41618 | 2 | |
GroupedList | virtual-rerender | 19706 | 19866 | 2 | |
GroupedList | virtual-rerender-with-unmount | 50613 | 50344 | 2 | |
GroupedListV2 | mount | 223 | 222 | 2 | |
GroupedListV2 | virtual-rerender | 205 | 211 | 2 | |
GroupedListV2 | virtual-rerender-with-unmount | 225 | 223 | 2 | |
IconButton | mount | 1091 | 1070 | 5000 | |
Label | mount | 334 | 335 | 5000 | |
Layer | mount | 2744 | 2704 | 5000 | |
Link | mount | 384 | 391 | 5000 | |
MenuButton | mount | 952 | 967 | 5000 | |
MessageBar | mount | 21217 | 21248 | 5000 | |
Nav | mount | 1955 | 1956 | 1000 | |
OverflowSet | mount | 781 | 794 | 5000 | |
Panel | mount | 1790 | 1823 | 1000 | |
Persona | mount | 753 | 744 | 1000 | |
Pivot | mount | 859 | 892 | 1000 | |
PrimaryButton | mount | 849 | 857 | 5000 | |
Rating | mount | 4673 | 4615 | 5000 | |
SearchBox | mount | 946 | 909 | 5000 | |
Shimmer | mount | 1877 | 1863 | 5000 | |
Slider | mount | 1308 | 1331 | 5000 | |
SpinButton | mount | 2954 | 2922 | 5000 | |
Spinner | mount | 379 | 378 | 5000 | |
SplitButton | mount | 1844 | 1872 | 5000 | |
Stack | mount | 414 | 415 | 5000 | |
StackWithIntrinsicChildren | mount | 844 | 857 | 5000 | |
StackWithTextChildren | mount | 2584 | 2620 | 5000 | |
SwatchColorPicker | mount | 6089 | 6154 | 5000 | |
TagPicker | mount | 1442 | 1453 | 5000 | |
Text | mount | 378 | 367 | 5000 | |
TextField | mount | 906 | 945 | 5000 | |
ThemeProvider | mount | 832 | 848 | 5000 | |
ThemeProvider | virtual-rerender | 592 | 571 | 5000 | |
ThemeProvider | virtual-rerender-with-unmount | 1307 | 1286 | 5000 | |
Toggle | mount | 636 | 602 | 5000 | |
buttonNative | mount | 192 | 181 | 5000 |
* master: (32 commits) refactor(react-drawer): change DrawerHeaderTitle slot creation while keeping the same API (microsoft#29042) test(react-drawer): add render tests for drawer subcomponents (microsoft#29043) Grouped vertical bar chart - Component tests (microsoft#29031) docs: add Fluent UI Insights EP06 to README (microsoft#29051) chore: use swc-plugin-de-indent-template-literal for consoles (microsoft#29040) chore: adds swc-plugin-de-indent-template-literal (microsoft#29037) feat(react-jsx-runtime): v9 packages to use importSource (microsoft#28959) chore: update swc build dependencies (microsoft#28989) fix(react-tags-preview): add hover/pressed style for windows high contrast (microsoft#29035) chore(react-tags-preview): use InteractionTag for TagGroup's stories (microsoft#29024) chore(react-tags-preview): use makeResetStyles for base styles (microsoft#29022) chore: fix codesandbox export for preview component by making @fluentui/react-components required dependency (microsoft#29016) applying package updates feat(react-motion): create useReducedMotion and apply to useMotion to skip animations (microsoft#29014) ReAdd: Keytips: Align keytipData with visible instance for dupes (microsoft#28992) feat(react-drawer): add motion to Drawer (microsoft#28999) fix(react-utilities): avoid calling requestAnimationFrame when in SSR (microsoft#29015) fix(ssr-tests-v9): use correct path for ssr-tests-v9 stories (microsoft#29025) chore: updates devcontainer to use v16-bookworm image (microsoft#28997) feat(docsite): add Application Insights telemetry (microsoft#28709) ...
Currently the dependency for codesandbox is calculated by getDependencies. When a preview component's story does not contain any import from

@fluentui/react-components
, the exported codesandbox won't have@fluentui/react-components
in package.json, resulting in below error:(open any codesandbox from tag preview to see this error).
Since we always have fluent provider in the exported codesandbox, this PR moves
@fluentui/react-components
to required dependency.