woocommerce/plugins/woocommerce-blocks/docs/internal-developers/testing/releases/1143.md

123 lines
6.1 KiB
Markdown
Raw Normal View History

Backport 11.4.x changes in trunk (https://github.com/woocommerce/woocommerce-blocks/pull/11471) * Empty commit for release pull request * Add changelog entries to readme.txt * Update version numbers * Add testing instructions * Update the changelog with woocommerce/woocommerce-blocks#11421 * Always show the `Enable the shipping calculator on the cart page` option in WC Admin (https://github.com/woocommerce/woocommerce-blocks/pull/11421) * Always show `Enable the shipping calculator ...` Always show the `Enable the shipping calculator on the cart page` option no matter of what is used for the cart page. * Update remove_shipping_settings docblock to accurately describe its purpose. --------- Co-authored-by: Mike Jolley <mike.jolley@me.com> * Add a safe guard that the variable is set before accessing it (https://github.com/woocommerce/woocommerce-blocks/pull/11424) * Update zip package link * Modify the <main> HTML tag in the title to 'main' to ensure the title remains intact * Revert "Use the <header> element for the checkout header (https://github.com/woocommerce/woocommerce-blocks/pull/11222)" This reverts commit 9e9ebc50396cb0358757f908090cbc96e412d445. * Remove woocommerce/woocommerce-blocks#11222 from the Changelog and the Testing Notes * Remove woocommerce/woocommerce-blocks#11190 from the Changelog and Testing Notes as it was never merged * Update .zip file with latest changes * Release: 11.4.2 (https://github.com/woocommerce/woocommerce-blocks/pull/11452) * Empty commit for release pull request * Do a version bump to 11.4.1 * Add Instruction Notes and update the Changelog * Update the testing instructions and the changelog and the .zip link * Empty commit for release pull request * Remove the fontSize for the button (https://github.com/woocommerce/woocommerce-blocks/pull/11433) * [Store Customization MVP] Ensure the AI-generated content in patterns is updated on plugin update (https://github.com/woocommerce/woocommerce-blocks/pull/11210) * Update the patterns content after updating the plugin * Remove unused variable and use statement * Schedule action for updating the patterns content on plugin update (for both WooCommerce and WooCommerce Blocks.) * Update condition to remove the plugin folder name * Remove the update function from bootstrap.php * Remove unused use * Fix the condition, since $options['plugin'] is an array * Remove pattern file This was left empty by mistake in a merge, we need to remove the file or we get an error --------- Co-authored-by: Patricia Hillebrandt <patriciahillebrandt@gmail.com> * Fix outer space and title (https://github.com/woocommerce/woocommerce-blocks/pull/11434) * Store Customization > Update products with AI generated content (https://github.com/woocommerce/woocommerce-blocks/pull/11155) * Introduce the ProductUpdater class. * Update the image assignment for the default products content. * Update the default products content. * Introduce the generate_content and get_placeholder_products methods. * Update the get_placeholder_products method and introduce the new create_new_product method. * Verify the hash of the product content and compare it with the hash of the ai generated content to ensure we wont override products modified by the store owner. * Add docblocks and update the structure for the ProductUpdater class. * Pass the vertical images as a param for the PatternUpdater and the ProductUpdater. * Update the provided variable to the PatternUpdater class. * Update the ProductUpdater class to include the requirements for usage of the media_sideload_image method outside the wp-admin area (via API) and other adjustments to the products generation and hashes * remove unnecessary calls to post/product images. * Update the loop for generating products. * Further adjustments to the Product Updater. * Provide the business_description as a param for the generate_content ProductUpdates * Update the default timeout for the AI connection; update the path to the default image. Add a limit of 6 when quering the total products created by the store owner. * Add new neutral placeholder images for products and patterns. * Update the prompt and the logic for the placeholder images. * Remove placeholder images. * Increase max execution time * Update the products query. * Move the media_sideload_image function dependencies to outside of the loop and add comment. * Update text content. * Address code review. * bail early if no business description provided. * Add an extra safety check in case of query errors. * Address CR. * Patterns > Upload optimized version of placeholder image (https://github.com/woocommerce/woocommerce-blocks/pull/11441) * Improve vars name and remove duplicated user name (https://github.com/woocommerce/woocommerce-blocks/pull/11430) * Add overlay with 30% opacity (https://github.com/woocommerce/woocommerce-blocks/pull/11428) * [Store Customization] Update the "Footer with 3 Menus" (https://github.com/woocommerce/woocommerce-blocks/pull/11379) * Fix search bar, spacing and show text in one line * Set site log width * Adjust margins and search bar * Make the search bar fill space on mobile * Update column sizes * Remove width from site logo * [CYS Woo Express] Update large footer (https://github.com/woocommerce/woocommerce-blocks/pull/11413) * Update large footer * Update space between icons * Remove with from site logo * update changelog and testing instructions * bump to 11.4.2 version * [CYS Woo Express] Fix essential header (https://github.com/woocommerce/woocommerce-blocks/pull/11449) * Fix essential header * Fix spacing * update testing instructions * Make groups to adapt better to mobile views (https://github.com/woocommerce/woocommerce-blocks/pull/11463) * update testing instructions and changelog * Unify the search bar layout across patterns (https://github.com/woocommerce/woocommerce-blocks/pull/11445) * Unify the search bar layout across patterns * restore changes * [CYS Woo Express] Footer with simple menu and cart (https://github.com/woocommerce/woocommerce-blocks/pull/11409) * Update footer simple menu cart * Change structure to use rows not columns * Make search fill space * Fix spacing and switch mini-cart and menu * Unify the search bar * Remove mini cart * update testing instructions and changelog * Store Customization > Fetch product images from the Pexels API (https://github.com/woocommerce/woocommerce-blocks/pull/11280) * Introduce the ProductUpdater class. * Update the image assignment for the default products content. * Update the default products content. * Introduce the generate_content and get_placeholder_products methods. * Update the get_placeholder_products method and introduce the new create_new_product method. * Verify the hash of the product content and compare it with the hash of the ai generated content to ensure we wont override products modified by the store owner. * Add docblocks and update the structure for the ProductUpdater class. * Pass the vertical images as a param for the PatternUpdater and the ProductUpdater. * Update the provided variable to the PatternUpdater class. * Update the ProductUpdater class to include the requirements for usage of the media_sideload_image method outside the wp-admin area (via API) and other adjustments to the products generation and hashes * remove unnecessary calls to post/product images. * Update the loop for generating products. * Further adjustments to the Product Updater. * Provide the business_description as a param for the generate_content ProductUpdates * Update the default timeout for the AI connection; update the path to the default image. Add a limit of 6 when quering the total products created by the store owner. * Add new neutral placeholder images for products and patterns. * Update the prompt and the logic for the placeholder images. * Remove placeholder images. * Pass the AI connection as a param and update the get_images_for_pattern method to rely on the results returned from the Pexels API. * update the product updater class to rely on Pexels images and add the ai_connection as a param. * Remove the unused get_random_images method. * Update the patterns endpoint. * Delete unused ChatGPTClient class. * Introduce the new Pexels class. * Remove the Verticals references. * Update the reference for the alt description for images. * Update the scheduled action to populate patterns and products. * Remove unused Verticals classes. * Ensure the Pexels class already returns the array with the expected format for assignment to Patterns and Products. * Introduce the select_image_src_based_on_format method. * Increase max execution time * Increase max execution time * Update the request to rely on the WP.com external-media endpoint instead. * Improve performance for product content update. * Improve quality of images used in products and update queries. * Update the products query. * Move the media_sideload_image function dependencies to outside of the loop and add comment. * Update text content. * Merge base branch * Introduce the should_update_dummy_product method. * Update the method to be triggered on scheduled action to return true. * Change the image format for products to improve performance. * Make portrait the default fallback image format. * Address code review. * bail early if no business description provided. * Add an extra safety check in case of query errors. * Address CR. * Raise the default memory limit. * Update the prompt for the search term for images. * Make sure the 'woocommerce_blocks_allow_ai_connection' option is set to true if the site is connected to AI. * Update the prompt for AI generated content in patterns and initialize the images and alts for the patterns. * Update the prompt for products and introduce the update_dummy_products method. * Update the default number of images returned by Pexels. * Update the default fallback for the expected image format. * Update the prompt for selecting the images. * Add a character limit to the testimonials. * Increase timeout to fetch products data * Address code review. * update changelog * add zip link * fix markdown * remove duplicate testing instructions --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Daniel Dudzic <daniel.dudzic@automattic.com> Co-authored-by: Alba Rincón <albarin@users.noreply.github.com> Co-authored-by: Patricia Hillebrandt <patriciahillebrandt@gmail.com> Co-authored-by: Tom Cafferkey <tjcafferkey@gmail.com> Co-authored-by: Luigi <gigitux@gmail.com> * Release: 11.4.3 (https://github.com/woocommerce/woocommerce-blocks/pull/11496) * bump to 11.4.3 * Empty commit for release pull request * Improve Hero Product Chessboard pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11423) * improve pattern * remove hardcoded font-size * address feedback * update to h2 * Remove group and separator to get rid of the extra space (https://github.com/woocommerce/woocommerce-blocks/pull/11477) * [Store Customization] Update the design for the Product Gallery pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11464) * Remove rating, show only title and price * Improve title spacing and level * Patterns with Search Bar: improve style (https://github.com/woocommerce/woocommerce-blocks/pull/11478) * "Product Collection X Columns" patterns: align "no reviews" text with the star (https://github.com/woocommerce/woocommerce-blocks/pull/11468) * improve line-height * use variable * add testing instructions * Rename pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11487) * update readme * Store Customization > Enhance the Hero Product Split pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11505) * Update the bottom margin for the Hero Product Split and the heading from h3 to h2. * Update heading comment * update testing instructions * Simplify the `Hero Product 3 Split` pattern design (https://github.com/woocommerce/woocommerce-blocks/pull/11495) * Simplify the pattern design * Add char limits to the AI generated content * Fix url * update testing instructions * Product Search Block: unify border-radius (https://github.com/woocommerce/woocommerce-blocks/pull/11515) * add testing instructions * [Store Customization] Update the Centered Header Menu with Search Pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11304) * Fix hidden elements on mobile and margins * Increase navigation items spacing * Add site logo width * Improve search bar and title font weight * Remove width from site logo * Unify search bar * Remove search, improve margins * Use columns to improve the mobile view * add testing instructions * Large Header pattern: improve the layout on mobile view (https://github.com/woocommerce/woocommerce-blocks/pull/11490) * Improve Large header * improve large header * use lens * add padding * add testing instructions * Fix "Large footer" left spacing (https://github.com/woocommerce/woocommerce-blocks/pull/11520) * Fix large footer left spacing * Use esc_html_e * add testing instructions * add zip file * improve testing instructions * update testing instructions * update testing instructions --------- Co-authored-by: Luigi <gigitux@gmail.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Alba Rincón <albarin@users.noreply.github.com> Co-authored-by: Patricia Hillebrandt <patriciahillebrandt@gmail.com> --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Daniel Dudzic <daniel.dudzic@automattic.com> Co-authored-by: Saad Tarhi <saad.trh@gmail.com> Co-authored-by: Mike Jolley <mike.jolley@me.com> Co-authored-by: Karol Manijak <20098064+kmanijak@users.noreply.github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Alba Rincón <albarin@users.noreply.github.com> Co-authored-by: Patricia Hillebrandt <patriciahillebrandt@gmail.com> Co-authored-by: Tom Cafferkey <tjcafferkey@gmail.com>
2023-11-02 17:06:27 +00:00
# Testing notes and ZIP for release 11.4.3
Zip file for testing: [woocommerce-gutenberg-products-block.zip](https://github.com/woocommerce/woocommerce-blocks/files/13217249/woocommerce-gutenberg-products-block.zip)
## WooCommerce Core
### Enhancements
#### Improve Hero Product Chessboard pattern [11423](https://github.com/woocommerce/woocommerce-blocks/pull/11423)
1. Add a new post.
2. Add the `Hero Product Chessbord` pattern.
3. Save the page.
4. Visit the saved page
5. Ensure that the pattern looks like in the images below.
| Desktop | Mobile |
|--------|--------|
|![locale local](https://github.com/woocommerce/woocommerce-blocks/assets/4463174/ab742211-4b4a-479d-87f9-75c0d1329e32)|!['Locale Galaxy Fold](https://github.com/woocommerce/woocommerce-blocks/assets/4463174/832ea72f-21ff-4070-bee6-341e3732fe65)|
#### Fix spacing on the "Minimal header" pattern. [11477](https://github.com/woocommerce/woocommerce-blocks/pull/11477)
1. Create a new page or post and insert the `Minimal header` pattern.
2. Make sure there's no space at the right of the navigation block, as in the after screenshot below (note the blue color was added just to make it easier to visualize the space).
| Before | After |
| ------ | ----- |
| <img width="1381" alt="Screenshot 2023-10-27 at 11 51 26" src="https://github.com/woocommerce/woocommerce-blocks/assets/186112/9037fbc8-cc75-4b36-8ab7-ebd089dc81bf"> | <img width="1370" alt="Screenshot 2023-10-27 at 11 51 36" src="https://github.com/woocommerce/woocommerce-blocks/assets/186112/76dba159-e330-4cb0-9d5a-2640e3dae639"> |
#### "Product Gallery" improvements: remove product summary and update margins. [11464](https://github.com/woocommerce/woocommerce-blocks/pull/11464)
1. Create a new page or post and insert the `Product Gallery` pattern.
2. Check it does not include the product summary and looks like the screenshot.
![CleanShot 2023-10-26 at 12 56 12@2x](https://github.com/woocommerce/woocommerce-blocks/assets/186112/5b9b708c-09c5-49ad-b7ad-9ccddb75b792)
#### "Product Collection X Columns" patterns: align "no reviews" text with the star. [11468](https://github.com/woocommerce/woocommerce-blocks/pull/11468)
1. Add a post.
2. Add the Product Collection 3 Columns pattern.
3. Ensure that the "no reviews" text is aligned with the star.
| Before | After |
| ------ | ----- |
|![image](https://github.com/woocommerce/woocommerce-blocks/assets/4463174/46d1bbff-cd70-49d2-9bab-eec6c192931d)|![image](https://github.com/woocommerce/woocommerce-blocks/assets/4463174/20ac9c8f-2976-4fb7-95e6-50547b659096)|
#### Enhance the Hero Product Split pattern. [11505](https://github.com/woocommerce/woocommerce-blocks/pull/11505)
1. Create a new post
2. Insert the Hero Product Split pattern
3. Make sure things are working as expected on the editor side
4. Save the post and access the frontend: make sure things are working as expected over there as well.
| Before | After |
| ------ | ----- |
| <img width="683" alt="Screenshot 2023-10-30 at 22 17 34" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/56c6c94d-6151-4611-8db1-48da5412f857"> | <img width="683" alt="Screenshot 2023-10-30 at 22 17 50" src="https://github.com/woocommerce/woocommerce-blocks/assets/15730971/112c668f-b081-4d81-b9d4-c6072b67d838"> |
#### Simplify the Hero Product 3 Split pattern. [11495](https://github.com/woocommerce/woocommerce-blocks/pull/11495)
1. Create a new page or post and insert the `Hero Product 3 Split` pattern.
2. Save and check it looks good on desktop and mobile and looks like the screenshot below (ignore the broken image, it's due to how the screenshot was taken).
| Mobile |
| ------ |
| ![CleanShot 2023-10-30 at 15 35 45@2x](https://github.com/woocommerce/woocommerce-blocks/assets/186112/4db05bd6-5d6d-4ed8-8e6c-03816a6c9a4e) |
| Desktop |
|--------|
| <img width="1184" alt="Screenshot 2023-10-30 at 15 35 10" src="https://github.com/woocommerce/woocommerce-blocks/assets/186112/c6b5bdc5-589a-4790-8b1d-023c2610de74">|
#### Product Search Block: unify border-radius. [11515](https://github.com/woocommerce/woocommerce-blocks/pull/11515)
1. Add a new post.
2. Add the `Footer with Simple Menu`.
3. Save.
4. Ensure that the patterns look okay on desktop and mobile (and match with the screenshot).
5. Repeat 1-4 for each pattern that it is in the screenshot (use the title for searching the pattern in the inserter).
![img](https://github.com/woocommerce/woocommerce-blocks/assets/4463174/a3e36272-e84f-458b-886a-b5ebd1b1a880)
#### Improve the Centered Header Menu with Search pattern. [11304](https://github.com/woocommerce/woocommerce-blocks/pull/11304)
1. Create a new page or post.
2. Insert the `Centered Header Menu with Search` pattern.
3. Check it looks like the screenshot below.
4. Check all the elements are visible on mobile.
⚠️ In the next release, we will update the pattern name: <https://github.com/woocommerce/woocommerce-blocks/issues/11523>
| Desktop |
|--------|
|![image](https://github.com/woocommerce/woocommerce-blocks/assets/4463174/234ad207-3ef9-4034-92ff-c2ea56e11d46)|
| Mobile |
|--------|
|![image](https://github.com/woocommerce/woocommerce-blocks/assets/4463174/be183db3-f674-4a3f-b846-996c0b7fccbc)|
#### Large Header pattern: improve the layout on mobile view. [11490](https://github.com/woocommerce/woocommerce-blocks/pull/11490)
1. Add a new post.
2. Add the Large Header pattern.
3. Save the post.
4. Visit the saved post.
5. Ensure that the pattern looks okay.
6. Switch to the mobile view.
7. Ensure that the pattern looks okay.
![image](https://github.com/woocommerce/woocommerce-blocks/assets/4463174/518da445-dbff-4742-a741-94f76a018dc8)
### Mobile
![image](https://github.com/woocommerce/woocommerce-blocks/assets/4463174/131f41e0-a74e-4125-8492-47ae5981a1ad)
#### Improve the "Large footer" spacing. [11520](https://github.com/woocommerce/woocommerce-blocks/pull/11520)
1. Create a new page or post and insert the `Large footer` pattern.
2. Check there's no space.
<img width="707" alt="Screenshot 2023-10-31 at 12 56 33" src="https://github.com/woocommerce/woocommerce-blocks/assets/186112/fa4c0335-9c13-44e1-a599-36ee21663e2c">