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

v9 Website: Organize left navigation, add theme entries #23742

Merged

Conversation

micahgodbolt
Copy link
Member

@micahgodbolt micahgodbolt commented Jun 27, 2022

Created component groups for related components that should live together (rather than relying on flaky relative links)
Created 3 different pages for theme content because it collapsed to one page with new index approach.

fixes #23264

Before:
image

After:

image

@codesandbox-ci
Copy link

codesandbox-ci bot commented Jun 27, 2022

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 495b58a:

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

@fabricteam
Copy link
Collaborator

fabricteam commented Jun 27, 2022

📊 Bundle size report

Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-accordion
Accordion (including children components)
77.879 kB
23.679 kB
react-alert
Alert
80.9 kB
20.322 kB
react-avatar
Avatar
47.36 kB
13.625 kB
react-avatar
AvatarGroup
136.845 kB
40.741 kB
react-avatar
AvatarGroupItem
67.075 kB
18.96 kB
react-badge
Badge
21.653 kB
6.862 kB
react-badge
CounterBadge
22.557 kB
7.172 kB
react-badge
PresenceBadge
23.947 kB
7.022 kB
react-button
Button
35.704 kB
9.499 kB
react-button
CompoundButton
42.777 kB
10.733 kB
react-button
MenuButton
38.322 kB
10.363 kB
react-button
SplitButton
45.655 kB
11.71 kB
react-button
ToggleButton
50.929 kB
10.919 kB
react-card
Card - All
66.431 kB
19.01 kB
react-card
Card
62.113 kB
17.911 kB
react-card
CardFooter
8.461 kB
3.555 kB
react-card
CardHeader
9.504 kB
3.896 kB
react-card
CardPreview
8.562 kB
3.61 kB
react-combobox
Combobox (including child components)
73.805 kB
23.899 kB
react-combobox
Dropdown (including child components)
73.318 kB
23.893 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
189.182 kB
52.141 kB
react-components
react-components: FluentProvider & webLightTheme
31.883 kB
10.516 kB
react-divider
Divider
16.321 kB
5.837 kB
react-image
Image
10.68 kB
4.215 kB
react-input
Input
22.861 kB
7.512 kB
react-label
Label
9.238 kB
3.815 kB
react-link
Link
12.082 kB
4.88 kB
react-menu
Menu (including children components)
116.803 kB
35.477 kB
react-menu
Menu (including selectable components)
120.002 kB
35.962 kB
react-overflow
hooks only
10.839 kB
4.146 kB
react-popover
Popover
104.924 kB
31.964 kB
react-portal
Portal
10.033 kB
3.753 kB
react-positioning
usePositioning
23.839 kB
8.292 kB
react-provider
FluentProvider
14.76 kB
5.596 kB
react-radio
Radio
30.481 kB
10.406 kB
react-radio
RadioGroup
14.319 kB
5.711 kB
react-select
Select
20.045 kB
7.167 kB
react-slider
Slider
26.136 kB
8.387 kB
react-spinbutton
SpinButton
43.53 kB
12.346 kB
react-spinner
Spinner
19.073 kB
6.308 kB
react-switch
Switch
26.621 kB
8.596 kB
react-text
Text - Default
11.572 kB
4.537 kB
react-text
Text - Wrappers
14.882 kB
4.977 kB
react-textarea
Textarea
22.228 kB
7.523 kB
react-theme
Single theme token import
69 B
89 B
react-theme
Teams: all themes
28.995 kB
6.215 kB
react-theme
Teams: Light theme
16.973 kB
4.86 kB
react-tooltip
Tooltip
44.55 kB
15.386 kB
🤖 This report was generated against 9d99c66f0a0fedc1757ea44accc09f9c07d5845a

@size-auditor
Copy link

size-auditor bot commented Jun 27, 2022

Asset size changes

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

Baseline commit: 9d99c66f0a0fedc1757ea44accc09f9c07d5845a (build)

@fabricteam
Copy link
Collaborator

fabricteam commented Jun 27, 2022

Perf Analysis (@fluentui/react-components)

No significant results to display.

All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 1296 1306 5000
Button mount 910 915 5000
FluentProvider mount 1771 2298 5000
FluentProviderWithTheme mount 609 606 10
FluentProviderWithTheme virtual-rerender 584 588 10
FluentProviderWithTheme virtual-rerender-with-unmount 627 622 10
MakeStyles mount 1930 1928 50000
SpinButton mount 2603 2681 5000

@micahgodbolt micahgodbolt enabled auto-merge (squash) June 28, 2022 18:40
@micahgodbolt micahgodbolt disabled auto-merge June 28, 2022 19:10
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Organize left navigation, add theme entries",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"comment": "Organize left navigation, add theme entries",
"comment": "docs: Organize left navigation, add theme entries.",

@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Organize left navigation, add theme entries",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"comment": "Organize left navigation, add theme entries",
"comment": "docs: Organize left navigation, add theme entries.",

@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "Organize left navigation, add theme entries",
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
"comment": "Organize left navigation, add theme entries",
"comment": "docs: Organize left navigation, add theme entries.",

@@ -11,7 +11,7 @@ export { Color } from './BadgeColor.stories';
export { Icon } from './BadgeIcon.stories';

export default {
title: 'Components/Badge',
title: 'Components/Badge/Badge',
Copy link
Member

Choose a reason for hiding this comment

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

is it possible to have these component folders expanded by default?

@micahgodbolt micahgodbolt enabled auto-merge (squash) July 11, 2022 15:24
@micahgodbolt micahgodbolt merged commit 769bfa3 into microsoft:master Jul 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: MenuButton, ToggleButton, CompoundButton links don't work on FluentUI v9 Website
7 participants