Adapts last commit badge to updated user_avatar_link that uses GlAvatar
What does this MR do and why?
Fixes #355858 (closed)
Ensures that updated user_avatar_link (that now uses GlAvatar) is properly displayed in last commit badge (app/assets/javascripts/repository/components/last_commit.vue
)
Screenshots or screen recordings
before (feature flag disabled) |
---|
![]() |
![]() |
feature flag disabled | enabled |
---|---|
![]() |
![]() |
![]() |
![]() |
How to set up and validate locally
-
Open project root and check how the user avatar in last commit badge looks (NOTE: there are two variants of user avatars for last commit: one is available in local dev instance under http://localhost:3000/gitlab-instance-858b5cf1/Monitoring, another under http://localhost:3000/h5bp/html5-boilerplate)
-
Enable feature flag that would switch user_avatar_link to use the new version
Feature.enable(:gl_avatar_for_all_user_avatars)
-
Check project root again
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.