-
Notifications
You must be signed in to change notification settings - Fork 2.9k
feat: use tabster restorer API #28530
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
Conversation
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 602 | 592 | 5000 | |
| Button | mount | 301 | 294 | 5000 | |
| Field | mount | 1078 | 1096 | 5000 | |
| FluentProvider | mount | 623 | 664 | 5000 | |
| FluentProviderWithTheme | mount | 74 | 71 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 63 | 66 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 75 | 69 | 10 | |
| InfoButton | mount | 15 | 17 | 5000 | |
| MakeStyles | mount | 862 | 867 | 50000 | |
| Persona | mount | 1675 | 1632 | 5000 | |
| SpinButton | mount | 1290 | 1339 | 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 e2b820b:
|
🕵 fluentuiv8 No visual regressions between this PR and main |
Perf Analysis (
|
| Scenario | Current PR Ticks | Baseline Ticks | Ratio |
|---|---|---|---|
| ButtonSlotsPerf.default | 313 | 290 | 1.08:1 |
| VideoMinimalPerf.default | 433 | 400 | 1.08:1 |
| ChatMinimalPerf.default | 451 | 422 | 1.07:1 |
| AttachmentMinimalPerf.default | 81 | 77 | 1.05:1 |
| ReactionMinimalPerf.default | 215 | 204 | 1.05:1 |
| PopupMinimalPerf.default | 355 | 340 | 1.04:1 |
| RefMinimalPerf.default | 116 | 112 | 1.04:1 |
| AttachmentSlotsPerf.default | 651 | 633 | 1.03:1 |
| AvatarMinimalPerf.default | 108 | 105 | 1.03:1 |
| ButtonMinimalPerf.default | 91 | 88 | 1.03:1 |
| FlexMinimalPerf.default | 158 | 153 | 1.03:1 |
| HeaderMinimalPerf.default | 209 | 202 | 1.03:1 |
| ListMinimalPerf.default | 311 | 303 | 1.03:1 |
| ListWith60ListItems.default | 378 | 366 | 1.03:1 |
| MenuMinimalPerf.default | 502 | 487 | 1.03:1 |
| TextMinimalPerf.default | 194 | 189 | 1.03:1 |
| ItemLayoutMinimalPerf.default | 713 | 698 | 1.02:1 |
| PortalMinimalPerf.default | 83 | 81 | 1.02:1 |
| ProviderMergeThemesPerf.default | 667 | 656 | 1.02:1 |
| ProviderMinimalPerf.default | 199 | 196 | 1.02:1 |
| SplitButtonMinimalPerf.default | 2241 | 2207 | 1.02:1 |
| StatusMinimalPerf.default | 404 | 398 | 1.02:1 |
| TreeMinimalPerf.default | 473 | 465 | 1.02:1 |
| AnimationMinimalPerf.default | 301 | 297 | 1.01:1 |
| DialogMinimalPerf.default | 440 | 435 | 1.01:1 |
| DividerMinimalPerf.default | 205 | 203 | 1.01:1 |
| DropdownManyItemsPerf.default | 380 | 376 | 1.01:1 |
| HeaderSlotsPerf.default | 458 | 453 | 1.01:1 |
| RadioGroupMinimalPerf.default | 265 | 262 | 1.01:1 |
| TableMinimalPerf.default | 231 | 228 | 1.01:1 |
| TextAreaMinimalPerf.default | 288 | 285 | 1.01:1 |
| CardMinimalPerf.default | 310 | 311 | 1:1 |
| CheckboxMinimalPerf.default | 1114 | 1116 | 1:1 |
| DropdownMinimalPerf.default | 1401 | 1402 | 1:1 |
| LayoutMinimalPerf.default | 202 | 201 | 1:1 |
| LoaderMinimalPerf.default | 197 | 197 | 1:1 |
| CustomToolbarPrototype.default | 1457 | 1451 | 1:1 |
| TooltipMinimalPerf.default | 1262 | 1264 | 1:1 |
| AccordionMinimalPerf.default | 82 | 83 | 0.99:1 |
| ChatDuplicateMessagesPerf.default | 149 | 151 | 0.99:1 |
| DatepickerMinimalPerf.default | 3568 | 3609 | 0.99:1 |
| ImageMinimalPerf.default | 225 | 228 | 0.99:1 |
| InputMinimalPerf.default | 528 | 531 | 0.99:1 |
| ListNestedPerf.default | 319 | 321 | 0.99:1 |
| MenuButtonMinimalPerf.default | 930 | 938 | 0.99:1 |
| RosterPerf.default | 1514 | 1533 | 0.99:1 |
| SkeletonMinimalPerf.default | 198 | 199 | 0.99:1 |
| SliderMinimalPerf.default | 751 | 756 | 0.99:1 |
| TableManyItemsPerf.default | 1102 | 1110 | 0.99:1 |
| ToolbarMinimalPerf.default | 528 | 533 | 0.99:1 |
| AlertMinimalPerf.default | 153 | 156 | 0.98:1 |
| ButtonOverridesMissPerf.default | 630 | 640 | 0.98:1 |
| EmbedMinimalPerf.default | 1810 | 1850 | 0.98:1 |
| FormMinimalPerf.default | 224 | 230 | 0.97:1 |
| IconMinimalPerf.default | 370 | 387 | 0.96:1 |
| LabelMinimalPerf.default | 215 | 226 | 0.95:1 |
| CarouselMinimalPerf.default | 251 | 267 | 0.94:1 |
| ListCommonPerf.default | 371 | 393 | 0.94:1 |
| GridMinimalPerf.default | 177 | 190 | 0.93:1 |
| ChatWithPopoverPerf.default | 174 | 191 | 0.91:1 |
| SegmentMinimalPerf.default | 182 | 199 | 0.91:1 |
| BoxMinimalPerf.default | 191 | 212 | 0.9:1 |
| TreeWith60ListItems.default | 75 | 86 | 0.87:1 |
📊 Bundle size reportUnchanged fixtures
|
🕵 fluentuiv9 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: aebf58a3a35a7453be8879c3b19668432e77a997 (build) |
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| BaseButton | mount | 614 | 614 | 5000 | |
| Breadcrumb | mount | 1667 | 1647 | 1000 | |
| Checkbox | mount | 1662 | 1689 | 5000 | |
| CheckboxBase | mount | 1476 | 1480 | 5000 | |
| ChoiceGroup | mount | 2952 | 2898 | 5000 | |
| ComboBox | mount | 652 | 666 | 1000 | |
| CommandBar | mount | 6152 | 6104 | 1000 | |
| ContextualMenu | mount | 13433 | 13022 | 1000 | |
| DefaultButton | mount | 763 | 733 | 5000 | |
| DetailsRow | mount | 2127 | 2157 | 5000 | |
| DetailsRowFast | mount | 2189 | 2119 | 5000 | |
| DetailsRowNoStyles | mount | 2007 | 1989 | 5000 | |
| Dialog | mount | 2636 | 2629 | 1000 | |
| DocumentCardTitle | mount | 224 | 225 | 1000 | |
| Dropdown | mount | 1965 | 1950 | 5000 | |
| FocusTrapZone | mount | 1121 | 1109 | 5000 | |
| FocusZone | mount | 1079 | 1052 | 5000 | |
| GroupedList | mount | 40727 | 40902 | 2 | |
| GroupedList | virtual-rerender | 19539 | 19794 | 2 | |
| GroupedList | virtual-rerender-with-unmount | 49911 | 50415 | 2 | |
| GroupedListV2 | mount | 235 | 225 | 2 | |
| GroupedListV2 | virtual-rerender | 208 | 210 | 2 | |
| GroupedListV2 | virtual-rerender-with-unmount | 221 | 219 | 2 | |
| IconButton | mount | 1059 | 1088 | 5000 | |
| Label | mount | 329 | 334 | 5000 | |
| Layer | mount | 2752 | 2720 | 5000 | |
| Link | mount | 393 | 391 | 5000 | |
| MenuButton | mount | 919 | 934 | 5000 | |
| MessageBar | mount | 21692 | 21597 | 5000 | |
| Nav | mount | 1922 | 1911 | 1000 | |
| OverflowSet | mount | 801 | 750 | 5000 | |
| Panel | mount | 1782 | 1743 | 1000 | |
| Persona | mount | 738 | 745 | 1000 | |
| Pivot | mount | 866 | 861 | 1000 | |
| PrimaryButton | mount | 838 | 848 | 5000 | |
| Rating | mount | 4571 | 4552 | 5000 | |
| SearchBox | mount | 909 | 932 | 5000 | |
| Shimmer | mount | 1872 | 1833 | 5000 | |
| Slider | mount | 1305 | 1324 | 5000 | |
| SpinButton | mount | 2832 | 2869 | 5000 | |
| Spinner | mount | 391 | 385 | 5000 | |
| SplitButton | mount | 1791 | 1781 | 5000 | |
| Stack | mount | 408 | 423 | 5000 | |
| StackWithIntrinsicChildren | mount | 879 | 854 | 5000 | |
| StackWithTextChildren | mount | 2571 | 2639 | 5000 | |
| SwatchColorPicker | mount | 6060 | 6107 | 5000 | |
| TagPicker | mount | 1412 | 1432 | 5000 | |
| Text | mount | 380 | 375 | 5000 | |
| TextField | mount | 917 | 926 | 5000 | |
| ThemeProvider | mount | 837 | 824 | 5000 | |
| ThemeProvider | virtual-rerender | 582 | 591 | 5000 | |
| ThemeProvider | virtual-rerender-with-unmount | 1223 | 1254 | 5000 | |
| Toggle | mount | 604 | 607 | 5000 | |
| buttonNative | mount | 189 | 193 | 5000 |
change/@fluentui-react-dialog-6ac1e0ff-b5c6-4471-836a-49470b24f8c3.json
Outdated
Show resolved
Hide resolved
packages/react-components/react-menu/stories/Menu/MenuNestedSubmenus.stories.tsx
Outdated
Show resolved
Hide resolved
packages/react-components/react-dialog/stories/Dialog/DialogTriggerOutsideDialog.stories.tsx
Outdated
Show resolved
Hide resolved
packages/react-components/react-menu/src/components/MenuTrigger/useMenuTrigger.styles.ts
Show resolved
Hide resolved
packages/react-components/react-dialog/stories/Dialog/DialogTriggerOutsideDialog.stories.tsx
Show resolved
Hide resolved
🕵 FluentUIV0 No visual regressions between this PR and main |
tudorpopams
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approving for v-build owned files.
Fixes regression from microsoft#28530 The `contextMenuProps` aren't really for just the context menu but common props for all menus fter the refactor in microsoft#25044. We should probably revisit the menu trigger code and clean it up but this fix is more urgent
* fix: Context menu close should restore focus Fixes regression from #28530 The `contextMenuProps` aren't really for just the context menu but common props for all menus fter the refactor in #25044. We should probably revisit the menu trigger code and clean it up but this fix is more urgent * changefile * revert * revert


Implements and documents the new restore focus hooks for react-tabster:
Removes the usage of
deloserfrom Tabster in favour of the new API.Dialog
The documentation example for the Dialog without trigger uses the
useRestoreFocusTargethookPopover
Adds a documentation example for Popover with out trigger that uses
useRestoreFocusTargethookMenu
The documentation example for the Menu without trigger uses the
useRestoreFocusTargethook