cockroach icon indicating copy to clipboard operation
cockroach copied to clipboard

ui: How can I tell which user I'm logged in as?

Open a-robinson opened this issue 8 years ago • 5 comments

When I'm logged into the admin UI on a cluster that has multiple registered users, I'd like to know which user account I'm logged in as. I may just be missing it, but I can't seem to find anywhere that calls that out.

@piyush-singh

a-robinson avatar Nov 12 '18 23:11 a-robinson

Hovering over the logout button should indicate which user you are signed in as. Showing just the first letter of the username is probably not useful/discoverable, and instead we should show the full username.

screencap

piyush-singh avatar Nov 13 '18 02:11 piyush-singh

Pretty common to show icon + click to see full name and logout link:

image

image

image

vilterp avatar Nov 13 '18 19:11 vilterp

Hovering over the logout button should indicate which user you are signed in as. Showing just the first letter of the username is probably not useful/discoverable, and instead we should show the full username.

Well that shows how observant I am. I didn't even notice that the letter changed based on your username since I was so used to seeing a C there on production clusters, and I never would have thought to hover over it.

a-robinson avatar Nov 13 '18 19:11 a-robinson

I think there's a legitimate need for a (small) enhancement here, either a tooltip (instead of a title hover), or a clickable dialog like the screenshots above which shows you your username and has a logout link.

vilterp avatar Nov 13 '18 19:11 vilterp

@piyush-singh attaching designs for the user avatar here: https://zpl.io/aR9n7yN

Screen Shot 2019-11-12 at 10 56 39 AM

Note: I'm not sure if we'd be able to pull an 'organization' name into the menu. If not we can just go with the user name and 'log out' link.

Annebirzin avatar Nov 12 '19 16:11 Annebirzin