Skip to content

Missing user popover for user avatars in several places across GitLab

Summary

We introduced popovers showing detailed user info as a part of gitlab-foss#49090 (closed) back in %11.6 (via gitlab-foss#50157 (closed)), since then, the feature has evolved to be available across several places within GitLab.

User Popover
image

The problem

There are still many places, as listed below, where user popovers do not show up, thus making the feature behaviour inconsistent.

This makes it more difficult to gather information about that user and determine whether they are a GitLab team member or a member of the community.

Places where user popover on hover is missing

Note: Be sure to put an MR link next to list item if an MR is addressing it.

Proposal

Every place where we show a user avatar or prettified username (eg; within rendered markdown), hovering on it should show user popover. Adding a popover support to any avatar link element is fairly easy, as it needs 2 things as follows;

  • Data attributes containing id (numeric ID) and username: data-user-id & data-username
  • CSS class js-user-link
Edited by Kushal Pandya