Skip to content

Conversation

@TristanWatanabe
Copy link
Member

Current Behavior

New Behavior

  • Codesandbox now account for newly migrated v9 packages and codesandbox exports work again while still maintaining support for unmigrated packages.

Related Issue(s)

Fixes #25350

@TristanWatanabe TristanWatanabe self-assigned this Oct 26, 2022
@TristanWatanabe TristanWatanabe marked this pull request as ready for review October 26, 2022 18:06
@TristanWatanabe TristanWatanabe requested a review from a team as a code owner October 26, 2022 18:06
@size-auditor
Copy link

size-auditor bot commented Oct 26, 2022

Asset size changes

Size Auditor did not detect a change in bundle size for any component!

Baseline commit: 32865fdfad96c52b75ffdce36120e30940871229 (build)

@codesandbox-ci
Copy link

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 eadcae8:

Sandbox Source
@fluentui/react 8 starter Configuration
@fluentui/react-components 9 starter Configuration

@fabricteam
Copy link
Collaborator

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1280 1286 5000
Button mount 926 913 5000
FluentProvider mount 1488 1472 5000
FluentProviderWithTheme mount 577 575 10
FluentProviderWithTheme virtual-rerender 544 552 10
FluentProviderWithTheme virtual-rerender-with-unmount 574 578 10
MakeStyles mount 1966 1989 50000
SpinButton mount 2337 2386 5000

@fabricteam
Copy link
Collaborator

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
global-context
createContext
533 B
341 B
global-context
createContextSelector
554 B
348 B
priority-overflow
createOverflowManager
3.153 kB
1.299 kB
react-accordion
Accordion (including children components)
79.243 kB
24.436 kB
react-alert
Alert
84.688 kB
21.233 kB
react-avatar
Avatar
48.874 kB
13.864 kB
react-avatar
AvatarGroup
14.996 kB
6.013 kB
react-avatar
AvatarGroupItem
68.842 kB
19.205 kB
react-badge
Badge
22.646 kB
7.228 kB
react-badge
CounterBadge
23.536 kB
7.512 kB
react-badge
PresenceBadge
24.096 kB
7.09 kB
react-button
Button
36.849 kB
9.907 kB
react-button
CompoundButton
43.874 kB
11.123 kB
react-button
MenuButton
39.543 kB
10.807 kB
react-button
SplitButton
46.989 kB
12.192 kB
react-button
ToggleButton
52.716 kB
11.381 kB
react-card
Card - All
67.664 kB
19.635 kB
react-card
Card
63.346 kB
18.539 kB
react-card
CardFooter
8.607 kB
3.622 kB
react-card
CardHeader
9.65 kB
3.962 kB
react-card
CardPreview
8.708 kB
3.678 kB
react-combobox
Combobox (including child components)
75.85 kB
24.632 kB
react-combobox
Dropdown (including child components)
75.579 kB
24.594 kB
react-components
react-components: Button, FluentProvider & webLightTheme
62.94 kB
17.663 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
189.603 kB
52.909 kB
react-components
react-components: FluentProvider & webLightTheme
33.446 kB
11.033 kB
react-dialog
Dialog (including children components)
83.147 kB
24.799 kB
react-divider
Divider
16.505 kB
5.925 kB
react-image
Image
10.826 kB
4.286 kB
react-infobutton
InfoButton
7.742 kB
3.265 kB
react-input
Input
24.428 kB
7.899 kB
react-label
Label
9.384 kB
3.883 kB
react-link
Link
11.852 kB
4.888 kB
react-menu
Menu (including children components)
116.78 kB
36.112 kB
react-menu
Menu (including selectable components)
119.849 kB
36.635 kB
react-overflow
hooks only
11.004 kB
4.188 kB
react-persona
Persona
53.992 kB
15.25 kB
react-popover
Popover
103.342 kB
31.82 kB
react-portal
Portal
10.628 kB
3.899 kB
react-portal-compat
PortalCompatProvider
5.857 kB
1.978 kB
react-positioning
usePositioning
19.724 kB
7.415 kB
react-progress
Progress
13.131 kB
5.039 kB
react-provider
FluentProvider
15.807 kB
5.909 kB
react-radio
Radio
36.436 kB
12.126 kB
react-radio
RadioGroup
14.294 kB
5.723 kB
react-select
Select
21.61 kB
7.568 kB
react-slider
Slider
31.805 kB
10.085 kB
react-spinbutton
SpinButton
45.826 kB
12.858 kB
react-spinner
Spinner
20.023 kB
6.461 kB
react-switch
Switch
33.388 kB
10.578 kB
react-text
Text - Default
11.828 kB
4.627 kB
react-text
Text - Wrappers
15.138 kB
5.064 kB
react-textarea
Textarea
25.687 kB
8.331 kB
react-theme
Single theme token import
69 B
89 B
react-theme
Teams: all themes
29.65 kB
6.444 kB
react-theme
Teams: Light theme
17.486 kB
5.057 kB
react-tooltip
Tooltip
41.718 kB
14.687 kB
react-utilities
SSRProvider
180 B
159 B
🤖 This report was generated against 32865fdfad96c52b75ffdce36120e30940871229

@fabricteam
Copy link
Collaborator

Perf Analysis (@fluentui/react-northstar)

Perf tests with no regressions
Scenario Current PR Ticks Baseline Ticks Ratio
AccordionMinimalPerf.default 124 110 1.13:1
AttachmentMinimalPerf.default 136 123 1.11:1
FlexMinimalPerf.default 267 246 1.09:1
ButtonMinimalPerf.default 144 134 1.07:1
RefMinimalPerf.default 192 183 1.05:1
SegmentMinimalPerf.default 314 298 1.05:1
RadioGroupMinimalPerf.default 400 386 1.04:1
AnimationMinimalPerf.default 488 473 1.03:1
ChatWithPopoverPerf.default 294 285 1.03:1
HeaderMinimalPerf.default 318 310 1.03:1
HeaderSlotsPerf.default 690 670 1.03:1
PortalMinimalPerf.default 146 142 1.03:1
ProviderMinimalPerf.default 320 312 1.03:1
BoxMinimalPerf.default 308 303 1.02:1
ButtonSlotsPerf.default 424 416 1.02:1
ChatDuplicateMessagesPerf.default 214 209 1.02:1
FormMinimalPerf.default 334 327 1.02:1
GridMinimalPerf.default 299 293 1.02:1
ListCommonPerf.default 520 510 1.02:1
ListNestedPerf.default 468 459 1.02:1
RosterPerf.default 1730 1699 1.02:1
AttachmentSlotsPerf.default 861 852 1.01:1
ButtonOverridesMissPerf.default 1034 1019 1.01:1
CarouselMinimalPerf.default 358 355 1.01:1
EmbedMinimalPerf.default 2660 2645 1.01:1
ImageMinimalPerf.default 336 333 1.01:1
ItemLayoutMinimalPerf.default 975 969 1.01:1
LabelMinimalPerf.default 341 339 1.01:1
ListMinimalPerf.default 462 457 1.01:1
MenuMinimalPerf.default 729 725 1.01:1
SkeletonMinimalPerf.default 303 300 1.01:1
SliderMinimalPerf.default 1235 1218 1.01:1
StatusMinimalPerf.default 607 603 1.01:1
TextMinimalPerf.default 304 300 1.01:1
TextAreaMinimalPerf.default 406 401 1.01:1
ToolbarMinimalPerf.default 793 783 1.01:1
AlertMinimalPerf.default 223 223 1:1
ChatMinimalPerf.default 643 642 1:1
CheckboxMinimalPerf.default 1530 1534 1:1
DialogMinimalPerf.default 681 683 1:1
DividerMinimalPerf.default 310 311 1:1
InputMinimalPerf.default 845 842 1:1
MenuButtonMinimalPerf.default 1373 1367 1:1
PopupMinimalPerf.default 558 558 1:1
ReactionMinimalPerf.default 325 324 1:1
SplitButtonMinimalPerf.default 3282 3269 1:1
TableManyItemsPerf.default 1578 1574 1:1
TableMinimalPerf.default 350 351 1:1
CustomToolbarPrototype.default 2175 2173 1:1
TreeMinimalPerf.default 704 701 1:1
CardMinimalPerf.default 463 467 0.99:1
DropdownMinimalPerf.default 2174 2188 0.99:1
LayoutMinimalPerf.default 317 319 0.99:1
LoaderMinimalPerf.default 518 521 0.99:1
ProviderMergeThemesPerf.default 982 996 0.99:1
TreeWith60ListItems.default 122 123 0.99:1
DatepickerMinimalPerf.default 4580 4652 0.98:1
ListWith60ListItems.default 490 498 0.98:1
IconMinimalPerf.default 552 564 0.98:1
DropdownManyItemsPerf.default 529 544 0.97:1
TooltipMinimalPerf.default 1854 1913 0.97:1
AvatarMinimalPerf.default 158 165 0.96:1
VideoMinimalPerf.default 611 653 0.94:1

@fabricteam
Copy link
Collaborator

Perf Analysis (@fluentui/react)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
BaseButton mount 1436 1420 5000
Breadcrumb mount 3484 3503 1000
Checkbox mount 3207 3183 5000
CheckboxBase mount 2807 2828 5000
ChoiceGroup mount 5200 5344 5000
ComboBox mount 1495 1540 1000
CommandBar mount 11351 11406 1000
ContextualMenu mount 13103 12969 1000
DefaultButton mount 1643 1665 5000
DetailsRow mount 4427 4316 5000
DetailsRowFast mount 4353 4328 5000
DetailsRowNoStyles mount 4148 4085 5000
Dialog mount 3699 3749 1000
DocumentCardTitle mount 706 697 1000
Dropdown mount 3863 3833 5000
FocusTrapZone mount 2428 2441 5000
FocusZone mount 2347 2371 5000
GroupedList mount 62251 70353 2
GroupedList virtual-rerender 29894 29993 2
GroupedList virtual-rerender-with-unmount 108714 108980 2
GroupedListV2 mount 658 659 2
GroupedListV2 virtual-rerender 656 658 2
GroupedListV2 virtual-rerender-with-unmount 663 678 2
IconButton mount 2327 2307 5000
Label mount 870 904 5000
Layer mount 5089 5130 5000
Link mount 997 1037 5000
MenuButton mount 2033 1998 5000
MessageBar mount 2996 2766 5000
Nav mount 3984 3910 1000
OverflowSet mount 1627 1591 5000
Panel mount 2988 3020 1000
Persona mount 1531 1561 1000
Pivot mount 1977 1949 1000
PrimaryButton mount 1866 1824 5000
Rating mount 8486 8525 5000
SearchBox mount 1818 1822 5000
Shimmer mount 3446 3454 5000
Slider mount 2516 2555 5000
SpinButton mount 5699 5497 5000
Spinner mount 947 992 5000
SplitButton mount 3711 3771 5000
Stack mount 962 1008 5000
StackWithIntrinsicChildren mount 2836 2806 5000
StackWithTextChildren mount 5769 5805 5000
SwatchColorPicker mount 12465 12449 5000
TagPicker mount 3146 3170 5000
TeachingBubble mount 99244 97680 5000
Text mount 969 957 5000
TextField mount 1889 1928 5000
ThemeProvider mount 1812 1819 5000
ThemeProvider virtual-rerender 1272 1288 5000
ThemeProvider virtual-rerender-with-unmount 2575 2645 5000
Toggle mount 1332 1311 5000
buttonNative mount 647 676 5000

@TristanWatanabe TristanWatanabe merged commit 6719019 into microsoft:master Oct 26, 2022
@TristanWatanabe TristanWatanabe deleted the fix-codesandbox-export branch October 26, 2022 19:39
sunilsurana added a commit to sunilsurana/fluentuifork1 that referenced this pull request Oct 27, 2022
* Update Link.stories.tsx

* Update Link.stories.tsx

* update

* chore(babel-preset-global-context): migrate to new package structure (microsoft#25340)

* chore(react-aria): migrate to new package structure (microsoft#25199)

* feat: re-export react-table logic hooks (microsoft#25386)

* applying package updates

* Website: fix focus border on UHF footer links (microsoft#25389)

* use not uhf link to increase specificity instead of body tag

* improve comment

* fix(docsite): codesandbox exports now working properly for newly migrated v9 packages (microsoft#25388)

* chore(react-divider): migrate to new package structure (microsoft#25360)

* chore(react-select): migrate to new package structure (microsoft#25359)

* feat: Add support for the wbtx whiteboard file extension (microsoft#25346)

* revert some changes

* update storywright version

* rename

* rename

* updatE

* update

* update

* update

* update

* not needed

* update

* update

Co-authored-by: Tristan Watanabe <[email protected]>
Co-authored-by: Bernardo Sunderhus <[email protected]>
Co-authored-by: Fluent UI Build <[email protected]>
Co-authored-by: Micah Godbolt <[email protected]>
Co-authored-by: jieleiwang <[email protected]>
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Oct 27, 2022
* master: (21 commits)
  fix(react-tabster): make acceptCondition optional as Tabster dont require it (microsoft#25416)
  chore: adds disableButtonEnhancement on triggers (microsoft#25211)
  applying package updates
  feat: Add support for the wbtx whiteboard file extension (microsoft#25346)
  chore(react-select): migrate to new package structure (microsoft#25359)
  chore(react-divider): migrate to new package structure (microsoft#25360)
  fix(docsite): codesandbox exports now working properly for newly migrated v9 packages (microsoft#25388)
  Website: fix focus border on UHF footer links (microsoft#25389)
  applying package updates
  feat: re-export react-table logic hooks (microsoft#25386)
  chore(react-aria): migrate to new package structure (microsoft#25199)
  chore(babel-preset-global-context): migrate to new package structure (microsoft#25340)
  applying package updates
  fix: Improve Stack's style recalculation performance by selectively applying children selectors (microsoft#25381)
  applying package updates
  fix(projects-test): explicitly install next version 12 to fix CI (microsoft#25374)
  allow details element to be toggled inside selection and focus zones (microsoft#25324)
  fix(react-persona): Changing persona's versions to pinned versions (microsoft#25367)
  update fast element and foundation package versions stable (microsoft#25364)
  chore(keyboard-keys, priority-overflow, react-context-selector, react-conformance-griffel): migrate to new package structure (microsoft#25362)
  ...
NotWoods pushed a commit to NotWoods/fluentui that referenced this pull request Nov 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New folder structure of packages breaks codesandbox export in docsite

5 participants