Skip to content

Conversation

@chihsuan
Copy link
Member

@chihsuan chihsuan commented May 2, 2023

Submission Review Guidelines:

Changes proposed in this Pull Request:

This PR changes the product-category-metabox enqueue logic to fix hot reloading.

I noticed that product-category-metabox scripts are loaded on all admin/embed pages. If I understand correctly, I think we only need to load them on product pages.

Currently, react-refresh is not working because react-refresh only allows one copy of both the HMR runtime and the plugin's runtime and HMR is not working with multiple entries.

How to test the changes in this Pull Request:

Using the WooCommerce Testing Instructions Guide, include your detailed testing instructions:

  1. Follow the test instructions in Update/34885 category field in product editor #36869

chihsuan added 2 commits May 2, 2023 22:10
Change to only enqueue on product pages, not all admin pages.
@github-actions github-actions bot added focus: react admin [team:Ghidorah] plugin: woocommerce Issues related to the WooCommerce Core plugin. labels May 2, 2023
@chihsuan chihsuan self-assigned this May 2, 2023
@chihsuan chihsuan marked this pull request as ready for review May 2, 2023 14:25
@chihsuan chihsuan requested a review from louwie17 May 2, 2023 14:25
@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2023

Hi @louwie17,

Apart from reviewing the code changes, please make sure to review the testing instructions as well.

You can follow this guide to find out what good testing instructions should look like:
https://github.com/woocommerce/woocommerce/wiki/Writing-high-quality-testing-instructions

@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2023

Test Results Summary

Commit SHA: 2d2b5d8

Test 🧪Passed ✅Failed 🚨Broken 🚧Skipped ⏭️Unknown ❔Total 📊Duration ⏱️
API Tests26700202691m 1s
E2E Tests1870010019715m 56s

To view the full API test report, click here.
To view the full E2E test report, click here.
To view all test reports, visit the WooCommerce Test Reports Dashboard.

Copy link
Contributor

@louwie17 louwie17 left a comment

Choose a reason for hiding this comment

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

LGTM 🚀

@chihsuan chihsuan merged commit 880459e into trunk May 8, 2023
@chihsuan chihsuan deleted the update/change-product-category-metabox-enqueue branch May 8, 2023 09:19
@github-actions github-actions bot added this to the 7.8.0 milestone May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

plugin: woocommerce Issues related to the WooCommerce Core plugin.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants