fluentui
fluentui copied to clipboard
chore(scripts): enable type-checks on ci and fix all ts-errors
Current Behavior
- scripts/ is not type-checked on local nor on CI
- when run
tscthere are 38 errors - DX is broken for testing
New Behavior
- scripts/ is type-checked
- no tsc errors
- DX works for testing
Additional features:
- removed npm script aliases not used anywhere
- removed code not used anywhere
Related issues
follows/complements https://github.com/microsoft/fluentui/pull/24255
| Warnings | |
|---|---|
| :warning: | There are no updates provided to CHANGELOG. Ensure there are no publicly visible changes introduced by this PR. |
Generated by :no_entry_sign: dangerJS against 477ea1bf19d0d55ce4e4d7e2474e0b32559638dd
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 67bef7149b333de45497b39e8ee43a3f63a81fbe:
| Sandbox | Source |
|---|---|
| @fluentui/react 8 starter | Configuration |
| @fluentui/react-components 9 starter | Configuration |
Asset size changes
Size Auditor did not detect a change in bundle size for any component!
Baseline commit: 84017b6464e13c46a7ae8c61875ead2ff4b6965b (build)
Perf Analysis (@fluentui/react-components)
No significant results to display.
All results
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Avatar | mount | 1468 | 1536 | 5000 | |
| Button | mount | 1135 | 1125 | 5000 | |
| FluentProvider | mount | 1845 | 1844 | 5000 | |
| FluentProviderWithTheme | mount | 756 | 747 | 10 | |
| FluentProviderWithTheme | virtual-rerender | 691 | 696 | 10 | |
| FluentProviderWithTheme | virtual-rerender-with-unmount | 749 | 731 | 10 | |
| MakeStyles | mount | 2272 | 2270 | 50000 | |
| SpinButton | mount | 3004 | 2898 | 5000 |
📊 Bundle size report
Unchanged fixtures
| Package & Exports | Size (minified/GZIP) |
|---|---|
| global-context createContext |
533 B341 B |
| global-context createContextSelector |
554 B348 B |
| priority-overflow createOverflowManager |
2.936 kB1.212 kB |
| react-accordion Accordion (including children components) |
79.485 kB24.082 kB |
| react-alert Alert |
82.763 kB20.582 kB |
| react-avatar Avatar |
48.172 kB13.615 kB |
| react-avatar AvatarGroup |
13.43 kB5.382 kB |
| react-avatar AvatarGroupItem |
64.878 kB18.284 kB |
| react-badge Badge |
22.494 kB7.157 kB |
| react-badge CounterBadge |
23.397 kB7.449 kB |
| react-badge PresenceBadge |
23.947 kB7.022 kB |
| react-button Button |
36.396 kB9.575 kB |
| react-button CompoundButton |
43.469 kB10.812 kB |
| react-button MenuButton |
39.014 kB10.456 kB |
| react-button SplitButton |
46.506 kB11.827 kB |
| react-button ToggleButton |
51.91 kB11.003 kB |
| react-card Card - All |
67.42 kB19.249 kB |
| react-card Card |
63.102 kB18.167 kB |
| react-card CardFooter |
8.461 kB3.555 kB |
| react-card CardHeader |
9.504 kB3.896 kB |
| react-card CardPreview |
8.562 kB3.61 kB |
| react-combobox Combobox (including child components) |
71.331 kB23.323 kB |
| react-combobox Dropdown (including child components) |
70.459 kB23.182 kB |
| react-components react-components: Accordion, Button, FluentProvider, Image, Menu, Popover |
188.604 kB51.784 kB |
| react-components react-components: FluentProvider & webLightTheme |
32.688 kB10.736 kB |
| react-dialog Dialog (including children components) |
85.064 kB25.293 kB |
| react-divider Divider |
16.321 kB5.837 kB |
| react-image Image |
10.68 kB4.215 kB |
| react-input Input |
23.554 kB7.644 kB |
| react-label Label |
9.238 kB3.815 kB |
| react-link Link |
12.197 kB4.912 kB |
| react-menu Menu (including children components) |
114.702 kB35.037 kB |
| react-menu Menu (including selectable components) |
117.901 kB35.533 kB |
| react-overflow hooks only |
10.839 kB4.146 kB |
| react-popover Popover |
102.042 kB31.308 kB |
| react-portal Portal |
10.49 kB3.845 kB |
| react-positioning usePositioning |
19.656 kB7.388 kB |
| react-provider FluentProvider |
15.565 kB5.818 kB |
| react-radio Radio |
36.13 kB11.947 kB |
| react-radio RadioGroup |
14.319 kB5.711 kB |
| react-select Select |
20.746 kB7.299 kB |
| react-slider Slider |
31.988 kB10.019 kB |
| react-spinbutton SpinButton |
43.899 kB12.362 kB |
| react-spinner Spinner |
19.932 kB6.363 kB |
| react-switch Switch |
32.438 kB10.218 kB |
| react-text Text - Default |
11.572 kB4.537 kB |
| react-text Text - Wrappers |
14.882 kB4.977 kB |
| react-textarea Textarea |
23.674 kB7.83 kB |
| react-theme Single theme token import |
69 B89 B |
| react-theme Teams: all themes |
28.995 kB6.215 kB |
| react-theme Teams: Light theme |
16.973 kB4.86 kB |
| react-tooltip Tooltip |
41.307 kB14.586 kB |
| react-utilities SSRProvider |
189 B161 B |
Perf Analysis (@fluentui/react-northstar)
Perf tests with no regressions
| Scenario | Current PR Ticks | Baseline Ticks | Ratio |
|---|---|---|---|
| TreeWith60ListItems.default | 135 | 112 | 1.21:1 |
| CardMinimalPerf.default | 473 | 400 | 1.18:1 |
| HeaderMinimalPerf.default | 302 | 255 | 1.18:1 |
| AttachmentMinimalPerf.default | 124 | 106 | 1.17:1 |
| CarouselMinimalPerf.default | 392 | 336 | 1.17:1 |
| ButtonSlotsPerf.default | 459 | 401 | 1.14:1 |
| ChatWithPopoverPerf.default | 320 | 283 | 1.13:1 |
| TableMinimalPerf.default | 322 | 288 | 1.12:1 |
| ImageMinimalPerf.default | 292 | 262 | 1.11:1 |
| ProviderMergeThemesPerf.default | 1049 | 941 | 1.11:1 |
| RefMinimalPerf.default | 190 | 172 | 1.1:1 |
| ChatDuplicateMessagesPerf.default | 236 | 219 | 1.08:1 |
| DropdownManyItemsPerf.default | 539 | 497 | 1.08:1 |
| ListCommonPerf.default | 527 | 490 | 1.08:1 |
| ListWith60ListItems.default | 487 | 453 | 1.08:1 |
| InputMinimalPerf.default | 1098 | 1026 | 1.07:1 |
| SegmentMinimalPerf.default | 268 | 250 | 1.07:1 |
| ChatMinimalPerf.default | 572 | 540 | 1.06:1 |
| DialogMinimalPerf.default | 643 | 614 | 1.05:1 |
| IconMinimalPerf.default | 503 | 481 | 1.05:1 |
| FormMinimalPerf.default | 340 | 327 | 1.04:1 |
| TableManyItemsPerf.default | 1461 | 1414 | 1.03:1 |
| TreeMinimalPerf.default | 604 | 588 | 1.03:1 |
| CheckboxMinimalPerf.default | 2218 | 2172 | 1.02:1 |
| GridMinimalPerf.default | 247 | 242 | 1.02:1 |
| LabelMinimalPerf.default | 319 | 313 | 1.02:1 |
| ListNestedPerf.default | 461 | 451 | 1.02:1 |
| ReactionMinimalPerf.default | 313 | 307 | 1.02:1 |
| SliderMinimalPerf.default | 1396 | 1368 | 1.02:1 |
| SplitButtonMinimalPerf.default | 3411 | 3354 | 1.02:1 |
| AvatarMinimalPerf.default | 155 | 153 | 1.01:1 |
| DropdownMinimalPerf.default | 2437 | 2417 | 1.01:1 |
| LayoutMinimalPerf.default | 258 | 256 | 1.01:1 |
| MenuMinimalPerf.default | 626 | 621 | 1.01:1 |
| MenuButtonMinimalPerf.default | 1264 | 1252 | 1.01:1 |
| PortalMinimalPerf.default | 142 | 141 | 1.01:1 |
| VideoMinimalPerf.default | 517 | 511 | 1.01:1 |
| ProviderMinimalPerf.default | 303 | 304 | 1:1 |
| TextMinimalPerf.default | 278 | 279 | 1:1 |
| TextAreaMinimalPerf.default | 342 | 341 | 1:1 |
| SkeletonMinimalPerf.default | 271 | 274 | 0.99:1 |
| StatusMinimalPerf.default | 537 | 543 | 0.99:1 |
| DatepickerMinimalPerf.default | 4759 | 4839 | 0.98:1 |
| HeaderSlotsPerf.default | 608 | 620 | 0.98:1 |
| ToolbarMinimalPerf.default | 695 | 714 | 0.97:1 |
| AlertMinimalPerf.default | 195 | 203 | 0.96:1 |
| AttachmentSlotsPerf.default | 868 | 904 | 0.96:1 |
| ButtonOverridesMissPerf.default | 1157 | 1200 | 0.96:1 |
| RosterPerf.default | 870 | 909 | 0.96:1 |
| CustomToolbarPrototype.default | 2062 | 2157 | 0.96:1 |
| TooltipMinimalPerf.default | 826 | 883 | 0.94:1 |
| AnimationMinimalPerf.default | 395 | 427 | 0.93:1 |
| ButtonMinimalPerf.default | 119 | 131 | 0.91:1 |
| ListMinimalPerf.default | 377 | 416 | 0.91:1 |
| RadioGroupMinimalPerf.default | 334 | 367 | 0.91:1 |
| BoxMinimalPerf.default | 252 | 279 | 0.9:1 |
| EmbedMinimalPerf.default | 3071 | 3408 | 0.9:1 |
| ItemLayoutMinimalPerf.default | 892 | 990 | 0.9:1 |
| FlexMinimalPerf.default | 204 | 230 | 0.89:1 |
| LoaderMinimalPerf.default | 504 | 566 | 0.89:1 |
| AccordionMinimalPerf.default | 102 | 116 | 0.88:1 |
| PopupMinimalPerf.default | 458 | 536 | 0.85:1 |
| DividerMinimalPerf.default | 258 | 330 | 0.78:1 |
Perf Analysis (@fluentui/react)
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| Dropdown | mount | 3342 | 3438 | 5000 | Possible regression |
All results
| Scenario | Render type | Master Ticks | PR Ticks | Iterations | Status |
|---|---|---|---|---|---|
| BaseButton | mount | 929 | 936 | 5000 | |
| Breadcrumb | mount | 2802 | 2785 | 1000 | |
| Checkbox | mount | 2677 | 2624 | 5000 | |
| CheckboxBase | mount | 2328 | 2308 | 5000 | |
| ChoiceGroup | mount | 4805 | 4836 | 5000 | |
| ComboBox | mount | 998 | 1055 | 1000 | |
| CommandBar | mount | 10731 | 10661 | 1000 | |
| ContextualMenu | mount | 11962 | 12036 | 1000 | |
| DefaultButton | mount | 1170 | 1172 | 5000 | |
| DetailsRow | mount | 3874 | 3873 | 5000 | |
| DetailsRowFast | mount | 3902 | 3889 | 5000 | |
| DetailsRowNoStyles | mount | 3749 | 3668 | 5000 | |
| Dialog | mount | 2920 | 2881 | 1000 | |
| DocumentCardTitle | mount | 185 | 172 | 1000 | |
| Dropdown | mount | 3342 | 3438 | 5000 | Possible regression |
| FocusTrapZone | mount | 1933 | 1962 | 5000 | |
| FocusZone | mount | 1884 | 1857 | 5000 | |
| IconButton | mount | 1832 | 1838 | 5000 | |
| Label | mount | 363 | 363 | 5000 | |
| Layer | mount | 3245 | 3271 | 5000 | |
| Link | mount | 486 | 495 | 5000 | |
| MenuButton | mount | 1538 | 1542 | 5000 | |
| MessageBar | mount | 2162 | 2158 | 5000 | |
| Nav | mount | 3452 | 3388 | 1000 | |
| OverflowSet | mount | 1134 | 1139 | 5000 | |
| Panel | mount | 2297 | 2246 | 1000 | |
| Persona | mount | 1051 | 1049 | 1000 | |
| Pivot | mount | 1534 | 1532 | 1000 | |
| PrimaryButton | mount | 1341 | 1345 | 5000 | |
| Rating | mount | 7865 | 7815 | 5000 | |
| SearchBox | mount | 1306 | 1350 | 5000 | |
| Shimmer | mount | 2547 | 2509 | 5000 | |
| Slider | mount | 2003 | 1981 | 5000 | |
| SpinButton | mount | 5171 | 5334 | 5000 | |
| Spinner | mount | 441 | 439 | 5000 | |
| SplitButton | mount | 3266 | 3288 | 5000 | |
| Stack | mount | 535 | 528 | 5000 | |
| StackWithIntrinsicChildren | mount | 2334 | 2328 | 5000 | |
| StackWithTextChildren | mount | 5349 | 5317 | 5000 | |
| SwatchColorPicker | mount | 11871 | 11827 | 5000 | |
| TagPicker | mount | 2819 | 2822 | 5000 | |
| TeachingBubble | mount | 91357 | 92524 | 5000 | |
| Text | mount | 432 | 434 | 5000 | |
| TextField | mount | 1432 | 1434 | 5000 | |
| ThemeProvider | mount | 1251 | 1222 | 5000 | |
| ThemeProvider | virtual-rerender | 685 | 686 | 5000 | |
| ThemeProvider | virtual-rerender-with-unmount | 1851 | 1843 | 5000 | |
| Toggle | mount | 813 | 819 | 5000 | |
| buttonNative | mount | 139 | 139 | 5000 |
/azp run
Azure Pipelines successfully started running 3 pipeline(s).