Check that `<user_avatar_link/>` in `app/assets/javascripts/notes/components/noteable_note.vue` works properly with `GlAvatar`
requested to merge 355867-check-that-user_avatar_link-in-app-assets-javascripts-notes-components-noteable_note-vue into master
Fixes #355867 (closed)
Adapts <user_avatar_link/>
in noteable_note.vue
to the new GLAvatar.
GLAvatar doesn't support 40x40 size, which was used in noteable_note.vue
, so I had to use the 32x32 size (which is closest and also aligns with timeline icons)
Screenshots or screen recordings
Noteable note in "Overview"
Mobile:
before | flag off | flag on |
---|---|---|
Desktop:
before | flag off | flag on |
---|---|---|
Noteable note in "Changes"
Mobile:
before | flag off | flag on |
---|---|---|
Desktop:
before | flag off | flag on |
---|---|---|
How to set up and validate locally
- Open an MR (open or closed)
- Add a comment to the MR in Overview and in the Changes tab (code comment), add a subcomment.
- Note how both threads look in mobile and desktop view, in both tabs (Overview and Changes)
- Then enable feature flag that would switch user_avatar_link to use the new version of GLAvatar
Feature.enable(:gl_avatar_for_all_user_avatars)
- Check the added comments 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.
Edited by Kos Palchyk