Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat/40: declare product compatibility #72

Merged
merged 48 commits into from
Aug 23, 2024
Merged

feat/40: declare product compatibility #72

merged 48 commits into from
Aug 23, 2024

Conversation

Sidsector9
Copy link
Member

@Sidsector9 Sidsector9 commented Feb 26, 2024

All Submissions:

  • Does your code follow the WooCommerce Sniffs variant of WordPress coding standards?
  • Have you written new tests for your changes, as applicable?
  • Have you successfully run tests with your changes locally?
  • Will this change require new documentation or changes to existing documentation?

Changes proposed in this Pull Request:

Closes #40 .
Depends on woocommerce/woocommerce#45143

Steps to test the changes in this Pull Request:

Changelog entry

Add - Add support for the WooCommerce Product Block Editor.

@Sidsector9 Sidsector9 self-assigned this Feb 26, 2024
@Sidsector9 Sidsector9 added the status: blocked The issue is blocked from progressing, waiting for another piece of work to be done. label Feb 26, 2024
@jeffpaul
Copy link
Contributor

Noting that this work is blocked by woocommerce/woocommerce#45143

@jeffpaul jeffpaul added this to the Future Release milestone Apr 1, 2024
@jeffpaul
Copy link
Contributor

@Sidsector9 is this unblocked now that woocommerce/woocommerce#46741 is merged (and part of Woo 8.9.0)?

@Sidsector9
Copy link
Member Author

@jeffpaul I'll go through the upstream thread and confirm if it unblocks.

@vikrampm1 vikrampm1 marked this pull request as draft April 29, 2024 11:51
@Sidsector9 Sidsector9 changed the title [WIP] feat/40: declare product compatibility feat/40: declare product compatibility May 13, 2024
@Sidsector9 Sidsector9 requested a review from dkotter May 13, 2024 16:07
@jeffpaul jeffpaul removed the status: blocked The issue is blocked from progressing, waiting for another piece of work to be done. label May 13, 2024
Copy link
Contributor

@dkotter dkotter left a comment

Choose a reason for hiding this comment

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

Few minor things I've flagged.

Couple other questions:

  1. Are there any new E2E tests we want to / should add?
  2. If I'm following the dependencies here correctly, seems the work here relies on Woo 8.9, is that correct? If so, do we need to wait to release this until 8.9 becomes our minimum?

includes/Admin/Product_Editor_Compatibility.php Outdated Show resolved Hide resolved
includes/Admin/Product_Editor_Compatibility.php Outdated Show resolved Hide resolved
package.json Show resolved Hide resolved
Copy link
Contributor

@wjrosa wjrosa left a comment

Choose a reason for hiding this comment

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

Code looks good. Left some minor suggestions 👍

@vikrampm1
Copy link
Contributor

@Sidsector9 some minor suggestions to resolve and then we can move this to UAT.

@@ -37,7 +37,7 @@
"@woocommerce/dependency-extraction-webpack-plugin": "^1.4.0",
"@woocommerce/eslint-plugin": "^2.2.0",
"@wordpress/env": "^10.0.0",
"@wordpress/scripts": "^27.9.0",
"@wordpress/scripts": "^24.6.0",
Copy link
Contributor

Choose a reason for hiding this comment

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

This downgrade is purposeful I assume?

Copy link
Member Author

@Sidsector9 Sidsector9 Jul 30, 2024

Choose a reason for hiding this comment

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

@jeffpaul yes, React version mismatch

if ( 'simple' === product_type && ! sku.length ) {
setSkuError(
sprintf(
__( `Please add an SKU to sync %s with Square. The SKU must match the item's SKU in your Square account.`, 'woocommerce-square' ),
Copy link
Contributor

Choose a reason for hiding this comment

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

Please update to "Please add a SKU..."

Copy link
Member Author

Choose a reason for hiding this comment

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

@jeffpaul although SKU starts with a consonant, I think it will still use an "an" as "SKU" is typically pronounced as "ess-kay-you," starting with a vowel sound ("ess").

/**
* External dependencies
*/
import { useWooBlockProps } from '@woocommerce/block-templates';
Copy link
Contributor

Choose a reason for hiding this comment

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

Looks like eslint warning that we should be able to resolve here

@qasumitbagthariya
Copy link
Contributor

Regression / Smoke Test Report ✅

Tested with Archive File created via "php woorelease.phar build repo_URL" (Composer version 2.5.5, npm version 8.19.4, node version 16.20.0)

Status- Working expected with Plugin Archive/Zip file same as fix specific branch.

Testing Environment

  • WordPress: 6.6.1
  • Theme: Storefront 4.6.0
  • Theme: Twenty Twenty-Four 1.2
  • WooCommerce - 9.1.4
  • PHP: 8.0.30
  • Web Server: Nginx 1.20.2
  • Browser: Chrome
  • OS: macOS Ventura 13.3
  • Branch: smoke-testing

Next Step- Ready to Merge 🚀

@qasumitbagthariya
Copy link
Contributor

qasumitbagthariya commented Aug 13, 2024

@Sidsector9

I encountered a sync failure while regression in the following scenario where the SOR is changed from Square to WooCommerce.

Steps to Reproduce:

  1. Set the SOR to Square
  2. Create a variable product in the Square Dashboard.
  3. import the product.
  4. After the variable product is imported successfully, change the SOR from Square to WooCommerce.
  5. Run a manual sync.
image

Testing Environment

  • WordPress: 6.6.1
  • Theme: Twenty Twenty-Four 1.2
  • WooCommerce - 9.1.4
  • PHP: 8.0.30
  • Web Server: Nginx 1.20.2
  • Browser: Chrome
  • OS: macOS Ventura 13.3
  • Branch: smoke-testing

@qasumitbagthariya
Copy link
Contributor

@Sidsector9 Approving the regression testing, as I have created a separate issue 👍

@vikrampm1 vikrampm1 modified the milestones: Future Release, 4.8.0 Aug 23, 2024
@vikrampm1 vikrampm1 marked this pull request as ready for review August 23, 2024 14:48
@vikrampm1 vikrampm1 mentioned this pull request Aug 23, 2024
20 tasks
@dkotter dkotter merged commit 0dedd98 into trunk Aug 23, 2024
4 of 6 checks passed
@dkotter dkotter deleted the feat/40 branch August 23, 2024 16:12
@iamdharmesh iamdharmesh mentioned this pull request Aug 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: e2e testing status: blocked The issue is blocked from progressing, waiting for another piece of work to be done. status: e2e tests failing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Product Editor Compatibility
6 participants