Duplicated badges in user profile view

Created on 22 April 2024, 8 months ago
Updated 9 September 2024, 3 months ago

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.

πŸ› Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

πŸ‡ͺπŸ‡ΈSpain fjgarlin

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

  • Issue created by @fjgarlin
  • πŸ‡§πŸ‡ͺBelgium BramDriesen Belgium πŸ‡§πŸ‡ͺ

    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.

  • πŸ‡ͺπŸ‡ΈSpain fjgarlin

    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.

  • πŸ‡ͺπŸ‡ΈSpain pcambra Asturies

    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

  • πŸ‡ͺπŸ‡ΈSpain fjgarlin

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

    Maybe show the tooltip on hover?

  • πŸ‡§πŸ‡ͺBelgium BramDriesen Belgium πŸ‡§πŸ‡ͺ

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

  • πŸ‡ΊπŸ‡ΈUnited States drumm NY, US

    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”

  • First commit to issue fork.
  • Pipeline finished with Skipped
    3 months ago
    #278624
  • Pipeline finished with Skipped
    3 months ago
    #278629
  • Pipeline finished with Skipped
    3 months ago
    #278631
  • Status changed to Fixed 3 months ago
  • πŸ‡ΊπŸ‡ΈUnited States drumm NY, US

    Deployed!

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

Production build 0.71.5 2024