• 
      

    Add a standardized CSS component for users.

    Review Request #14970 — Created March 26, 2026 and submitted

    Information

    Review Board
    release-7.1.x

    Reviewers

    We have references to users throughout the UI, which sometimes are
    accompanied by an avatar and sometimes badges. We don't really have a
    standard way of displaying these, and some in-progress work's about to
    be affected by that once again.

    This change introduces a new rb-c-user CSS component, a dedicated
    template file for generating it, and a Storybook file for viewing it.

    The component standardizes the layout needed to get proper alignment for
    the user, avatar, and badges, helping it fit in elsewhere.

    Existing call sites have been updated to use the new component.

    Tested all uses throughout the UI, making sure content was aligned and
    spaced out correctly.

    Tested all options in Storybook.

    Summary ID
    Add a standardized CSS component for users.
    We have references to users throughout the UI, which sometimes are accompanied by an avatar and sometimes badges. We don't really have a standard way of displaying these, and some in-progress work's about to be affected by that once again. This change introduces a new `rb-c-user` CSS component, a dedicated template file for generating it, and a Storybook file for viewing it. The component standardizes the layout needed to get proper alignment for the user, avatar, and badges, helping it fit in elsewhere. Existing call sites have been updated to use the new component.
    5622c2d2ab708182ff1020e9d8ad6992b3cc02b2

    Description From Last Updated

    Typo: area-label -> aria-label

    daviddavid

    The actual implementation has the avatar before the display name.

    daviddavid

    Given that this is overall a <span>, should we use inline-flex here to avoid it turning into a block?

    daviddavid

    Seems like this should be using user_show_avatar (computed var) instead of show_avatar (raw value)

    daviddavid
    maubin
    1. Ship It!
    2. 
        
    chipx86
    david
    1. 
        
    2. Show all issues

      Typo: area-label -> aria-label

    3. reviewboard/static/rb/css/ui/user.less (Diff revision 2)
       
       
       
      Show all issues

      The actual implementation has the avatar before the display name.

      1. This was a holdover from working on some baseline alignment workarounds.

    4. reviewboard/static/rb/css/ui/user.less (Diff revision 2)
       
       
      Show all issues

      Given that this is overall a <span>, should we use inline-flex here to avoid it turning into a block?

    5. Show all issues

      Seems like this should be using user_show_avatar (computed var) instead of show_avatar (raw value)

    6. 
        
    chipx86
    david
    1. Ship It!
    2. 
        
    chipx86
    Review request changed
    Status:
    Completed
    Change Summary:
    Pushed to release-7.1.x (6622235)