Fix initials + profile pictures #2186
Reference in New Issue
Block a user
Delete Branch "fix-profile-picture-and-initials"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR makes some fixes to the user_avatar. I think this might have broken in some of the recent UI updates. This does include changes from the user_avatar_form in #2185.
_user_avatar_fieldpartialProfile picture set (no image left and improper initials):

No profile picture set, expecting proper initials:

Household page:

This is something well outside of my current (and small) knowledge of ruby - but after some googling and cursor chatting it seems like the ActiveStorage URLs need to properly be set for the images to work, and I think this has something to do with the variants? If I remove the variant references, the images in the menu/menu component work.
I also added the
preprocessedto the:smallvariant because we know those will be used.If there's a better way to handle this I'm happy to change it - or if this is something that differs between local dev and the real dev I can work around that as well.
Thanks for this fix! This is a very weird one and was not happening prior to some of the recent UI changes I made, which leads me to think it has to do with the context in which we're fetching that attachment URL from.
These fixes are certainly better than the failures we're currently having so I'll get this merged and then try and dig in and see why this all of a sudden started happening and figure out if there's a more standard fix for this.