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

Source user avatar initials from Jupyter Server #1504

Closed
markgrahamdawson opened this issue Oct 4, 2023 · 0 comments · Fixed by #1505 or cylc/cylc-uiserver#510
Closed

Source user avatar initials from Jupyter Server #1504

markgrahamdawson opened this issue Oct 4, 2023 · 0 comments · Fixed by #1505 or cylc/cylc-uiserver#510
Assignees
Labels
Milestone

Comments

@markgrahamdawson
Copy link
Contributor

Problem

The workflow toolbar avatar is currently getting the users first initial as the first value in the username string.
this.user.username[0].toUpperCase()
This is ok, but sometimes this name is an unexpected value, resulting in a confusing letter being presented in the avatar.

Proposed Solution

An alternative option would be to get the users initials from Jupyter Server.

The initials field may or may not be provided so we need to be robust to its absence (using the first letter of the username is a good option if initials aren't provided).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment