-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
(react-switch) - Removing react-toggle and adding the react-switch package #19420
(react-switch) - Removing react-toggle and adding the react-switch package #19420
Conversation
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 e684860:
|
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.
Looks like you missed some references to @fluentui/react-toggle
. Can you do a search of the repo and make sure you've removed them all?
(To go with this, I just ran npm deprecate @fluentui/react-toggle
to help keep people from using the old version.)
Asset size changesSize Auditor did not detect a change in bundle size for any component! Baseline commit: f5ea93b0c0b9905c078b7ace1511b5a78ec8346d (build) |
packages/react-examples/src/react-switch/Switch/Switch.stories.tsx
Outdated
Show resolved
Hide resolved
📊 Bundle size reportUnchanged fixtures
|
Perf Analysis (
|
Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
---|---|---|---|---|---|
Avatar | mount | 957 | 966 | 5000 | |
BaseButton | mount | 972 | 980 | 5000 | |
Breadcrumb | mount | 2765 | 2803 | 1000 | |
ButtonNext | mount | 460 | 456 | 5000 | |
Checkbox | mount | 1662 | 1676 | 5000 | |
CheckboxBase | mount | 1465 | 1433 | 5000 | |
ChoiceGroup | mount | 5172 | 5177 | 5000 | |
ComboBox | mount | 1058 | 1060 | 1000 | |
CommandBar | mount | 10704 | 10884 | 1000 | |
ContextualMenu | mount | 6541 | 6486 | 1000 | |
DefaultButton | mount | 1251 | 1258 | 5000 | |
DetailsRow | mount | 3895 | 4011 | 5000 | |
DetailsRowFast | mount | 4021 | 3996 | 5000 | |
DetailsRowNoStyles | mount | 3961 | 3903 | 5000 | |
Dialog | mount | 2300 | 2317 | 1000 | |
DocumentCardTitle | mount | 144 | 149 | 1000 | |
Dropdown | mount | 3478 | 3612 | 5000 | |
FluentProviderNext | mount | 7159 | 7165 | 5000 | |
FocusTrapZone | mount | 1882 | 1837 | 5000 | |
FocusZone | mount | 1840 | 1848 | 5000 | |
IconButton | mount | 1866 | 1890 | 5000 | |
Label | mount | 348 | 343 | 5000 | |
Layer | mount | 1910 | 1906 | 5000 | |
Link | mount | 502 | 495 | 5000 | |
MakeStyles | mount | 1959 | 2013 | 50000 | |
MenuButton | mount | 1613 | 1658 | 5000 | |
MessageBar | mount | 2156 | 2138 | 5000 | |
Nav | mount | 3578 | 3642 | 1000 | |
OverflowSet | mount | 1161 | 1160 | 5000 | |
Panel | mount | 2151 | 2240 | 1000 | |
Persona | mount | 876 | 854 | 1000 | |
Pivot | mount | 1484 | 1483 | 1000 | |
PrimaryButton | mount | 1371 | 1407 | 5000 | |
Rating | mount | 8368 | 8736 | 5000 | |
SearchBox | mount | 1451 | 1415 | 5000 | |
Shimmer | mount | 2783 | 2796 | 5000 | |
Slider | mount | 2142 | 2194 | 5000 | |
SpinButton | mount | 5511 | 5471 | 5000 | |
Spinner | mount | 459 | 435 | 5000 | |
SplitButton | mount | 3456 | 3415 | 5000 | |
Stack | mount | 540 | 543 | 5000 | |
StackWithIntrinsicChildren | mount | 1811 | 1746 | 5000 | |
StackWithTextChildren | mount | 5024 | 5176 | 5000 | |
SwatchColorPicker | mount | 11041 | 10768 | 5000 | |
Tabs | mount | 1486 | 1540 | 1000 | |
TagPicker | mount | 2841 | 2812 | 5000 | |
TeachingBubble | mount | 12548 | 12810 | 5000 | |
Text | mount | 432 | 466 | 5000 | |
TextField | mount | 1513 | 1491 | 5000 | |
ThemeProvider | mount | 1255 | 1219 | 5000 | |
ThemeProvider | virtual-rerender | 618 | 615 | 5000 | |
Toggle | mount | 885 | 850 | 5000 | |
buttonNative | mount | 117 | 122 | 5000 |
Perf Analysis (@fluentui/react-northstar
)
Perf tests with no regressions
Scenario | Current PR Ticks | Baseline Ticks | Ratio |
---|---|---|---|
GridMinimalPerf.default | 389 | 348 | 1.12:1 |
SegmentMinimalPerf.default | 406 | 370 | 1.1:1 |
AttachmentMinimalPerf.default | 185 | 170 | 1.09:1 |
RefMinimalPerf.default | 257 | 239 | 1.08:1 |
FlexMinimalPerf.default | 311 | 290 | 1.07:1 |
LayoutMinimalPerf.default | 473 | 443 | 1.07:1 |
CustomToolbarPrototype.default | 4621 | 4330 | 1.07:1 |
CarouselMinimalPerf.default | 528 | 501 | 1.05:1 |
ChatMinimalPerf.default | 726 | 691 | 1.05:1 |
DropdownManyItemsPerf.default | 789 | 750 | 1.05:1 |
StatusMinimalPerf.default | 789 | 755 | 1.05:1 |
TableManyItemsPerf.default | 2259 | 2158 | 1.05:1 |
TreeWith60ListItems.default | 207 | 198 | 1.05:1 |
MenuMinimalPerf.default | 947 | 911 | 1.04:1 |
ToolbarMinimalPerf.default | 1079 | 1037 | 1.04:1 |
ImageMinimalPerf.default | 416 | 402 | 1.03:1 |
PortalMinimalPerf.default | 198 | 193 | 1.03:1 |
ReactionMinimalPerf.default | 423 | 409 | 1.03:1 |
VideoMinimalPerf.default | 724 | 701 | 1.03:1 |
AnimationMinimalPerf.default | 462 | 455 | 1.02:1 |
AttachmentSlotsPerf.default | 1191 | 1173 | 1.02:1 |
ButtonSlotsPerf.default | 598 | 586 | 1.02:1 |
ChatWithPopoverPerf.default | 398 | 390 | 1.02:1 |
DatepickerMinimalPerf.default | 5882 | 5782 | 1.02:1 |
ListMinimalPerf.default | 577 | 563 | 1.02:1 |
ListNestedPerf.default | 639 | 625 | 1.02:1 |
LoaderMinimalPerf.default | 747 | 735 | 1.02:1 |
BoxMinimalPerf.default | 388 | 386 | 1.01:1 |
ButtonMinimalPerf.default | 199 | 197 | 1.01:1 |
DropdownMinimalPerf.default | 3243 | 3213 | 1.01:1 |
ItemLayoutMinimalPerf.default | 1379 | 1372 | 1.01:1 |
ListWith60ListItems.default | 714 | 706 | 1.01:1 |
SplitButtonMinimalPerf.default | 4306 | 4282 | 1.01:1 |
TableMinimalPerf.default | 453 | 448 | 1.01:1 |
TextAreaMinimalPerf.default | 638 | 632 | 1.01:1 |
TooltipMinimalPerf.default | 1123 | 1110 | 1.01:1 |
AvatarMinimalPerf.default | 212 | 213 | 1:1 |
CheckboxMinimalPerf.default | 2975 | 2966 | 1:1 |
DialogMinimalPerf.default | 830 | 832 | 1:1 |
DividerMinimalPerf.default | 411 | 410 | 1:1 |
EmbedMinimalPerf.default | 4430 | 4440 | 1:1 |
FormMinimalPerf.default | 458 | 457 | 1:1 |
ListCommonPerf.default | 712 | 715 | 1:1 |
MenuButtonMinimalPerf.default | 1850 | 1847 | 1:1 |
PopupMinimalPerf.default | 679 | 680 | 1:1 |
AlertMinimalPerf.default | 306 | 310 | 0.99:1 |
ChatDuplicateMessagesPerf.default | 315 | 318 | 0.99:1 |
HeaderSlotsPerf.default | 819 | 829 | 0.99:1 |
InputMinimalPerf.default | 1341 | 1357 | 0.99:1 |
ProviderMergeThemesPerf.default | 1767 | 1790 | 0.99:1 |
ProviderMinimalPerf.default | 1091 | 1101 | 0.99:1 |
SkeletonMinimalPerf.default | 385 | 388 | 0.99:1 |
ButtonOverridesMissPerf.default | 1847 | 1877 | 0.98:1 |
HeaderMinimalPerf.default | 389 | 397 | 0.98:1 |
TreeMinimalPerf.default | 878 | 893 | 0.98:1 |
RadioGroupMinimalPerf.default | 491 | 504 | 0.97:1 |
IconMinimalPerf.default | 664 | 682 | 0.97:1 |
AccordionMinimalPerf.default | 173 | 180 | 0.96:1 |
CardMinimalPerf.default | 619 | 647 | 0.96:1 |
RosterPerf.default | 1343 | 1418 | 0.95:1 |
LabelMinimalPerf.default | 420 | 449 | 0.94:1 |
SliderMinimalPerf.default | 1672 | 1775 | 0.94:1 |
TextMinimalPerf.default | 388 | 415 | 0.93:1 |
.github/CODEOWNERS
Outdated
packages/react-tooltip/ @microsoft/cxe-red @behowell | ||
packages/react-switch/ @microsoft/cxe-red @behowell |
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.
It's probably okay to put yourself as the second owner for now.
Pull request checklist
$ yarn change
Description of changes
This pull request:
react-toggle
package.react-switch
package by:yarn create-package
yarn nx workspace-generator migrate-converged-pkg --name='@fluentui/react-switch'
yarn create-component