Problem/Motivation

Badges shown on user profile pages (eg: https://www.drupal.org/u/xjm) are a mix between individual badges and those inherited for the affiliated companies. If some of these companies have the same badges, these are shown duplicated in the user profile. While "it makes sense", it's kind of confusing just to see the same badges twice.

Steps to reproduce

See https://www.drupal.org/u/xjm

Proposed resolution

Either:
- Remove the duplicates
- Or show the company name that the badges come from. It could be: individual badges listing, then "company 1" + badges listing, "company 2" badges listing

Remaining tasks

MR.

CommentFileSizeAuthor
#5 Screenshot 2024-04-22 at 12.50.37.png353.99 KBfjgarlin

Issue fork drupalorg-3442417

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

fjgarlin created an issue. See original summary.

bramdriesen’s picture

I think it should be a combination of both when this happens?

Meaning:
- Remove duplicates
- Show a list of companies below the badge "Associated with organisation A, B, C"

But I would only show the "Associated with" message when there are duplicates. Because in all other cases it's quite clear to which org the badge belongs.

fjgarlin’s picture

Because in all other cases it's quite clear to which org the badge belongs.

If a badge only belongs to one company, you wouldn't know which one it is unless you visit the company profile tho.

pcambra’s picture

I'd be one of the users """affected""" by this, not sure if this change is worth implementing, however I would be more in favor of a group by company/organization rather than removing the duplicates. I do like the "Associated with" naming suggested by @BramDriesen

fjgarlin’s picture

StatusFileSize
new353.99 KB

With that approach, if we show all the text it can get out of hand easily...
example

Maybe show the tooltip on hover?

bramdriesen’s picture

Not sure #5 is that bad actually. Looks a lot less cluttered as showing duplicate badges.

drumm’s picture

A potential solution is putting the badges right next to the organization logo on the left, matching the badge size to the logo size. That makes it more clear where the badges come from. If an organization has more than one badge, then it would have to go to the next line, which would probably be okay in most cases. I do like that it frees up some page real-estate to focus more on the person, but does split up the supporting badges.

If we stick with the right side, let’s make the text a bit more descriptive, like:

  • Cambrico, Ymbra are Bronze Drupal Certified Partners
  • Tag1 is a Platinum Drupal Certified Partner

That helps if you get lost deciding if the text goes with the badge above or below, and is a bit more direct than “Associated with”

b_man made their first commit to this issue’s fork.

  • drumm committed 7c92f354 on 7.x-3.x authored by b_man
    Issue #3442417: De-dupe organization badges in user profile
    
drumm’s picture

Status: Active » Fixed

Deployed!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.