-
Notifications
You must be signed in to change notification settings - Fork 3.1k
bug/69230 Use enhanced Primer::OpenProject::AvatarWithFallback to render initials in a styled SVG when avatar img src is nil/blank
#21343
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
Conversation
Primer::Beta::Avatar to render initials in a styled SV…Primer::Beta::Avatar to render initials in a styled SVG when avatar img src is nil/blank
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.
Too many open tabs and accidentally pressed the wrong buttons. Did not mean to approve this one yet 😅
Bruno did not mean to approve yet :)
…yled SVG when avatar img src is nil/blank
d453661 to
913494c
Compare
Primer::Beta::Avatar to render initials in a styled SVG when avatar img src is nil/blankPrimer::OpenProject::AvatarWithFallback to render initials in a styled SVG when avatar img src is nil/blank
HDinger
left a comment
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.
The changes itself look fine, but I am wondering whether we should not make that cahnge inside the Users::AvatarComponent directly instead of replacing it with Avatar and name (which the existing component is already doing for you).
I am fine however, with keeping it like this for 17.0 given the time we have and do the full replacement later
I’m not certain we can implement that change yet, as it would be an app-wide update, and we would then lose features like hovercards. Regardless, that’s a task I’d prefer to handle separately from the release branch due to the increased blast radius. |
I think we will be able to preserve them, given that you basically just have to register a stimulus controller if I remember correctly. In any way, I agree, it is too dangerous that shortly before the release 👍 |
|
Sounds good @HDinger I've created a maintenance wp to cater for this change: https://community.openproject.org/wp/70354 |
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-wise this looks fine. Unfortunately I still don't have Hocuspocus running successfully in my dev environment, That said - given our exhaustive review of the upstream changes, as well as the fact @HDinger's already looked at this, this should be good to merge! 💯 you're crushing it!
https://community.openproject.org/wp/69230
Primer::Beta::AvatarasPrimer::OpenProject::AvatarWithFallbackto render initials in a styled SVG when avatar img src is nil/blank primer_view_components#387Note
Handling for broken image links (gravatar urls) will followup separately. See: opf/primer_view_components#396