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

fix crash when creating initials for user without first and last name #2364

Merged
merged 9 commits into from
Nov 6, 2024

Conversation

jivey
Copy link
Member

@jivey jivey commented Oct 21, 2024

https://openstax.atlassian.net/browse/CORE-587

Assignable students do not have first and last names associated, so REX crashes trying to make initials for the dropdown menu. Suggestions for alternatives to "AU" (Anonymous User? Assignable User?) are welcome.

@jivey jivey requested a review from a team as a code owner October 21, 2024 18:54
@TomWoodward TomWoodward temporarily deployed to rex-web-fix-first-last--8kxudq October 21, 2024 18:54 Inactive
@bethshook
Copy link
Contributor

that's a tough one. my only other ideas are ME and OS

@RoyEJohnson
Copy link
Contributor

A question mark would be unambiguous.

@TomWoodward
Copy link
Member

if you made them spaces it would show an empty circle, i feel like even that would be less confusing than AU, i'm not sure what people are gonna think when they see that. only other thing i can think of is change the thing entirely to show like a profile icon (maybe only if there are no initials?)

display: block;
width: auto;
height: 3.5rem;
}
Copy link
Member Author

Choose a reason for hiding this comment

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

Something with the snapshots is duplicating styles, there's multiple copies of the same rules in this spec...

@TomWoodward TomWoodward merged commit 006fbba into main Nov 6, 2024
7 of 9 checks passed
@TomWoodward TomWoodward deleted the fix-first-last-initial branch November 6, 2024 14:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants