Skip to content
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: remove react-avatar-context package #27709

Merged
merged 2 commits into from
Apr 27, 2023

Conversation

YuanboXue-Amber
Copy link
Contributor

Remove @fluentui/react-avatar-context. This was created for #24790. But we moved the avatar context to @fluentui/react-avatar. Therefore this package can be removed.

@codesandbox-ci
Copy link

codesandbox-ci bot commented Apr 27, 2023

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

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

@size-auditor
Copy link

size-auditor bot commented Apr 27, 2023

Asset size changes

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

Baseline commit: 3c57318b3fb834ae7c541a64d3de4da05cd04750 (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Apr 27, 2023

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 831 830 5000
Button mount 431 501 5000
Field mount 1542 1496 5000
FluentProvider mount 1117 1154 5000
FluentProviderWithTheme mount 139 134 10
FluentProviderWithTheme virtual-rerender 107 113 10
FluentProviderWithTheme virtual-rerender-with-unmount 127 125 10
InfoButton mount 19 23 5000
MakeStyles mount 1331 1354 50000
Persona mount 2392 2432 5000
SpinButton mount 1853 2014 5000

@fabricteam
Copy link
Collaborator

fabricteam commented Apr 27, 2023

Perf Analysis (@fluentui/react-northstar)

Perf tests with no regressions
Scenario Current PR Ticks Baseline Ticks Ratio
TextMinimalPerf.default 323 296 1.09:1
VideoMinimalPerf.default 645 590 1.09:1
AccordionMinimalPerf.default 129 119 1.08:1
CardMinimalPerf.default 477 442 1.08:1
SkeletonMinimalPerf.default 330 310 1.06:1
IconMinimalPerf.default 579 548 1.06:1
ButtonSlotsPerf.default 520 496 1.05:1
AlertMinimalPerf.default 233 225 1.04:1
AttachmentSlotsPerf.default 1032 990 1.04:1
BoxMinimalPerf.default 303 291 1.04:1
DropdownMinimalPerf.default 2267 2171 1.04:1
PopupMinimalPerf.default 557 537 1.04:1
DatepickerMinimalPerf.default 5628 5450 1.03:1
HeaderSlotsPerf.default 687 668 1.03:1
ListNestedPerf.default 483 471 1.03:1
SegmentMinimalPerf.default 304 295 1.03:1
ToolbarMinimalPerf.default 814 793 1.03:1
HeaderMinimalPerf.default 334 327 1.02:1
LoaderMinimalPerf.default 296 291 1.02:1
ProviderMinimalPerf.default 329 322 1.02:1
StatusMinimalPerf.default 620 607 1.02:1
CheckboxMinimalPerf.default 1886 1874 1.01:1
ItemLayoutMinimalPerf.default 1082 1075 1.01:1
MenuMinimalPerf.default 779 775 1.01:1
TreeMinimalPerf.default 728 718 1.01:1
ChatDuplicateMessagesPerf.default 224 225 1:1
DropdownManyItemsPerf.default 593 591 1:1
EmbedMinimalPerf.default 2887 2880 1:1
FlexMinimalPerf.default 249 249 1:1
ChatWithPopoverPerf.default 299 302 0.99:1
FormMinimalPerf.default 308 312 0.99:1
ImageMinimalPerf.default 354 356 0.99:1
ListCommonPerf.default 581 589 0.99:1
ProviderMergeThemesPerf.default 1141 1148 0.99:1
TableManyItemsPerf.default 1726 1741 0.99:1
ButtonMinimalPerf.default 129 131 0.98:1
ChatMinimalPerf.default 637 651 0.98:1
GridMinimalPerf.default 291 297 0.98:1
InputMinimalPerf.default 862 881 0.98:1
MenuButtonMinimalPerf.default 1489 1520 0.98:1
PortalMinimalPerf.default 141 144 0.98:1
RefMinimalPerf.default 166 169 0.98:1
SliderMinimalPerf.default 1076 1098 0.98:1
SplitButtonMinimalPerf.default 3585 3644 0.98:1
CustomToolbarPrototype.default 2341 2382 0.98:1
TooltipMinimalPerf.default 1975 2008 0.98:1
AnimationMinimalPerf.default 439 452 0.97:1
AttachmentMinimalPerf.default 113 116 0.97:1
LabelMinimalPerf.default 326 335 0.97:1
ListMinimalPerf.default 459 473 0.97:1
RosterPerf.default 2215 2287 0.97:1
TextAreaMinimalPerf.default 406 417 0.97:1
DialogMinimalPerf.default 681 707 0.96:1
LayoutMinimalPerf.default 306 318 0.96:1
AvatarMinimalPerf.default 167 178 0.94:1
TableMinimalPerf.default 360 381 0.94:1
DividerMinimalPerf.default 308 331 0.93:1
RadioGroupMinimalPerf.default 394 425 0.93:1
ReactionMinimalPerf.default 318 341 0.93:1
ButtonOverridesMissPerf.default 991 1075 0.92:1
ListWith60ListItems.default 545 591 0.92:1
CarouselMinimalPerf.default 400 438 0.91:1
TreeWith60ListItems.default 120 144 0.83:1

@fabricteam
Copy link
Collaborator

fabricteam commented Apr 27, 2023

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
global-context
createContext
533 B
341 B
global-context
createContextSelector
560 B
352 B
priority-overflow
createOverflowManager
3.194 kB
1.314 kB
react-accordion
Accordion (including children components)
86.012 kB
26.086 kB
react-alert
Alert
93.779 kB
22.493 kB
react-avatar
Avatar
57.544 kB
14.966 kB
react-avatar
AvatarGroup
15.632 kB
6.258 kB
react-avatar
AvatarGroupItem
73.758 kB
19.478 kB
react-badge
Badge
23.512 kB
7.197 kB
react-badge
CounterBadge
24.416 kB
7.506 kB
react-badge
PresenceBadge
31.904 kB
8.296 kB
react-button
Button
37.179 kB
9.534 kB
react-button
CompoundButton
44.328 kB
11.016 kB
react-button
MenuButton
41.866 kB
10.861 kB
react-button
SplitButton
50.254 kB
12.441 kB
react-button
ToggleButton
55.397 kB
11.435 kB
react-card
Card - All
86.061 kB
24.345 kB
react-card
Card
80.997 kB
22.895 kB
react-card
CardFooter
9.158 kB
3.844 kB
react-card
CardHeader
11.048 kB
4.538 kB
react-card
CardPreview
9.963 kB
4.192 kB
react-checkbox
Checkbox
34.216 kB
10.784 kB
react-combobox
Combobox (including child components)
87.199 kB
28.095 kB
react-combobox
Dropdown (including child components)
85.583 kB
27.692 kB
react-components
react-components: Button, FluentProvider & webLightTheme
65.31 kB
17.931 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
204.34 kB
57.141 kB
react-components
react-components: FluentProvider & webLightTheme
36.086 kB
11.9 kB
react-datepicker-compat
DatePicker Compat
220.251 kB
58.471 kB
react-dialog
Dialog (including children components)
90.867 kB
27.047 kB
react-divider
Divider
17.399 kB
6.298 kB
react-field
Field
18.864 kB
7.004 kB
react-image
Image
11.479 kB
4.573 kB
react-infobutton
InfoButton
127.925 kB
39.003 kB
react-infobutton
InfoLabel
131.208 kB
39.996 kB
react-input
Input
23.972 kB
7.676 kB
react-label
Label
10.104 kB
4.185 kB
react-link
Link
12.357 kB
5.091 kB
react-menu
Menu (including children components)
128.202 kB
39.18 kB
react-menu
Menu (including selectable components)
131.186 kB
39.696 kB
react-overflow
hooks only
11.214 kB
4.271 kB
react-persona
Persona
64.465 kB
16.892 kB
react-popover
Popover
114.917 kB
35.388 kB
react-portal
Portal
11.649 kB
4.262 kB
react-portal-compat
PortalCompatProvider
6.446 kB
2.186 kB
react-positioning
usePositioning
24.008 kB
8.798 kB
react-progress
ProgressBar
13.856 kB
5.434 kB
react-provider
FluentProvider
18.033 kB
6.666 kB
react-radio
Radio
27.282 kB
8.661 kB
react-radio
RadioGroup
11.312 kB
4.71 kB
react-select
Select
25.357 kB
8.798 kB
react-slider
Slider
34.112 kB
11.018 kB
react-spinbutton
SpinButton
33.882 kB
10.325 kB
react-spinner
Spinner
20.882 kB
6.798 kB
react-switch
Switch
29.806 kB
9.274 kB
react-table
DataGrid
147.659 kB
40.567 kB
react-table
Table (Primitives only)
44.348 kB
12.347 kB
react-table
Table as DataGrid
130.218 kB
33.128 kB
react-table
Table (Selection only)
78.132 kB
19.127 kB
react-table
Table (Sort only)
77.462 kB
18.939 kB
react-text
Text - Default
12.492 kB
4.92 kB
react-text
Text - Wrappers
15.63 kB
5.25 kB
react-textarea
Textarea
27.399 kB
9.041 kB
react-theme
Single theme token import
69 B
89 B
react-theme
Teams: all themes
31.33 kB
6.764 kB
react-theme
Teams: Light theme
17.895 kB
5.162 kB
react-tooltip
Tooltip
46.656 kB
16.369 kB
react-utilities
SSRProvider
180 B
159 B
🤖 This report was generated against 3c57318b3fb834ae7c541a64d3de4da05cd04750

@fabricteam
Copy link
Collaborator

fabricteam commented Apr 27, 2023

🕵 FluentUI-v0 No visual regressions between this PR and main

@fabricteam
Copy link
Collaborator

fabricteam commented Apr 27, 2023

🕵 fluentuiv9 No visual regressions between this PR and main

@fabricteam
Copy link
Collaborator

fabricteam commented Apr 27, 2023

Perf Analysis (@fluentui/react)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
BaseButton mount 812 797 5000
Breadcrumb mount 2208 2187 1000
Checkbox mount 2144 2141 5000
CheckboxBase mount 1874 1880 5000
ChoiceGroup mount 3681 3748 5000
ComboBox mount 886 876 1000
CommandBar mount 7965 7981 1000
ContextualMenu mount 16023 15730 1000
DefaultButton mount 975 972 5000
DetailsRow mount 2894 2887 5000
DetailsRowFast mount 2910 2892 5000
DetailsRowNoStyles mount 2633 2686 5000
Dialog mount 3432 3397 1000
DocumentCardTitle mount 314 323 1000
Dropdown mount 2568 2560 5000
FocusTrapZone mount 1533 1493 5000
FocusZone mount 1478 1453 5000
GroupedList mount 49174 57108 2
GroupedList virtual-rerender 23777 23929 2
GroupedList virtual-rerender-with-unmount 73631 73381 2
GroupedListV2 mount 313 323 2
GroupedListV2 virtual-rerender 297 291 2
GroupedListV2 virtual-rerender-with-unmount 316 319 2
IconButton mount 1381 1439 5000
Label mount 456 457 5000
Layer mount 3567 3625 5000
Link mount 524 522 5000
MenuButton mount 1245 1228 5000
MessageBar mount 28084 27934 5000
Nav mount 2520 2551 1000
OverflowSet mount 1025 1023 5000
Panel mount 2241 2269 1000
Persona mount 986 944 1000
Pivot mount 1172 1165 1000
PrimaryButton mount 1101 1101 5000
Rating mount 5754 5735 5000
SearchBox mount 1131 1145 5000
Shimmer mount 2309 2319 5000
Slider mount 1707 1709 5000
SpinButton mount 3724 3711 5000
Spinner mount 513 516 5000
SplitButton mount 2419 2445 5000
Stack mount 533 526 5000
StackWithIntrinsicChildren mount 1136 1139 5000
StackWithTextChildren mount 3249 3230 5000
SwatchColorPicker mount 8128 8053 5000
TagPicker mount 1979 1974 5000
Text mount 488 498 5000
TextField mount 1196 1214 5000
ThemeProvider mount 1135 1139 5000
ThemeProvider virtual-rerender 765 776 5000
ThemeProvider virtual-rerender-with-unmount 1721 1731 5000
Toggle mount 789 794 5000
buttonNative mount 277 275 5000

@ling1726 ling1726 merged commit d5045c4 into microsoft:master Apr 27, 2023
@YuanboXue-Amber YuanboXue-Amber deleted the cleanup-avatar-context branch April 27, 2023 12:05
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Apr 27, 2023
* master:
  chore: enforce files naming to use .styles.ts [cxe-prg files] (microsoft#27707)
  chore: migrate to NodeJS v16 (microsoft#27711)
  remove react-avatar-context package (microsoft#27709)
  test: migrate all v9 libraries to use new conformance setup which improves test execution by approx 46% (microsoft#27669)
  chore: Add caret to react-datepicker-compat dependencies (microsoft#27671)
  test(fluentui/react): fix initial global leaks that were causing OOM issues (microsoft#27661)
  chore(react-utilities): simplifies useControllableState hook internals (microsoft#27702)
  chore: enforce files naming to use .styles.ts (microsoft#27698)
  feat: adds lazy loading example (microsoft#27587)
  feat: react-combobox space conditionally inserts character when freeform is true (microsoft#27025)
  chore(react-tree): updates useOpenItemsState internals (microsoft#27697)
  feat(tools): add conformance setup migration to migrate-converged-pkg generator (microsoft#27668)
  test: use `isolatedModules` for all ts-jest configs to lower memory footprint on CI (microsoft#27670)
  chore: bump @griffel/eslint-plugin & enable @griffel/hook-naming (microsoft#27687)
  feat(react-tree): makes useFlatTree generic (microsoft#27682)
  Enable export to codepen for charting library (microsoft#27539)
  Overflow: added useOverflowCount to exports (microsoft#27678)
  fix: Menu should not steal focus on re-render (microsoft#27688)
  feat(react-conformance): add new TS config api to be able to specify configName and configDir (microsoft#27664)
marcosmoura added a commit to marcosmoura/fluentui that referenced this pull request Apr 27, 2023
* feat/drawer-components: (28 commits)
  docs: update API
  feat: add style overrides for upcoming drawer components
  feat: add support to override drawer styles
  fix: prevent elements from stretching
  chore: upgrade devcontainer node version to 16 (microsoft#27716)
  fix: rename styles file to use the newer naming conventions
  test: add cypress tests for scroll positions
  chore: enforce files naming to use .styles.ts [cxe-prg files] (microsoft#27707)
  feat: add support to override drawer body styles
  chore: migrate to NodeJS v16 (microsoft#27711)
  remove react-avatar-context package (microsoft#27709)
  test: migrate all v9 libraries to use new conformance setup which improves test execution by approx 46% (microsoft#27669)
  chore: Add caret to react-datepicker-compat dependencies (microsoft#27671)
  test(fluentui/react): fix initial global leaks that were causing OOM issues (microsoft#27661)
  chore(react-utilities): simplifies useControllableState hook internals (microsoft#27702)
  chore: enforce files naming to use .styles.ts (microsoft#27698)
  feat: adds lazy loading example (microsoft#27587)
  feat: react-combobox space conditionally inserts character when freeform is true (microsoft#27025)
  chore(react-tree): updates useOpenItemsState internals (microsoft#27697)
  feat(tools): add conformance setup migration to migrate-converged-pkg generator (microsoft#27668)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants