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

feat(react-avatar): add shape into avatar context #27738

Merged
merged 10 commits into from
May 3, 2023

Conversation

YuanboXue-Amber
Copy link
Contributor

Add shape into AvatarContext.
This is useful when other components needs square shaped avatar.

@YuanboXue-Amber YuanboXue-Amber marked this pull request as ready for review May 2, 2023 03:33
@codesandbox-ci
Copy link

codesandbox-ci bot commented May 2, 2023

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 3ee27a5:

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

@size-auditor
Copy link

size-auditor bot commented May 2, 2023

Asset size changes

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

Baseline commit: 1872d7e57726762416d06261fb6e9f7e9e255392 (build)

@fabricteam
Copy link
Collaborator

fabricteam commented May 2, 2023

📊 Bundle size report

Package & Exports Baseline (minified/GZIP) PR Change
react-alert
Alert
93.779 kB
22.493 kB
93.799 kB
22.502 kB
20 B
9 B
react-avatar
Avatar
57.544 kB
14.966 kB
57.564 kB
14.976 kB
20 B
10 B
react-avatar
AvatarGroupItem
73.758 kB
19.478 kB
73.778 kB
19.491 kB
20 B
13 B
react-persona
Persona
64.465 kB
16.892 kB
64.485 kB
16.9 kB
20 B
8 B
Unchanged fixtures
Package & Exports Size (minified/GZIP)
react-avatar
AvatarGroup
15.632 kB
6.258 kB
react-components
react-components: Button, FluentProvider & webLightTheme
65.31 kB
17.931 kB
react-components
react-components: Accordion, Button, FluentProvider, Image, Menu, Popover
204.34 kB
57.141 kB
react-components
react-components: FluentProvider & webLightTheme
36.086 kB
11.9 kB
react-portal-compat
PortalCompatProvider
6.446 kB
2.186 kB
react-table
DataGrid
147.659 kB
40.567 kB
react-table
Table (Primitives only)
44.348 kB
12.347 kB
react-table
Table as DataGrid
130.218 kB
33.128 kB
react-table
Table (Selection only)
78.132 kB
19.127 kB
react-table
Table (Sort only)
77.462 kB
18.939 kB
🤖 This report was generated against 1872d7e57726762416d06261fb6e9f7e9e255392

@fabricteam
Copy link
Collaborator

fabricteam commented May 2, 2023

Perf Analysis (@fluentui/react-components)

Scenario Render type Master Ticks PR Ticks Iterations Status
InfoButton mount 23 18 5000 Possible regression
All results

Scenario Render type Master Ticks PR Ticks Iterations Status
Avatar mount 710 699 5000
Button mount 381 397 5000
Field mount 1264 1240 5000
FluentProvider mount 886 924 5000
FluentProviderWithTheme mount 128 128 10
FluentProviderWithTheme virtual-rerender 95 98 10
FluentProviderWithTheme virtual-rerender-with-unmount 106 109 10
InfoButton mount 23 18 5000 Possible regression
MakeStyles mount 1117 1111 50000
Persona mount 2019 2001 5000
SpinButton mount 1600 1507 5000

@fabricteam
Copy link
Collaborator

fabricteam commented May 2, 2023

🕵 fluentuiv9 No visual regressions between this PR and main

Copy link
Contributor

@sopranopillow sopranopillow left a comment

Choose a reason for hiding this comment

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

Looks good!

YuanboXue-Amber and others added 4 commits May 3, 2023 04:56
…seAvatar.tsx

Co-authored-by: Makoto Morimoto <Humberto.Morimoto@microsoft.com>
…ext.ts

Co-authored-by: Makoto Morimoto <Humberto.Morimoto@microsoft.com>
…ext.ts

Co-authored-by: Makoto Morimoto <Humberto.Morimoto@microsoft.com>
Co-authored-by: Makoto Morimoto <Humberto.Morimoto@microsoft.com>
@YuanboXue-Amber YuanboXue-Amber enabled auto-merge (squash) May 3, 2023 02:57
@YuanboXue-Amber YuanboXue-Amber merged commit 6d08485 into microsoft:master May 3, 2023
25 of 27 checks passed
@YuanboXue-Amber YuanboXue-Amber deleted the avatar-shape branch May 3, 2023 03:35
@msft-fluent-ui-bot
Copy link
Collaborator

🎉@fluentui/react-avatar@v9.5.0 has been released which incorporates this pull request.:tada:

Handy links:

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.

None yet

6 participants