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: add user email and name in user dropdown menu #558
Conversation
fca4ef8
to
dadee8e
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #558 +/- ##
=======================================
Coverage 72.32% 72.32%
=======================================
Files 51 52 +1
Lines 813 813
Branches 163 158 -5
=======================================
Hits 588 588
Misses 215 215
Partials 10 10 ☔ View full report in Codecov by Sentry. |
2e55de9
to
4202bcc
Compare
12ffa7c
to
a32a5ff
Compare
31a5bd6
to
0845a84
Compare
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.
Can you please add before and after screenshots?
a2258c9
to
c403993
Compare
c403993
to
dfb1acb
Compare
59b333f
to
2869cfc
Compare
2869cfc
to
8f92dca
Compare
3a746dd
to
82783e2
Compare
src/Header.messages.jsx
Outdated
@@ -78,7 +78,7 @@ const messages = defineMessages({ | |||
}, | |||
'header.label.account.menu.for': { | |||
id: 'header.label.account.menu.for', | |||
defaultMessage: 'Account menu for {username}', | |||
defaultMessage: 'Account menu for {name}', | |||
description: 'The aria label for the account menu trigger when the username is displayed in it', |
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.
description: 'The aria label for the account menu trigger when the username is displayed in it', | |
description: 'The aria label for the account menu trigger', |
@@ -37,7 +37,7 @@ exports[`<Header /> minimal renders correctly for authenticated users when minim | |||
alt="" | |||
aria-expanded={false} | |||
aria-haspopup={true} | |||
aria-label="Account menu for edX" | |||
aria-label="Account menu for " |
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.
Why is the name missing in the aria-label? Probably the test needs to be fixed.
@@ -293,7 +291,7 @@ exports[`<Header /> renders correctly for authenticated users on mobile 1`] = ` | |||
type="button" | |||
> | |||
<img | |||
alt="edX" | |||
alt={null} |
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.
This should not be null
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.
Dont we want to make changes in src/MobileHeader.jsx?
3964710
to
38b2148
Compare
74798c0
to
372ba7a
Compare
e75bac6
to
5b1d37c
Compare
5b1d37c
to
c9e0c80
Compare
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.
Some minor comments. Thanks
c9e0c80
to
5edec7b
Compare
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.
LGTM.
a379834
to
b966f33
Compare
b966f33
to
be9c582
Compare
We are removing the username from the registration form that's why we are removing the username from the user-facing views and adding the user email and full name in the user menu dropdown.
Screenshort
VAN-1851