bb3f38a3d8
* Fix issue where Product Collection wasn't showing anything - Moved queryId logic to a new `useQueryId` custom hook to encapsulate the logic. - Simplified attribute setting in `useEffect` by using a default attributes value. - Utilized `fastDeepEqual` to check for attribute equality These changes fix the issue where the Product Collection block did not display properly in the template editor, ensuring consistent rendering of products. * Add comment * Add changefile(s) from automation for the following project(s): woocommerce-blocks * Remove leftover comment * Add e2e tests for Product Collection block visibility after refresh Added end-to-end tests to verify the visibility of the Product Collection block after page refresh in both Product Archive and Post contexts. - Added tests to ensure the Product Collection block remains visible after refreshing the template or post editor. - Updated existing tests to use `BLOCK_LABELS` for better readability and maintainability. * Improve E2E tests --------- Co-authored-by: github-actions <github-actions@github.com> |
||
---|---|---|
.. | ||
.github | ||
.sources | ||
.vscode | ||
.wordpress-org | ||
assets | ||
bin | ||
changelog | ||
docs | ||
packages | ||
patches | ||
storybook | ||
tests | ||
.distignore | ||
.editorconfig | ||
.env | ||
.eslintignore | ||
.eslintrc.js | ||
.gitattributes | ||
.gitignore | ||
.markdownlint.json | ||
.markdownlintignore | ||
.prettierignore | ||
.prettierrc.js | ||
.stylelintrc.json | ||
.wp-env.json | ||
LICENSE | ||
README.md | ||
babel.config.js | ||
composer.json | ||
composer.lock | ||
docker-compose.yml | ||
global.d.ts | ||
package.json | ||
phpcs.xml | ||
phpunit.xml.dist | ||
postcss.config.js | ||
readme.txt | ||
tsconfig.base.json | ||
tsconfig.json | ||
webpack.config.js | ||
wp-cli.yml |
README.md
WooCommerce Blocks
This is the client for WooCommerce + Gutenberg. This package serves as a space to iterate and explore new Blocks and updates to existing blocks for WooCommerce, and how WooCommerce might work with the Block Editor.
Table of Contents
Documentation
To find out more about the blocks and how to use them, check out the documentation on WooCommerce.com.
If you want to see what we're working on for future versions, or want to help out, read on.
Code Documentation
- Blocks - Documentation for specific Blocks.
- Editor Components - Shared components used in WooCommerce blocks for the editor (Gutenberg) UI.
- WooCommerce Blocks Handbook - Documentation for designers and developers on how to extend or contribute to blocks, and how internal developers should handle new releases.
- WooCommerce Blocks Storybook - Contains a list and demo of components used in the plugin.
Getting started with block development
Run through the "Writing Your First Block Type" tutorial for a quick course in block-building.
For deeper dive, try looking at the core blocks code, or see what components are available.
Other useful docs to explore:
Long-term vision
WooCommerce Blocks are the easiest, most flexible way to build your store's user interface and showcase your products.