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 default exports [P5] #13934

Merged
merged 12 commits into from Jul 13, 2020
Merged

Conversation

layershifter
Copy link
Member

Description of changes

This PR is a fifth round of default exports removal, see #12953 (comment).

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jul 7, 2020

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

Sandbox Source
Fluent UI Button Configuration
microsoft/fluentui: codesandbox-react-template Configuration

@size-auditor
Copy link

size-auditor bot commented Jul 8, 2020

Asset size changes

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

Baseline commit: e7b119a05ef8a4aa254df00320f3672298617ade (build)

@pompomon pompomon mentioned this pull request Jul 9, 2020
2 tasks
…ub.com/microsoft/fluentui into chore/no-default-export

� Conflicts:
�	packages/fluentui/react-northstar/src/components/Dropdown/Dropdown.tsx
�	packages/fluentui/react-northstar/src/utils/AutoControlledComponent.tsx
�	packages/fluentui/react-northstar/src/utils/UIComponent.tsx
�	packages/fluentui/react-northstar/src/utils/index.ts
�	packages/fluentui/react-northstar/test/specs/components/Dropdown/Dropdown-test.tsx
@DustyTheBot
Copy link

DustyTheBot commented Jul 10, 2020

Warnings
⚠️ There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR.

Generated by 🚫 dangerJS against cfa2ab8

