For selective publishing dropdown the author tile background is not consistent

Created on 16 July 2025, 4 days ago

Overview

Steps to reproduce

  • Create 3 user first , second and third
  • create page with user first / second / third user /
  • From Admin user add page , click on review changes : Note the changes author tile background colour
  • From Admin user add another page , click on review changes : tile background colour has changed

Proposed resolution

User interface changes

πŸ› Bug report
Status

Active

Version

0.0

Component

… to be triaged

Created by

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

Comments & Activities

  • Issue created by @neha_bawankar
  • πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

    So for an author like this, this is not a problem, because the avatar is used:

                          owner:
                            name: Garrett Bobby Ferguson, Jr
                            avatar: /sites/default/files/user-pictures/garrett.jpg
                            uri: /user/12
                            id: 12
    

    But for an author like this, it is a problem:

                          owner:
                            name: Garrett Bobby Ferguson, Sr
                            avatar: null
                            uri: /user/13
                            id: 13
    

    To fix this, we should hash that owner object and use that hash to consistently (deterministically!) generate a color, instead of picking one at random. See https://www.npmjs.com/package/color-hash for example.

  • One more observation , author title colors vary across different browsers, even when viewed at same time

Production build 0.71.5 2024