-
Notifications
You must be signed in to change notification settings - Fork 32
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
[WD-10833] - Indicate logged-in-user-email #779
Conversation
1dc4bd0
to
a3e3234
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.
Nice, this works :)
Some simplification ideas below.
d6daa7d
to
8c20079
Compare
92bbb0e
to
5540d43
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.
1
The new navigation item should be hidden on the login screens. Like in the screen below, there is the icon for the username partially visible, where it shouldn't be.
2
Design question also for @piperdeck : Shall we add truncation for the overflow case and a bit of right margin?
3
In the design, the "Log out" button was moved to the end of the navigation to be placed directly below "Report a bug".
fdff7e2
to
22f66b1
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.
Code and QA looks good to me.
22f66b1
to
502ec1d
Compare
- Conditional rendering of username in Navigation.tsx. - New custom react hook, useLoggedInUser. - Passed through additional properties such as loggedInUserName and loggedInUserID Signed-off-by: Nkeiruka <[email protected]>
502ec1d
to
3dd7873
Compare
Hi @Kxiru, could you please post screenshots of the QA steps? I wasn't able to stand up a testing lxd instance in order to test the OIDC behaviour, but I'd really like to review this for you. |
I've added updated screenshots to the PR description for you. |
LGTM |
Done
Pending Design Draft
QA
Screenshots (updated)
Authenticated using a Certificate:
![image](https://private-user-images.githubusercontent.com/58699506/336374792-8234f50b-fdfe-4290-b02f-ed992330df32.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1MTQyMTIsIm5iZiI6MTcyMzUxMzkxMiwicGF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NTE1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgwY2Y1OTI1NDI0N2E2NWFjOGY1MDk0NDk5ZDZjMmYzZjM3MmQ0OWY0ZTk3ZDYxNmFkM2VmMzMzOTBiZTJlZmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.wWMCTBbI84l8OwpPKj868dFSaevd7m1sH1z2qw5bV7I)
Authenticated using OIDC- Inspect element used to replace username with email address (For users with no username) and show truncation:
![image](https://private-user-images.githubusercontent.com/58699506/336375400-4a8ebc8d-f2bc-4d64-babb-2073c3db440a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM1MTQyMTIsIm5iZiI6MTcyMzUxMzkxMiwicGF0aCI6Ii81ODY5OTUwNi8zMzYzNzU0MDAtNGE4ZWJjOGQtZjJiYy00ZDY0LWJhYmItMjA3M2MzZGI0NDBhLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA4MTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwODEzVDAxNTE1MlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMwNTE3MTNjYmM5MDNkMzZiNDcyMTkxZjI5ZGJlZGUxYzRjYzkyMGZhYTU1OTRhYjZkOTQ2MmM4NzcxZTkyZmMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.Y5w3pJ6Gts6UqoGoopGkOqi0UUIsucHmtNvU6bkt2JA)