Skip to content

Refactor Tooltip to remove mergeProps#19428

Merged
msft-fluent-ui-bot merged 22 commits intomicrosoft:masterfrom
behowell:tooltip-unmergeprops
Sep 24, 2021
Merged

Refactor Tooltip to remove mergeProps#19428
msft-fluent-ui-bot merged 22 commits intomicrosoft:masterfrom
behowell:tooltip-unmergeprops

Conversation

@behowell
Copy link
Contributor

@behowell behowell commented Aug 18, 2021

Pull request checklist

Description of changes

Refactor TooltipProps and related types, and update useTooltip and renderTooltip to use the new approach described in RFC #18642

@codesandbox-ci
Copy link

codesandbox-ci bot commented Aug 18, 2021

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:

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

@fabricteam
Copy link
Collaborator

fabricteam commented Aug 18, 2021

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-tooltip
Tooltip
45.412 kB
15.442 kB
45.739 kB
15.56 kB
-327 B
-118 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
164.715 kB
46.961 kB
react-components
react-components: FluentProvider & webLightTheme
35.769 kB
11.404 kB
🤖 This report was generated against 0d26909912889432060fd4c87b2f4a45017e1532

@size-auditor
Copy link

size-auditor bot commented Aug 18, 2021

Asset size changes

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

Baseline commit: 0d26909912889432060fd4c87b2f4a45017e1532 (build)

@behowell behowell marked this pull request as ready for review August 18, 2021 01:27
@behowell behowell requested a review from a team as a code owner August 18, 2021 01:27
@behowell behowell requested a review from bsunderhus August 18, 2021 01:27
@fabricteam
Copy link
Collaborator

fabricteam commented Aug 18, 2021

Perf Analysis (@fluentui/react)

No significant results to display.

All results

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

@bsunderhus
Copy link
Contributor

Please, keep this blocked meanwhile the RFCs (#18949, #19068) are implemented 🙏🏼, otherwise we'll face a huge amount of conflicts. I'm hoping to finish the last RFC this week

@bsunderhus bsunderhus added the Status: Blocked Resolution blocked by another issue label Aug 23, 2021
@layershifter layershifter removed the Status: Blocked Resolution blocked by another issue label Aug 31, 2021
@layershifter
Copy link
Member

@behowell as #19483 was merged, this is not blocked anymore. Can you please update this PR to include latest changes?

@behowell behowell requested a review from khmakoto as a code owner September 23, 2021 11:39
Co-authored-by: Oleksandr Fediashov <alexander.mcgarret@gmail.com>
@bsunderhus bsunderhus requested a review from khmakoto September 24, 2021 08:25
@msft-fluent-ui-bot
Copy link
Collaborator

Hello @khmakoto!

Because this pull request has the AutoMerge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

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 (@msft-fluent-ui-bot) and give me an instruction to get started! Learn more here.

@msft-fluent-ui-bot msft-fluent-ui-bot merged commit c45d347 into microsoft:master Sep 24, 2021
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
@behowell behowell deleted the tooltip-unmergeprops branch July 25, 2022 17:37
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.

6 participants