Skip to content

GOOWOO-749 remove beta product editor#3542

Open
mserino wants to merge 4 commits into
developfrom
add/GOOWOO-749-remove-beta-product-editor
Open

GOOWOO-749 remove beta product editor#3542
mserino wants to merge 4 commits into
developfrom
add/GOOWOO-749-remove-beta-product-editor

Conversation

@mserino

@mserino mserino commented Jun 26, 2026

Copy link
Copy Markdown
Collaborator

Changes proposed in this Pull Request:

Closes GOOWOO-749.

Background

WooCommerce is retiring the beta block-based product editor (@woocommerce/product-editor) in WC 11.0 (targeting July 28, 2026), with deprecation warnings starting in WC 10.9. This PR removes all integration code before that deadline to avoid breakage.

What was removed

  • The js/src/blocks/ directory — five custom blocks that extended the beta product editor with a "Google for WooCommerce" tab
  • ProductBlocksService.php — handled asset registration and block template injection for the beta editor
  • ChannelVisibilityBlock.php — registered the channel visibility block type with the WooCommerce block registry
  • Registrations for both classes in CoreServiceProvider.php
  • The blocks webpack entry point and --webpack-src-dir=js/src/blocks from build scripts
  • @woocommerce/product-editor and @woocommerce/block-templates from .externalized.json
  • Associated unit and E2E tests

Screenshots:

Detailed test instructions:

Verify the classic editor still works

  • Open any product in the classic editor (wp-admin → Products → Edit).
  • Confirm the Channel visibility sidebar metabox and the Google for WooCommerce product data tab render correctly.
  • Save the product and confirm values persist.
  • No JS console errors.

Verify the beta editor integration is gone (WC < 11.0 only)

  • Enable the beta product editor: WooCommerce → Settings → Advanced → Features → "New product editor".
  • Open any product — confirm there is no "Google for WooCommerce" tab and no related blocks.
  • No JS console errors about a missing blocks.js script.

Additional details:

Changelog entry

Dev - Remove beta block-based product editor integration ahead of its retirement in WooCommerce 11.0.

@mserino mserino requested a review from asvinb June 26, 2026 15:33
@mserino mserino self-assigned this Jun 26, 2026
@github-actions github-actions Bot added type: enhancement The issue is a request for an enhancement. changelog: add A new feature, function, or functionality was added. labels Jun 26, 2026
@codecov

codecov Bot commented Jun 26, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.5%. Comparing base (99adf60) to head (828caa0).
⚠️ Report is 11 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##             develop   #3542     +/-   ##
===========================================
- Coverage       67.7%   66.5%   -1.1%     
+ Complexity      5322    5283     -39     
===========================================
  Files            518     911    +393     
  Lines          21453   28066   +6613     
  Branches           0    1720   +1720     
===========================================
+ Hits           14513   18669   +4156     
- Misses          6940    9136   +2196     
- Partials           0     261    +261     
Flag Coverage Δ
js-unit-tests 64.1% <ø> (?)
php-unit-tests 67.3% <ø> (-0.4%) ⬇️

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

Files with missing lines Coverage Δ
...ernal/DependencyManagement/CoreServiceProvider.php 0.0% <ø> (ø)

... and 402 files with indirect coverage changes

🚀 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.

@asvinb asvinb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM @mserino . Thanks!. Can you add the changelog please? Thanks!

@asvinb

asvinb commented Jun 29, 2026

Copy link
Copy Markdown
Collaborator

@mserino I just noticed there are some E2E tests which we may need to remove with any associated utils.
tests/e2e/specs/product-editor/block-integration.test.js

Can you check please?

@asvinb asvinb left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM @mserino ! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog: add A new feature, function, or functionality was added. type: enhancement The issue is a request for an enhancement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants