Skip to content

feat: give each user a room-assigned color from Gutenberg's palette - #574

Merged
josephfusco merged 1 commit into
mainfrom
feat/room-assigned-colors
Sep 27, 2026
Merged

josephfusco merged 1 commit into
mainfrom
feat/room-assigned-colors

Conversation

@josephfusco

Copy link
Copy Markdown
Collaborator

Each person keeps the color Gutenberg's getAvatarBorderColor() gives their ID unless someone online already wears it, so the admin bar only disagrees with the editor on a collision until Gutenberg reads the REST color field; the color is only trusted from entry data when it is one of the seven, since clients can write that data and it lands in inline CSS.

Fixes #559

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Assisting with the change and its tests.

@josephfusco josephfusco added [Type] Enhancement A suggestion for improvement of an existing feature [Area] Heartbeat 💓 Issues for the heartbeat subsystem [Area] REST API Issues for the REST API subsystem [Area] Admin UI Issues for the admin UI integrations php Pull requests that update php code Public API Adds a hook, route, constant, or global that third parties can depend on labels Sep 27, 2026
@github-actions github-actions Bot removed the Public API Adds a hook, route, constant, or global that third parties can depend on label Sep 27, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🛝 WordPress Playgrounds

Built from 88a0b9e

5 users 40 users
Single site Launch single site, 5 users Launch single site, 40 users
Multisite Launch multisite, 5 users Launch multisite, 40 users

@codecov

codecov Bot commented Sep 27, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 97.29730% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 95.98%. Comparing base (5f1ced7) to head (88a0b9e).

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #574      +/-   ##
============================================
+ Coverage     95.97%   95.98%   +0.01%     
- Complexity      258      260       +2     
============================================
  Files            25       25              
  Lines          3231     3264      +33     
============================================
+ Hits           3101     3133      +32     
- Misses          130      131       +1     
Flag Coverage Δ
multisite 95.98% <97.29%> (+0.01%) ⬆️
phpunit 72.54% <97.29%> (+0.24%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

Copy link
Copy Markdown
Contributor

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props joefusco.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@josephfusco
josephfusco merged commit 423f9ba into main Sep 27, 2026
22 of 23 checks passed
@josephfusco
josephfusco deleted the feat/room-assigned-colors branch September 27, 2026 00:38
@josephfusco josephfusco added this to the 0.9.0 milestone Sep 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Area] Admin UI Issues for the admin UI integrations [Area] Heartbeat 💓 Issues for the heartbeat subsystem [Area] REST API Issues for the REST API subsystem php Pull requests that update php code [Type] Enhancement A suggestion for improvement of an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

A person's presence color is known only to the block editor, and two people in the same room can share one

1 participant