Skip to content

fix: restore metabox javascript - #805

Merged
GaryJones merged 4 commits into
developfrom
fix/restore-dashboard-js
Jan 13, 2026
Merged

fix: restore metabox javascript#805
GaryJones merged 4 commits into
developfrom
fix/restore-dashboard-js

Conversation

@miguelpeixe

@miguelpeixe miguelpeixe commented Jan 13, 2026

Copy link
Copy Markdown
Member

Fixes #804

Restores the assets/dashboard/app.js and assets/dashboard/app.css as seen in version 1.9.7, but following the new standard using @wordpress/scripts.

Testing

  1. While in the develop branch, draft a new post and confirm the "Liveblog" metabox buttons are unresponsive
  2. Checkout this branch and confirm you can "Enable" and "Archive" the post's liveblog.

@miguelpeixe
miguelpeixe requested a review from a team as a code owner January 13, 2026 14:27
@miguelpeixe
miguelpeixe requested a review from GaryJones January 13, 2026 14:28
@GaryJones
GaryJones force-pushed the fix/restore-dashboard-js branch 2 times, most recently from 2c46a70 to 77908b8 Compare January 13, 2026 16:15
@GaryJones GaryJones self-assigned this Jan 13, 2026
@GaryJones GaryJones added the type: bug Something isn't working label Jan 13, 2026
@GaryJones GaryJones added this to the Next 1.x milestone Jan 13, 2026
The Liveblog metabox Enable/Archive buttons were non-functional in
v1.10.0 because the admin JavaScript bundle was inadvertently excluded
from the webpack build. The original implementation incorrectly
referenced build/app.asset.php instead of the correct admin asset file.

This commit renames src/dashboard to src/admin for consistency with
WordPress terminology, updates the webpack entry point accordingly,
and corrects the asset references in liveblog.php. Integration tests
verify that the source file exists and the webpack configuration
includes the admin entry point, which prevents regression of this issue.

Fixes #804

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@GaryJones
GaryJones force-pushed the fix/restore-dashboard-js branch from 77908b8 to 8a14067 Compare January 13, 2026 16:45
@GaryJones
GaryJones merged commit bcf73ac into develop Jan 13, 2026
12 checks passed
@GaryJones
GaryJones deleted the fix/restore-dashboard-js branch January 13, 2026 16:57
@GaryJones GaryJones mentioned this pull request Jan 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Metabox for enabling/archiving Liveblog is unresponsive

2 participants