Skip to content

feat: refresh the Editors column on each heartbeat - #606

Merged
josephfusco merged 2 commits into
mainfrom
feat/editors-column-live
Sep 27, 2026
Merged

josephfusco merged 2 commits into
mainfrom
feat/editors-column-live

Conversation

@josephfusco

Copy link
Copy Markdown
Collaborator

The cells ride on the post IDs core's inline-edit-post.js already sends every tick for its lock icons, so this adds no request; the column now also appears on non-public post types with an admin screen, which may surprise a site that opted one in to presence without wanting it.

Use of AI Tools

AI assistance: Yes
Tool(s): Claude Code
Model(s): Claude Opus 5.5
Used for: Assisting with the heartbeat handler, client swap and tests.

@josephfusco
josephfusco force-pushed the feat/editors-column-live branch from 50f7b26 to ab89bb3 Compare September 27, 2026 16:26
@github-actions

github-actions Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

🛝 WordPress Playgrounds

Built from 35d84d3

25 users 100 users
Single site Launch single site, 25 users Launch single site, 100 users
Multisite Launch multisite, 25 users Launch multisite, 100 users

@codecov

codecov Bot commented Sep 27, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.35%. Comparing base (01b8a70) to head (35d84d3).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main     #606      +/-   ##
============================================
+ Coverage     95.33%   95.35%   +0.02%     
  Complexity      191      191              
============================================
  Files            24       24              
  Lines          3107     3121      +14     
============================================
+ Hits           2962     2976      +14     
  Misses          145      145              
Flag Coverage Δ
multisite 95.35% <100.00%> (+0.02%) ⬆️
phpunit 70.45% <100.00%> (+0.13%) ⬆️

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.

@josephfusco
josephfusco marked this pull request as ready for review September 27, 2026 16:44
@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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟡 Changes recommended

Address the follower-tab refresh gap, limit presence work to requested posts, and reject unauthorized requests early.

Review effort: Lite
Findings: 2 Medium severity

Open (2)
What changed in this PR

Adds heartbeat-driven refreshes for the post-list Editors column, including UI-enabled non-public post types.

Changes:

  • Adds server-side Heartbeat responses and client-side cell updates.
  • Refactors editor-stack rendering.
  • Updates post-type registration and tests.
File Summary
tests/​test-post-list.php Tests post-type registration and Heartbeat behavior.
includes/​post-list.php Generates editor cells and Heartbeat responses; needs narrower presence queries and early capability checks.
includes/​default-filters.php Registers the Heartbeat handler.
assets/​js/​presence-ping.js Replaces Editors cells; follower tabs need the presence-editors key relayed.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread assets/js/presence-ping.js
Comment thread includes/post-list.php
github-actions Bot added a commit that referenced this pull request Sep 27, 2026
@josephfusco
josephfusco marked this pull request as ready for review September 27, 2026 17:46
@josephfusco
josephfusco merged commit 2a1af18 into main Sep 27, 2026
26 checks passed
@josephfusco
josephfusco deleted the feat/editors-column-live branch September 27, 2026 17:46
@josephfusco josephfusco added [Area] Admin UI Issues for the admin UI integrations [Area] Heartbeat 💓 Issues for the heartbeat subsystem labels Sep 27, 2026
@josephfusco josephfusco added this to the 0.10.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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants