Skip to content

fix: add missing imports for Extended Post Status block editor panel#884

Merged
GaryJones merged 1 commit intodevelopfrom
fix/custom-status-block-missing-imports
Jan 11, 2026
Merged

fix: add missing imports for Extended Post Status block editor panel#884
GaryJones merged 1 commit intodevelopfrom
fix/custom-status-block-missing-imports

Conversation

@GaryJones
Copy link
Copy Markdown
Contributor

Summary

The "Extended Post Status" dropdown was not appearing in the block editor sidebar when editing posts. This panel allows users to select custom statuses (Pitch, Assigned, In Progress, etc.) instead of the core WordPress statuses.

Root cause: SelectControl and PluginPostStatusInfo were used in custom-status-block.js but never imported, causing the registerPlugin() call to fail silently.

Additional fix: Refactored webpack.config.js to use separate configurations:

  • custom-status-block: Uses default wp-scripts externalization (runs in block editor where @WordPress packages are globals)
  • calendar-react: Bundles @WordPress packages (runs outside block editor context where globals aren't available)

Test plan

  • Edit a draft post in the block editor
  • Verify "Extended Post Status" panel appears in the sidebar (below the core Status panel)
  • Verify custom statuses (Pitch, Assigned, In Progress, Draft, Pending Review) appear in the dropdown
  • Verify selecting a custom status works and persists on save
  • Verify the Calendar page still works correctly (uses calendar-react bundle)

🤖 Generated with Claude Code

The Extended Post Status dropdown was not appearing in the block editor because
SelectControl and PluginPostStatusInfo were used but never imported, causing
the registerPlugin call to fail silently.

Also refactored webpack.config.js to use separate configurations for each entry
point: custom-status-block now uses default wp-scripts externalization since it
runs in the block editor where @WordPress packages are available as globals,
while calendar-react continues to bundle them for use outside the editor context.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@GaryJones GaryJones requested a review from a team as a code owner January 11, 2026 16:37
@GaryJones GaryJones self-assigned this Jan 11, 2026
@GaryJones GaryJones added this to the 0.10.3 milestone Jan 11, 2026
@GaryJones GaryJones merged commit a7d6589 into develop Jan 11, 2026
10 checks passed
@GaryJones GaryJones deleted the fix/custom-status-block-missing-imports branch January 11, 2026 16:42
@GaryJones GaryJones mentioned this pull request Jan 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant