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: user profile preview #7150

Merged
merged 2 commits into from
May 27, 2024
Merged

feat: user profile preview #7150

merged 2 commits into from
May 27, 2024

Conversation

kwasniew
Copy link
Contributor

@kwasniew kwasniew commented May 24, 2024

About the changes

Moving user profile info (name and email) from behind the avatar to the top bar. This change is not flagged since it looks good for current and new code. The new profile is modelled as a button so that keyboard navigation works fine.

Current desktop view (username and profile removed from the dropdown and added to top bar):
Screenshot 2024-05-24 at 15 51 12

New desktop view (divider between icons and new profile):
Screenshot 2024-05-24 at 15 39 32

Current and new mobile view (identical): Screenshot 2024-05-24 at 15 39 13

Also works with very long names and emails:
Screenshot 2024-05-24 at 15 53 50

Important files

Discussion points

Copy link

vercel bot commented May 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
unleash-monorepo-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 24, 2024 1:52pm
1 Ignored Deployment
Name Status Preview Comments Updated (UTC)
unleash-docs ⬜️ Ignored (Inspect) Visit Preview May 24, 2024 1:52pm

@@ -216,7 +216,7 @@ const ShowHide: FC<{ mode: 'full' | 'mini'; onChange: () => void }> = ({
display: 'flex',
justifyContent: 'space-between',
alignItems: 'center',
margin: theme.spacing(2, 1, 0, 2),
margin: theme.spacing(2, 1, 0, mode === 'mini' ? 1 : 2),
Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed show/hide nav layout for mini icons

aria-expanded={showProfile}
onClick={() => setShowProfile((prev) => !prev)}
>
<StyledUserAvatar user={profile} />
Copy link
Contributor Author

Choose a reason for hiding this comment

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

moved from UserProfileContent to the UserProfile itself

Copy link
Contributor

@FredrikOseberg FredrikOseberg left a comment

Choose a reason for hiding this comment

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

LGTM

@kwasniew kwasniew merged commit 02c0744 into main May 27, 2024
10 checks passed
@kwasniew kwasniew deleted the user-profile-preview branch May 27, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants