Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Merge branch 'feat/add-default-single-product-html-template' of https…
Browse files Browse the repository at this point in the history
…://github.com/woocommerce/woocommerce-blocks into feat/wrap-up-default-single-product-html-template
  • Loading branch information
gigitux committed Mar 21, 2023
2 parents 8acd3cc + 66afe60 commit c22c861
Show file tree
Hide file tree
Showing 69 changed files with 408 additions and 1,412 deletions.
6 changes: 3 additions & 3 deletions .github/patch-initial-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ The release pull request has been created! This checklist is a guide to follow f
- [ ] Ensure you pull your changes from the remote, since GitHub Actions will have added new commits to the branch.
- [ ] Check the version and date in the changelog section within `readme.txt`, e.g. `= {{version}} - YYYY-MM-DD =`
- [ ] Check the changelog matches the one in the pull request description above.
- [ ] Update compatibility sections (if applicable). **Note:** Do not change the stable tag or plugin version; this is automated.
- [ ] Run `npm run change-versions` to update the version numbers in several files. Write the version number you are releasing: {{version}}.
- [ ] Update compatibility sections (if applicable).
- [ ] Push above changes to the release branch.

## Create the Testing Notes
Expand Down Expand Up @@ -46,7 +47,6 @@ Each porter is responsible for testing the PRs that fall under the focus of thei

- [ ] Go through the description of the release pull request and edit it to update all the sections and checklist instructions there.
- [ ] Execute `npm run deploy`
- Note: the script automatically updates version numbers (commits on your behalf).
- **ALERT**: This script will ask you if this release will be deployed to WordPress.org. You should only answer yes for this release **if it's the latest release and you want to deploy to WordPress.org**. Otherwise, answer no. If you answer yes, you will get asked additional verification by the `npm run deploy` script about deploying a patch release to WordPress.org.

## If this release is deployed to WordPress.org
Expand All @@ -55,8 +55,8 @@ Each porter is responsible for testing the PRs that fall under the focus of thei
- [ ] Edit the [GitHub release](https://github.com/woocommerce/woocommerce-gutenberg-products-block/releases) and copy changelog into the release notes.
- [ ] The `#woo-blocks-repo` slack instance will be notified about the progress with the WordPress.org deploy. Watch for that. If anything goes wrong, an error will be reported and you can followup via the GitHub actions tab and the log for that workflow.
- [ ] After the wp.org workflow completes, confirm the following
- [ ] Changelog, Version, and Last Updated on [WP.org plugin page](https://wordpress.org/plugins/woo-gutenberg-products-block/) is correct.
- [ ] Confirm svn tag is correct, e.g. [{{version}}](https://plugins.svn.wordpress.org/woo-gutenberg-products-block/tags/{{version}}/)
- [ ] Changelog, Version, and Last Updated on [WP.org plugin page](https://wordpress.org/plugins/woo-gutenberg-products-block/) is correct.
- [ ] Confirm [WooCommerce.com plugin page](https://woocommerce.com/products/woocommerce-gutenberg-products-block/) is updated. Note: this can take several hours, feel free to check it the following day.
- [ ] Download zip and smoke test.
- [ ] Test updating plugin from previous version.
Expand Down
14 changes: 5 additions & 9 deletions .github/release-initial-checklist.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ The release pull request has been created! This checklist is a guide to follow f
- [ ] Ensure you pull your changes from the remote, since GitHub Actions will have added new commits to the branch.
- [ ] Check the version and date in the changelog section within `readme.txt`, e.g. `= {{version}} - YYYY-MM-DD =`
- [ ] Check the changelog matches the one in the pull request description above.
- [ ] Update compatibility sections (if applicable). **Note:** Do not change the stable tag or plugin version; this is automated.
- [ ] Run `npm run change-versions` to update the version numbers in several files. Write the version number you are releasing: {{version}}.
- [ ] Update compatibility sections (if applicable).
- [ ] Update _Requires at least_, _Tested up to_, and _Requires PHP_ sections at the top of `readme.txt`. Note, this should also be the latest WordPress version available at time of release.
- [ ] Update _Requires at least_, _Requires PHP_, _WC requires at least_, and _WC tested up to_ at the top of `woocommerce-gutenberg-products-block.php`. Note, this should include requiring the latest WP version at the time of release. For _WC requires at least_, use L1 (we publicly communicate L0 but technically support L1 to provide some space for folks to update). So this means if the current version of WooCommerce core is 5.8.0, then you'll want to put 5.7.0 here.
- [ ] If necessary, update the value of `$minimum_wp_version` at the top of the `woocommerce-gutenberg-products-block.php` file to the latest available version of WordPress.
Expand Down Expand Up @@ -64,7 +65,6 @@ Each porter is responsible for testing the PRs that fall under the focus of thei

- [ ] Execute `npm run deploy`
- The script will ask you to enter the version number to tag. Please enter the version we're releasing right now. Do not publish any dev tags as a release.
- Note: the script automatically updates version numbers on Github (commits on your behalf).
- **ALERT**: This script will ask you if this release will be deployed to WordPress.org. You should answer yes for this release even if it is a pre-release.
- A GitHub release will automatically be created and this will trigger a workflow that automatically deploys the plugin to WordPress.org.

Expand All @@ -74,21 +74,16 @@ Each porter is responsible for testing the PRs that fall under the focus of thei
- [ ] Edit the [GitHub release](https://github.com/woocommerce/woocommerce-gutenberg-products-block/releases) and copy changelog into the release notes. Ensure there is a release with the correct version, the one you entered above.
- [ ] The `#woo-blocks-repo` slack instance will be notified about the progress with the WordPress.org deploy. Watch for that. If anything goes wrong, an error will be reported and you can followup via the GitHub actions tab and the log for that workflow.
- [ ] After the wp.org workflow completes, confirm the following
- [ ] Changelog, Version, and Last Updated on [WP.org plugin page](https://wordpress.org/plugins/woo-gutenberg-products-block/) is correct.
- [ ] Confirm svn tag is correct, e.g. [{{version}}](https://plugins.svn.wordpress.org/woo-gutenberg-products-block/tags/{{version}}/)
- [ ] Changelog, Version, and Last Updated on [WP.org plugin page](https://wordpress.org/plugins/woo-gutenberg-products-block/) is correct.
- [ ] Confirm [WooCommerce.com plugin page](https://woocommerce.com/products/woocommerce-gutenberg-products-block/) is updated. Note: this can take several hours, feel free to check it the following day.
- [ ] Download zip and smoke test.
- [ ] Test updating plugin from previous version.

## After Workflow completes

- [ ] Merge this pull request back into `trunk`. This may have merge conflicts needing resolved if there are any cherry-picked commits in the release branch.
- [ ] Update version on the `trunk` branch to be for the next version of the plugin and include the `dev` suffix (e.g. something like [`2.6-dev`](https://github.com/woocommerce/woocommerce-gutenberg-products-block/commit/e27f053e7be0bf7c1d376f5bdb9d9999190ce158)) for the next version. Be sure to update the version number in the following files:
- [ ] `package-lock.json`
- [ ] `package.json`
- [ ] `readme.txt`
- [ ] `src/Package.php`
- [ ] `woocommerce-gutenberg-products-block.php`.
- [ ] Run `npm run change-versions` to update the version in `trunk` to the next version of the plugin and include the `dev` suffix. For example, if you released 2.5.0, you should update the version in `trunk` to 2.6.0-dev.
- [ ] Update the schedules p2 with the shipped date for the release (PdToLP-K-p2).
- [ ] Edit the GitHub milestone of the release you just shipped and add the current date as the due date (this is used to track ship date as well).

Expand Down Expand Up @@ -132,6 +127,7 @@ This only needs to be done if this release is the last release of the feature pl
- Ping porters from each team to know which changelog entries need to be highlighted. Ask them to write a short text and optionally provide a screenshot. They can use previous posts for inspiration, we usually try to highlight new features or API changes.
- Ensure the release notes are included in the post verbatim.
- Don't forget to use category `WooCommerce Blocks Release Notes` for the post.
- If any of the PRs in this release is labelled with `needs dev-note`, include it in the post.
- [ ] Add highlights to the WC core release post (do this even if the release you are doing is not merged into WC core):
- Check which WC core version will include the WC Blocks release you just did (reference: PdToLP-K-p2).
- Go to its Release Thread and search the _Feature Highlights_ comment (example: p6q8Tx-2gl-p2).
Expand Down
18 changes: 0 additions & 18 deletions assets/js/atomic/blocks/component-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,24 +81,6 @@ registerBlockComponent( {
),
} );

registerBlockComponent( {
blockName: 'woocommerce/product-category-list',
component: lazy( () =>
import(
/* webpackChunkName: "product-category-list" */ './product-elements/category-list/block'
)
),
} );

registerBlockComponent( {
blockName: 'woocommerce/product-tag-list',
component: lazy( () =>
import(
/* webpackChunkName: "product-tag-list" */ './product-elements/tag-list/block'
)
),
} );

registerBlockComponent( {
blockName: 'woocommerce/product-stock-indicator',
component: lazy( () =>
Expand Down
2 changes: 0 additions & 2 deletions assets/js/atomic/blocks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ import './product-elements/button';
import './product-elements/summary';
import './product-elements/sale-badge';
import './product-elements/sku';
import './product-elements/category-list';
import './product-elements/tag-list';
import './product-elements/stock-indicator';
import './product-elements/add-to-cart';
import './product-elements/add-to-cart-form';
Expand Down

This file was deleted.

71 changes: 0 additions & 71 deletions assets/js/atomic/blocks/product-elements/category-list/block.tsx

This file was deleted.

This file was deleted.

41 changes: 0 additions & 41 deletions assets/js/atomic/blocks/product-elements/category-list/edit.tsx

This file was deleted.

56 changes: 0 additions & 56 deletions assets/js/atomic/blocks/product-elements/category-list/index.ts

This file was deleted.

21 changes: 0 additions & 21 deletions assets/js/atomic/blocks/product-elements/category-list/save.tsx

This file was deleted.

23 changes: 0 additions & 23 deletions assets/js/atomic/blocks/product-elements/category-list/style.scss

This file was deleted.

This file was deleted.

13 changes: 0 additions & 13 deletions assets/js/atomic/blocks/product-elements/tag-list/attributes.ts

This file was deleted.

Loading

0 comments on commit c22c861

Please sign in to comment.