"root": true
"root": true,
"rules": {
"import/no-default-export": "off"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please why it's "off" for e2e?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

e2e is not a part of distributed code so it's not important to fix things there.

@msft-github-bot
Copy link
Contributor

msft-github-bot commented Jul 10, 2020

Perf Analysis

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
BaseButton mount 1010 1000 5000
ButtonNext mount 626 644 5000
Checkbox mount 1719 1756 5000
CheckboxBase mount 1470 1549 5000
CheckboxNext mount 1791 1826 5000
ChoiceGroup mount 5581 5481 5000
ComboBox mount 1001 1027 1000
CommandBar mount 8418 8107 1000
ContextualMenu mount 15109 14957 1000
DefaultButton mount 1223 1284 5000
DetailsRow mount 4038 3999 5000
DetailsRowFast mount 3911 3944 5000
DetailsRowNoStyles mount 3722 3776 5000
Dialog mount 1625 1664 1000
DocumentCardTitle mount 1828 1967 1000
Dropdown mount 2937 2910 5000
FocusZone mount 1930 1890 5000
IconButton mount 1946 1892 5000
Label mount 365 367 5000
Link mount 512 483 5000
LinkNext mount 581 525 5000
MenuButton mount 1681 1668 5000
Nav mount 3642 3648 1000
Panel mount 1575 1629 1000
Persona mount 906 923 1000
Pivot mount 1539 1534 1000
PivotNext mount 1463 1514 1000
PrimaryButton mount 1391 1386 5000
SearchBox mount 1463 1454 5000
SearchBoxNext mount 1501 1452 5000
Slider mount 1614 1627 5000
SliderNext mount 2101 2130 5000
Spinner mount 474 444 5000
SplitButton mount 3493 3411 5000
Stack mount 587 609 5000
StackWithIntrinsicChildren mount 2314 2460 5000
StackWithTextChildren mount 5940 6140 5000
TagPicker mount 3065 3078 5000
Text mount 494 494 5000
TextField mount 1552 1529 5000
ThemeProvider mount 3175 3213 5000
ThemeProvider virtual-rerender 541 523 5000
Toggle mount 946 997 5000
ToggleNext mount 950 917 5000
button mount 127 124 5000

Perf Analysis (Fluent)

Perf comparison
Status Scenario Fluent TPI Fabric TPI Ratio Iterations Ticks
🎯 Avatar.Fluent 0.51 0.51 1:1 2000 1022
🦄 Button.Fluent 0.13 0.23 0.57:1 5000 674
🔧 Checkbox.Fluent 0.66 0.39 1.69:1 1000 664
🎯 Dialog.Fluent 0.18 0.25 0.72:1 5000 898
🔧 Dropdown.Fluent 3.22 0.49 6.57:1 1000 3216
🔧 Icon.Fluent 0.18 0.06 3:1 5000 914
🦄 Image.Fluent 0.09 0.13 0.69:1 5000 465
🔧 Slider.Fluent 1.82 0.36 5.06:1 1000 1820
🔧 Text.Fluent 0.07 0.03 2.33:1 5000 371
🦄 Tooltip.Fluent 0.12 18.72 0.01:1 5000 583

🔧 Needs work     🎯 On target     🦄 Amazing

Perf tests with no regressions
Scenario Current PR Ticks Baseline Ticks Ratio
TreeWith60ListItems.default 261 234 1.12:1
Icon.Fluent 914 833 1.1:1
CheckboxMinimalPerf.default 3259 3034 1.07:1
RadioGroupMinimalPerf.default 493 460 1.07:1
ToolbarMinimalPerf.default 1105 1036 1.07:1
PopupMinimalPerf.default 775 732 1.06:1
ProviderMinimalPerf.default 1056 993 1.06:1
RefMinimalPerf.default 207 195 1.06:1
TableMinimalPerf.default 461 433 1.06:1
Tooltip.Fluent 583 548 1.06:1
BoxMinimalPerf.default 395 376 1.05:1
PortalMinimalPerf.default 135 128 1.05:1
SegmentMinimalPerf.default 415 395 1.05:1
AttachmentSlotsPerf.default 1287 1239 1.04:1
FlexMinimalPerf.default 332 319 1.04:1
SliderMinimalPerf.default 1802 1735 1.04:1
StatusMinimalPerf.default 769 741 1.04:1
IconMinimalPerf.default 797 769 1.04:1
VideoMinimalPerf.default 706 680 1.04:1
Image.Fluent 465 449 1.04:1
HierarchicalTreeMinimalPerf.default 478 463 1.03:1
ImageMinimalPerf.default 420 406 1.03:1
LayoutMinimalPerf.default 442 428 1.03:1
CustomToolbarPrototype.default 4201 4083 1.03:1
Button.Fluent 674 653 1.03:1
Dialog.Fluent 898 869 1.03:1
AlertMinimalPerf.default 340 333 1.02:1
ListWith60ListItems.default 1251 1227 1.02:1
MenuButtonMinimalPerf.default 1729 1697 1.02:1
AccordionMinimalPerf.default 168 167 1.01:1
CarouselMinimalPerf.default 534 530 1.01:1
Checkbox.Fluent 664 660 1.01:1
ChatWithPopoverPerf.default 526 524 1:1
FormMinimalPerf.default 480 480 1:1
HeaderSlotsPerf.default 888 890 1:1
LabelMinimalPerf.default 446 444 1:1
LoaderMinimalPerf.default 816 812 1:1
ProviderMergeThemesPerf.default 2029 2020 1:1
ReactionMinimalPerf.default 424 424 1:1
TreeMinimalPerf.default 958 962 1:1
AnimationMinimalPerf.default 422 426 0.99:1
ButtonMinimalPerf.default 206 208 0.99:1
ChatMinimalPerf.default 683 693 0.99:1
DialogMinimalPerf.default 844 853 0.99:1
GridMinimalPerf.default 374 377 0.99:1
InputMinimalPerf.default 1211 1221 0.99:1
TextAreaMinimalPerf.default 545 552 0.99:1
Avatar.Fluent 1022 1035 0.99:1
DropdownMinimalPerf.default 3202 3261 0.98:1
EmbedMinimalPerf.default 2079 2127 0.98:1
HeaderMinimalPerf.default 393 399 0.98:1
ListCommonPerf.default 1037 1058 0.98:1
MenuMinimalPerf.default 938 955 0.98:1
SplitButtonMinimalPerf.default 4155 4235 0.98:1
TooltipMinimalPerf.default 837 850 0.98:1
Dropdown.Fluent 3216 3268 0.98:1
Slider.Fluent 1820 1855 0.98:1
DividerMinimalPerf.default 403 415 0.97:1
ItemLayoutMinimalPerf.default 1395 1433 0.97:1
ListNestedPerf.default 1033 1065 0.97:1
AvatarMinimalPerf.default 550 573 0.96:1
DropdownManyItemsPerf.default 868 911 0.95:1
TableManyItemsPerf.default 2594 2740 0.95:1
ChatDuplicateMessagesPerf.default 462 491 0.94:1
Text.Fluent 371 396 0.94:1
CardMinimalPerf.default 623 668 0.93:1
ButtonSlotsPerf.default 615 667 0.92:1
ListMinimalPerf.default 513 557 0.92:1
TextMinimalPerf.default 385 421 0.91:1
AttachmentMinimalPerf.default 175 197 0.89:1

@@ -1,4 +1,5 @@
const config = {
repoURL: 'https://github.com/microsoft/fluentui',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we import it from packages/fluentui/react-northstar/src/utils/constants.ts ? So we don't have to change URL in two places

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

constants are no longer reexported under @fluentui/react-northstar (I think that this variable was exported by a mistake).

layershifter and others added 2 commits July 10, 2020 16:30
@layershifter layershifter merged commit ae46225 into master Jul 13, 2020
@msft-github-bot
Copy link
Contributor

🎉@fluentui/eslint-plugin@v0.52.0 has been released which incorporates this pull request.:tada:

Handy links:

@layershifter layershifter deleted the chore/no-default-export branch July 14, 2020 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Fluent UI react-northstar (v0) Work related to Fluent UI V0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants