Skip to content

Replace `image_tag avatar_icon_for_user` with `Pajamas::AvatarComponent`

Dan MH requested to merge 375082-danmh-sidebar-avatar-pj-migration into master

What does this MR do and why?

Describe in detail what your merge request does and why.

As part of Pajamas Migration Day, migrate avatar instances from haml files to use the Pajamas-compliant component.

Related epic &8818 (closed)

Avatars migrated

Related issues

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Sidebar profile

Before After
127.0.0.1_3000_-profile_preferences__2 127.0.0.1_3000_-profile_preferences__4
127.0.0.1_3000_-profile_preferences__3 127.0.0.1_3000_-profile_preferences__5
127.0.0.1_3000_-profile_preferences__1 127.0.0.1_3000_-_profile_preferences

Pipeline schedule

Before After
127.0.0.1_3000_flightjs_Flight_-_pipeline_schedules 127.0.0.1_3000_flightjs_Flight_-pipeline_schedules__2

Milestone participants

Before After
127.0.0.1_3000_flightjs_Flight_-milestones_6__1 127.0.0.1_3000_flightjs_Flight_-_milestones_6

Project forks

Before After
127.0.0.1_3000_flightjs_Flight_-forks__2 127.0.0.1_3000_flightjs_Flight_-forks__1
127.0.0.1_3000_flightjs_Flight_-forks__3 127.0.0.1_3000_flightjs_Flight_-forks__4

Commit comments

Before After
127.0.0.1_3000_flightjs_Flight_-commit_8749d49930866a4871fa086adbd7d2057fcc3ebb__10 127.0.0.1_3000_flightjs_Flight_-commit_8749d49930866a4871fa086adbd7d2057fcc3ebb__8

How to set up and validate locally

Sidebar profile

Pipeline schedule

  1. Navigate to a project. For example http://127.0.0.1:3000/flightjs/Flight/ .
  2. On the left sidebar, select CI/CD > Schedules. For example http://127.0.0.1:3000/flightjs/Flight/-/pipeline_schedules/
  3. If no schedules exist, create one following the instructions in the docs.
  4. View avatar in the list.

Milestone participants

  1. Navigate to a project. For example http://127.0.0.1:3000/flightjs/Flight/ .
  2. On the left sidebar, select Issues > Milestones. For example http://127.0.0.1:3000/flightjs/Flight/-/milestones/6#tab-participants
  3. If no milestones exist, create one following the instructions in the docs. Then assign the milestone to issues or merge requests.
  4. View avatars in the participants tab list.

Project forks

  1. Navigate to a project. For example http://127.0.0.1:3000/flightjs/Flight/ .
  2. View project forks. For example http://127.0.0.1:3000/flightjs/Flight/-/forks .
  3. If no forks exist create one.
  4. See fork creator avatar in the list.

Commit note

  1. Navigate to a project. For example http://127.0.0.1:3000/flightjs/Flight/ .
  2. View an individual commit. For example http://127.0.0.1:3000/flightjs/Flight/-/commit/8749d49930866a4871fa086adbd7d2057fcc3ebb .
  3. Create a comment on the commit.
  4. See avatar in the comments.
  5. Create system note by mentioning commit in an issue/MR comment.

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #375082 (closed)

Edited by Dan MH

Merge request reports