Refactor Tooltip to remove mergeProps#19428
Merged
msft-fluent-ui-bot merged 22 commits intomicrosoft:masterfrom Sep 24, 2021
Merged
Refactor Tooltip to remove mergeProps#19428msft-fluent-ui-bot merged 22 commits intomicrosoft:masterfrom
msft-fluent-ui-bot merged 22 commits intomicrosoft:masterfrom
Conversation
This was referenced Aug 18, 2021
Closed
|
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 1e92ed7:
|
Collaborator
📊 Bundle size report
Unchanged fixtures
|
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: 0d26909912889432060fd4c87b2f4a45017e1532 (build) |
Collaborator
Perf Analysis (
|
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 1116 | 1073 | 5000 | |
| BaseButton | mount | 1076 | 1067 | 5000 | |
| Breadcrumb | mount | 2871 | 2851 | 1000 | |
| ButtonNext | mount | 526 | 542 | 5000 | |
| Checkbox | mount | 1787 | 1811 | 5000 | |
| CheckboxBase | mount | 1557 | 1541 | 5000 | |
| ChoiceGroup | mount | 5549 | 5420 | 5000 | |
| ComboBox | mount | 1140 | 1103 | 1000 | |
| CommandBar | mount | 11489 | 11482 | 1000 | |
| ContextualMenu | mount | 7473 | 7472 | 1000 | |
| DefaultButton | mount | 1312 | 1318 | 5000 | |
| DetailsRow | mount | 4290 | 4280 | 5000 | |
| DetailsRowFast | mount | 4270 | 4230 | 5000 | |
| DetailsRowNoStyles | mount | 3995 | 4187 | 5000 | |
| Dialog | mount | 2667 | 2610 | 1000 | |
| DocumentCardTitle | mount | 156 | 169 | 1000 | |
| Dropdown | mount | 3681 | 3621 | 5000 | |
| FluentProviderNext | mount | 7541 | 7641 | 5000 | |
| FluentProviderWithTheme | mount | 337 | 360 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 101 | 117 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 519 | 513 | 10 | |
| FocusTrapZone | mount | 2098 | 2076 | 5000 | |
| FocusZone | mount | 2093 | 2059 | 5000 | |
| IconButton | mount | 2049 | 2112 | 5000 | |
| Label | mount | 362 | 369 | 5000 | |
| Layer | mount | 3322 | 3367 | 5000 | |
| Link | mount | 556 | 534 | 5000 | |
| MakeStyles | mount | 1990 | 1937 | 50000 | |
| MenuButton | mount | 1724 | 1739 | 5000 | |
| MessageBar | mount | 2214 | 2235 | 5000 | |
| Nav | mount | 3791 | 3763 | 1000 | |
| OverflowSet | mount | 1271 | 1255 | 5000 | |
| Panel | mount | 2583 | 2679 | 1000 | |
| Persona | mount | 974 | 944 | 1000 | |
| Pivot | mount | 1618 | 1625 | 1000 | |
| PrimaryButton | mount | 1462 | 1521 | 5000 | |
| Rating | mount | 9326 | 9210 | 5000 | |
| SearchBox | mount | 1610 | 1581 | 5000 | |
| Shimmer | mount | 3097 | 3075 | 5000 | |
| Slider | mount | 2270 | 2282 | 5000 | |
| SpinButton | mount | 5677 | 5747 | 5000 | |
| Spinner | mount | 466 | 453 | 5000 | |
| SplitButton | mount | 3607 | 3666 | 5000 | |
| Stack | mount | 574 | 574 | 5000 | |
| StackWithIntrinsicChildren | mount | 2075 | 2048 | 5000 | |
| StackWithTextChildren | mount | 5439 | 5550 | 5000 | |
| SwatchColorPicker | mount | 11894 | 11913 | 5000 | |
| Tabs | mount | 1636 | 1606 | 1000 | |
| TagPicker | mount | 3073 | 3034 | 5000 | |
| TeachingBubble | mount | 14585 | 14552 | 5000 | |
| Text | mount | 476 | 493 | 5000 | |
| TextField | mount | 1634 | 1596 | 5000 | |
| ThemeProvider | mount | 1347 | 1309 | 5000 | |
| ThemeProvider | virtual-rerender | 637 | 642 | 5000 | |
| ThemeProvider | virtual-rerender-with-unmount | 2114 | 2125 | 5000 | |
| Toggle | mount | 936 | 969 | 5000 | |
| buttonNative | mount | 132 | 131 | 5000 |
Perf Analysis (@fluentui/react-northstar)
Perf tests with no regressions
| Scenario | Current PR Ticks | Baseline Ticks | Ratio |
|---|---|---|---|
| ListMinimalPerf.default | 638 | 591 | 1.08:1 |
| PortalMinimalPerf.default | 209 | 193 | 1.08:1 |
| ButtonMinimalPerf.default | 226 | 212 | 1.07:1 |
| CardMinimalPerf.default | 696 | 653 | 1.07:1 |
| HeaderMinimalPerf.default | 453 | 425 | 1.07:1 |
| FlexMinimalPerf.default | 347 | 327 | 1.06:1 |
| RadioGroupMinimalPerf.default | 552 | 521 | 1.06:1 |
| SkeletonMinimalPerf.default | 428 | 403 | 1.06:1 |
| TreeWith60ListItems.default | 216 | 203 | 1.06:1 |
| BoxMinimalPerf.default | 416 | 397 | 1.05:1 |
| ToolbarMinimalPerf.default | 1141 | 1090 | 1.05:1 |
| ButtonSlotsPerf.default | 672 | 646 | 1.04:1 |
| DropdownManyItemsPerf.default | 857 | 827 | 1.04:1 |
| HeaderSlotsPerf.default | 935 | 898 | 1.04:1 |
| ItemLayoutMinimalPerf.default | 1450 | 1398 | 1.04:1 |
| TextMinimalPerf.default | 424 | 407 | 1.04:1 |
| VideoMinimalPerf.default | 772 | 743 | 1.04:1 |
| AttachmentSlotsPerf.default | 1247 | 1210 | 1.03:1 |
| AvatarMinimalPerf.default | 234 | 228 | 1.03:1 |
| ChatDuplicateMessagesPerf.default | 362 | 350 | 1.03:1 |
| ChatMinimalPerf.default | 781 | 761 | 1.03:1 |
| FormMinimalPerf.default | 495 | 480 | 1.03:1 |
| ListCommonPerf.default | 785 | 762 | 1.03:1 |
| LoaderMinimalPerf.default | 802 | 782 | 1.03:1 |
| RefMinimalPerf.default | 272 | 264 | 1.03:1 |
| StatusMinimalPerf.default | 818 | 796 | 1.03:1 |
| AttachmentMinimalPerf.default | 205 | 200 | 1.02:1 |
| ButtonOverridesMissPerf.default | 2067 | 2019 | 1.02:1 |
| CarouselMinimalPerf.default | 552 | 540 | 1.02:1 |
| DialogMinimalPerf.default | 873 | 860 | 1.02:1 |
| GridMinimalPerf.default | 415 | 408 | 1.02:1 |
| MenuButtonMinimalPerf.default | 1917 | 1882 | 1.02:1 |
| PopupMinimalPerf.default | 676 | 663 | 1.02:1 |
| SliderMinimalPerf.default | 1946 | 1905 | 1.02:1 |
| TableManyItemsPerf.default | 2288 | 2241 | 1.02:1 |
| AlertMinimalPerf.default | 336 | 333 | 1.01:1 |
| ChatWithPopoverPerf.default | 443 | 440 | 1.01:1 |
| CheckboxMinimalPerf.default | 3073 | 3057 | 1.01:1 |
| DropdownMinimalPerf.default | 3543 | 3517 | 1.01:1 |
| LayoutMinimalPerf.default | 439 | 435 | 1.01:1 |
| ListWith60ListItems.default | 770 | 760 | 1.01:1 |
| MenuMinimalPerf.default | 984 | 974 | 1.01:1 |
| RosterPerf.default | 1391 | 1382 | 1.01:1 |
| SegmentMinimalPerf.default | 420 | 415 | 1.01:1 |
| SplitButtonMinimalPerf.default | 4950 | 4888 | 1.01:1 |
| CustomToolbarPrototype.default | 4672 | 4619 | 1.01:1 |
| AccordionMinimalPerf.default | 188 | 188 | 1:1 |
| AnimationMinimalPerf.default | 482 | 482 | 1:1 |
| EmbedMinimalPerf.default | 4824 | 4836 | 1:1 |
| InputMinimalPerf.default | 1485 | 1478 | 1:1 |
| ProviderMergeThemesPerf.default | 1892 | 1887 | 1:1 |
| ProviderMinimalPerf.default | 1301 | 1295 | 1:1 |
| TooltipMinimalPerf.default | 1233 | 1227 | 1:1 |
| DividerMinimalPerf.default | 425 | 428 | 0.99:1 |
| ReactionMinimalPerf.default | 456 | 460 | 0.99:1 |
| IconMinimalPerf.default | 757 | 768 | 0.99:1 |
| TableMinimalPerf.default | 478 | 484 | 0.99:1 |
| TextAreaMinimalPerf.default | 616 | 625 | 0.99:1 |
| DatepickerMinimalPerf.default | 6403 | 6539 | 0.98:1 |
| ListNestedPerf.default | 662 | 674 | 0.98:1 |
| ImageMinimalPerf.default | 459 | 472 | 0.97:1 |
| LabelMinimalPerf.default | 466 | 479 | 0.97:1 |
| TreeMinimalPerf.default | 937 | 962 | 0.97:1 |
…ooltip-unmergeprops
…oltip-unmergeprops
Contributor
Member
bsunderhus
approved these changes
Sep 23, 2021
Co-authored-by: Oleksandr Fediashov <alexander.mcgarret@gmail.com>
Co-authored-by: Oleksandr Fediashov <alexander.mcgarret@gmail.com>
layershifter
approved these changes
Sep 23, 2021
khmakoto
reviewed
Sep 24, 2021
khmakoto
approved these changes
Sep 24, 2021
Collaborator
|
Hello @khmakoto! Because this pull request has the p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (
|
mlp73
pushed a commit
to mlp73/fluentui
that referenced
this pull request
Jan 17, 2022
#### Pull request checklist - [x] Addresses an existing issue: microsoft#18844 microsoft#19723 - [x] Include a change request file using `$ yarn change` #### Description of changes Refactor `TooltipProps` and related types, and update `useTooltip` and `renderTooltip` to use the new approach described in RFC microsoft#18642
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
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.
Pull request checklist
$ yarn changeDescription of changes
Refactor
TooltipPropsand related types, and updateuseTooltipandrenderTooltipto use the new approach described in RFC #18642