Commit Graph

19219 Commits

Author SHA1 Message Date
Seghir Nadir 42ee5522f9 Remove page view tracking in favor of jetpack (https://github.com/woocommerce/woocommerce-blocks/pull/12010) 2023-12-01 08:26:01 -08:00
Alba Rincón ce71e30732 [Store Customization] Flush permalinks after updating all products (https://github.com/woocommerce/woocommerce-blocks/pull/11971)
* Flush after updating all products, not after updating each of the products

Flushing is an expensive operation so we should run it carefully

* Remove the index param and add the last_product param to the Product endpoint.

---------

Co-authored-by: Patricia Hillebrandt <patriciahillebrandt@gmail.com>
2023-12-01 16:59:09 +01:00
Albert Juhé Lluveras 94e4ffd611
Create closeWelcomeModal, goToPageEditor and goToPostEditor utils in PlayWright e2e tests (#41807)
* Create closeWelcomeModal, goToPageEditor and goToPostEditor utils in PlayWright e2e tests

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-01 15:58:57 +01:00
Saad Tarhi 8f99863a2e Create add to custom fields documentation (https://github.com/woocommerce/woocommerce-blocks/pull/11787)
* Create add to custom fields documentation

* Update the checkout custom field docs

* Add back end steps and examples

* Make it clear that we are building a field block

* Update docs/third-party-developers/extensibility/rest-api/extend-rest-api-add-custom-fields.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Update docs/third-party-developers/extensibility/rest-api/extend-rest-api-add-custom-fields.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Update docs/third-party-developers/extensibility/rest-api/extend-rest-api-add-custom-fields.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Update docs/third-party-developers/extensibility/rest-api/extend-rest-api-add-custom-fields.md

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>

* Mention that the block will not render if parent isn't required

* Add more details about `seExtensionData`

* Add additional code examples for the backend

* Avoid extending store API inside an IntegrationInterface

* Add code example that invokes the extend store endpoint class

---------

Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
2023-12-01 15:16:46 +01:00
github-actions 0f0a54d90a Add changefile(s) from automation for the following project(s): woocommerce 2023-12-01 13:56:59 +00:00
Patricia Hillebrandt 60bf7c9536 Update the call to the /wc/private/ai/product endpoint to include the new param last_product 2023-12-01 14:37:21 +01:00
louwie17 e099625d3f
Update external product and hide tabs (#41824)
* Add hide condition for shipping and variation tab for external product type

* Add changelog
2023-12-01 09:31:48 -04:00
Paulo Arromba 4e6fb96c8e Update Feedback link on Cart and Checkout blocks (https://github.com/woocommerce/woocommerce-blocks/pull/12006)
* Update feedback link

* Remove default url link, and make the param required
2023-12-01 13:01:42 +00:00
Panos (Panagiotis) Synetos 7e9d04afa2
Merge branch 'trunk' into fix/41774-use-fallback-colors-css-variables 2023-12-01 14:48:17 +02:00
Michael Pretty 874bffc0db
Fix 40075/avoid count query unless after first page (#40092)
* Avoid running a second query to account for incorrect totals if pagination is set too high if pagination isn't used.

Fixes #40075

* Adding changelog entry
2023-12-01 11:44:56 +00:00
Paulo Arromba a07e3815c1 Update feedback link (https://github.com/woocommerce/woocommerce-blocks/pull/11999) 2023-12-01 10:16:57 +00:00
Alba Rincón 5f4df2a3e7 Update patterns copy (https://github.com/woocommerce/woocommerce-blocks/pull/11997) 2023-12-01 10:49:17 +01:00
Manish Menaria 630c79adf7 Product Collection - Fix HTML Entity Decoding in Taxonomy Controls (https://github.com/woocommerce/woocommerce-blocks/pull/11982) 2023-12-01 15:11:41 +05:30
Albert Juhé Lluveras 34cfbd94b4
Add extra protections against wrong filter values in the Command Palette logic (#41773)
* Add extra protections against wrong filter values in the Command Palette logic

* Add changefile(s) from automation for the following project(s): woocommerce

* Add protection to make sure  is an array

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-01 10:07:34 +01:00
Panos (Panagiotis) Synetos d045d9d292
Merge branch 'trunk' into fix/41774-use-fallback-colors-css-variables 2023-12-01 08:41:21 +02:00
paul sealock 7c5861f943 fix linter errors 2023-12-01 17:47:44 +13:00
github-actions 94e0ff77e0 Add changefile(s) from automation for the following project(s): woocommerce 2023-12-01 04:21:15 +00:00
github-actions 36c4da0def Add changefile(s) from automation for the following project(s): woocommerce 2023-12-01 04:21:14 +00:00
paul sealock a10d3c545f Refresh shipping methods when a method without configuration options is added 2023-12-01 17:16:29 +13:00
paul sealock 62175c4f18 Revert removal of defaults 2023-12-01 16:58:56 +13:00
Moon 6b77f71ea7
Show a warning modal when user tries to leave the assember hub (#41596)
* Show warning modal when user tries to leave the assember hub

* Remove pushState and popstate changes from the iframe

* Listen to popstate and render a warning modal when the user tries to leave the page

* Add changefile(s) from automation for the following project(s): woocommerce

* Update GoBackWarningModal to accept a callback for reusability

* Reuse GoBackWarningModal

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-11-30 18:23:00 -08:00
Christopher Allford c6b74ddafa
Revert "Resolve PNPM Lock File Errors" (#41828)
Revert "Resolve PNPM Lock File Errors (#41800)"

This reverts commit 2550558a13.
2023-11-30 14:55:35 -08:00
Daniel Dudzic ca8bb47c8d Product Gallery: Add a Product Image fallback (https://github.com/woocommerce/woocommerce-blocks/pull/11978)
* Product Gallery: Add a placeholder fallback when the Product Image is not set

* Product Gallery Placeholder: Pass by reference warning fix
2023-11-30 23:54:39 +01:00
Bartosz Budzanowski f271f9fea4
Update order attribution default cookie lifetime. (#41806) 2023-11-30 22:53:59 +01:00
Christopher Allford 2550558a13
Resolve PNPM Lock File Errors (#41800)
This makes the lock file constraints more specific to prevent the
backward incompatible types from WordPress types using the caret
constraint.
2023-11-30 09:33:34 -08:00
Jason Kytros a9ae5a72f1 Use `$woocommerce` variable instead of a hardcoded color 2023-11-30 16:54:14 +02:00
Mino 5a851cba28
Fix product variation sale_price_dates_to not being set to 23:59:59 when it's set via the variation bulk actions (#41564)
* sets sale price to 23:59:59 when sale schedule variation bulk action runs

* made the date being sent in the CRUD object coherent with the rest of the wc codebase. added changelog file

* fix issue raised by linter
2023-11-30 14:54:05 +00:00
Bartosz Budzanowski ea51e4ee85 Remove mention of fractions. 2023-11-30 15:46:09 +01:00
Bartosz Budzanowski 48f60670fc
Update plugins/woocommerce/src/Internal/Orders/OrderAttributionController.php
Co-authored-by: Justin Palmer <228780+layoutd@users.noreply.github.com>
2023-11-30 15:37:33 +01:00
Niels Lange 7ea98576bc Limit number of visible incompatible extensions in sidebar notice (https://github.com/woocommerce/woocommerce-blocks/pull/11972)
* Limit number of visible incompatible extensions in sidebar notice

* Adjust link text

* Ensure text-decoration works in Safari

* Minor CSS tweaks

* Refactor constant names

* Adjust chevron position for opened state

* Revert "Adjust chevron position for opened state"

This reverts commit ff5142427738626837be887dd8d7e5d94c2432d4.
2023-11-30 06:37:19 -08:00
Bartosz Budzanowski 8cc1fb863e
Update plugins/woocommerce/changelog/update-order-attribution-session-length
Co-authored-by: Justin Palmer <228780+layoutd@users.noreply.github.com>
2023-11-30 15:35:40 +01:00
Bartosz Budzanowski 137661a6d2
Update plugins/woocommerce/src/Internal/Orders/OrderAttributionController.php
Co-authored-by: Justin Palmer <228780+layoutd@users.noreply.github.com>
2023-11-30 15:35:30 +01:00
Panos (Panagiotis) Synetos f75b3ea813
Merge branch 'trunk' into fix/41774-use-fallback-colors-css-variables 2023-11-30 14:42:54 +02:00
Bartosz Budzanowski e44514c909 Add changelog file. 2023-11-30 13:25:52 +01:00
Bartosz Budzanowski 9986b88954 Update order attribution default cookie lifetime. 2023-11-30 13:22:04 +01:00
Justin Palmer f35d52203e
Add order attribution feature (#39701) 2023-11-30 12:54:20 +01:00
Panos (Panagiotis) Synetos e06c442aff
Revert commit 2023-11-30 13:13:17 +02:00
Panos (Panagiotis) Synetos 62aaa746e8
Wake up github actions 2023-11-30 13:10:47 +02:00
github-actions eef1ac9272 Add changefile(s) from automation for the following project(s): woocommerce 2023-11-30 11:08:10 +00:00
Panos (Panagiotis) Synetos 4abab55dd2
Update changelog 2023-11-30 13:06:30 +02:00
Justin Palmer 2ef39a1298
Revert template version bumps from 2eecbb715d 2023-11-30 11:19:09 +01:00
github-actions 69299e9499 Add changefile(s) from automation for the following project(s): woocommerce 2023-11-30 10:17:42 +00:00
Panos (Panagiotis) Synetos 2928216029
Use fallback colors wherever CSS variables are used in WooCommerce admin 2023-11-30 11:53:12 +02:00
Jason Kytros a34ddb8993
Remove Subscriptions from the Add Product task list (#41778) 2023-11-30 16:08:47 +07:00
Alba Rincón ccb6e1ecdc [Store Customization] Update the "Footer with 3 Menus" pattern to remove the last 2 menus (https://github.com/woocommerce/woocommerce-blocks/pull/11980)
* Remove the last 2 menus

* Rename pattern to reflect new situation
2023-11-30 09:17:51 +01:00
Jason Kytros e8e52eaa6e Remove unused dependency 2023-11-30 09:18:27 +02:00
Jonathan Lane eec6b7e7aa
A number of e2e test improvements based on flaky test tracking (#41768) 2023-11-29 17:00:03 -08:00
Darren Ethier 25008b6361 Update close-stale-issues.yml workflow to update stale label. 2023-11-29 15:55:47 -05:00
Jason Kytros b1ac7300c7 Remove unused ) 2023-11-29 17:45:14 +02:00
Justin Palmer 2eecbb715d
Set since tags to 8.5.0 2023-11-29 16:44:24 +01:00
Corey McKrill 9a947c1a06
Logging: Implement "search within log files" (#41353)
* Normalize render method names

* Refactor get_query_params to allow key filtering

* Scaffold the search results view

* Add missing unslash

* First pass at functional search

* Fix memory leak and recursive highlighting

* Fix various search string edge cases

* Move match highlighting to format_match method

* Tweak match line formatting

* Rename ListTable to FileListTable

* Switch search results view to a list table

* Add notice about max files for search

* Remove unused function

* Only use monospace font on the matched line part of search results

* Add notice about search result limit

* Fix font in table header

* phpcs cleanup

* Remove unnecessary search form action

* Add caching to search results

* Add unit test for search method

* Caching improvements

* phpcs cleanup

* Add unit test for close_stream

* Remove unneeded linting exception

* Add changelog file

* Remove unnecessary usage of get_class()

* Make sure file stream gets closed when we break the loop early

* Make the returned results an even 200 when hitting the limit
2023-11-29 14:52:37 +00:00
Niels Lange e1efae2fe2 Improve readability of order note (https://github.com/woocommerce/woocommerce-blocks/pull/11944) 2023-11-29 21:39:07 +07:00
Jason Kytros f16061e4fe Add space 2023-11-29 16:08:00 +02:00
Jason Kytros aaf4e090a6 Prettier fixes 2023-11-29 15:03:16 +02:00
github-actions fdaa33b4f1 Add changefile(s) from automation for the following project(s): woocommerce 2023-11-29 12:46:10 +00:00
Jason Kytros 220a5b2e9b Remove Subscriptions from the Add Product task list 2023-11-29 14:40:21 +02:00
Thomas Roberts 66cc2bd9e8 Move checkout terms & conditions/privacy policy tests (https://github.com/woocommerce/woocommerce-blocks/pull/11973) 2023-11-29 04:16:44 -08:00
Leif Singer 1e4b25e9eb
Downloadable Product Permissions: The text "-1" is rendered every time merchants click the "Grant access" button without entering any product (#41682) 2023-11-29 11:42:22 +01:00
Albert Juhé Lluveras a8c44eb4c7 Reviews by Product: fix reviews count not appearing in product selector (https://github.com/woocommerce/woocommerce-blocks/pull/11976) 2023-11-29 11:13:18 +01:00
Sam Seay 5f7836183b Adjust the store config for Dropdown to keep selectors in state portion. (https://github.com/woocommerce/woocommerce-blocks/pull/11968) 2023-11-29 18:27:59 +13:00
Sam Seay dea8b734a6 Migrate attribute-filter block to use new interactivity store API (https://github.com/woocommerce/woocommerce-blocks/pull/11911) 2023-11-29 18:27:38 +13:00
Sam Seay 58c6339ac9 Update interactivity price filter block to use latest Interactivity Store API (https://github.com/woocommerce/woocommerce-blocks/pull/11943) 2023-11-29 17:04:35 +13:00
Maikel David Pérez Gómez 92eac565e5
[Grouped products] Product list (#41653)
* When the user selects a grouped product type, we show an additional Products in this group section in the General tab.

* When the user selects a grouped product type, we hide the Pricing and Shipping tabs.

* When empty, the grouped products card has an empty state with an illustration

* When the user clicks Add products, we show a modal

* When the user clicks the search field, we immediately display the list of all existing products. It is sorted alphabetically. Clicking an item closes the search and adds the product to the list.

* Add remove button to the product list

* When the user clicks Add, we close the modal and display the list of added products in the product form

* Clicking the product name will open it in the editing view in a new tab

* Clicking the arrow button will open the product's page in a new tab

* Prevent adding already added products

* If the name or SKU extends beyond this width, we truncate the text

* Add changelog files

* Fix linter errors
2023-11-28 22:21:17 -03:00
Thomas Roberts a652fa18f8 Move the Checkout -> Account tests from puppeteer to Playwright (https://github.com/woocommerce/woocommerce-blocks/pull/11961) 2023-11-28 23:16:25 +04:00
Justin Palmer 18ffb2fac0
Restore missing prefix to fix check 2023-11-28 19:09:26 +01:00
github-actions da46d5fb3b Add changefile(s) from automation for the following project(s): woocommerce 2023-11-28 16:35:48 +00:00
Paulo Arromba 6df0754b2a
Update WooCommerce Blocks to 11.6.1 (#41743)
* Updated woocommerce/woocommerce-blocks to 11.6.1

* Updated content-hash on composer.lock
2023-11-28 14:57:28 +00:00
Thomas Roberts d32be3f47b Migrate cart/checkout tax tests to Playwright (https://github.com/woocommerce/woocommerce-blocks/pull/11954) 2023-11-28 21:00:40 +07:00
Leif Singer f408296b79
Email the site admin when a payment gateway is enabled (#41645) 2023-11-28 14:29:34 +01:00
Leif Singer 2a12fea81d simplify conditional 2023-11-28 13:04:09 +01:00
Leif Singer 7f839980ec add admin email address before removing duplicates 2023-11-28 13:02:49 +01:00
Albert Juhé Lluveras a0715be413
Add several WooCommerce-related commands to the Command Palette (#41605)
* add simple initial integration with Command Palette

* Add WooCommerce commands

* Add e2e tests

* Fixes

* Add changefile(s) from automation for the following project(s): woocommerce

* Avoid using page.waitForLoadState() in Command Palette tests

* Make Settings and Analytics commands dynamic

* Decode entities to make sure characters are displayed correctly in the command palette

* Move decodeEntities() into registerCommandWithTracking()

---------

Co-authored-by: Darren Ethier <darren@roughsmootheng.in>
Co-authored-by: github-actions <github-actions@github.com>
2023-11-28 12:26:30 +01:00
Alba Rincón 0d84dca852 Tweak the product prompt (https://github.com/woocommerce/woocommerce-blocks/pull/11903)
* Tweak the product prompt

To avoid creating products that are things that cannot be sold in stores (forests, people, etc.)

* Return error when images are not provided
2023-11-28 09:06:29 +01:00
Alba Rincón 175554eb97 [Store Customization] Update product slug when updating the title and flush cache (https://github.com/woocommerce/woocommerce-blocks/pull/11952)
* Check permalink and flush cache if not found

* Update the product slug with the new title

* Use wp_update_post to update the product

* Remove unused method
2023-11-28 08:55:19 +01:00
Karol Manijak 6a397d65f9 Remove unused Add to Cart product element (https://github.com/woocommerce/woocommerce-blocks/pull/11948)
* Remove unused Add to Cart product element

* Remove entry about Product Add to Cart product element from MD file
2023-11-28 08:34:12 +01:00
Karol Manijak 2ab440b806 Reorganise Columns controls and fix undefined problem in Product Collection settings (https://github.com/woocommerce/woocommerce-blocks/pull/11937)
* Reorganise Columns controls and fix undefined problem in Product Collection settings

* Remove type condition in hasValue of Columns control

* Adjust the E2E tests locator to new changes
2023-11-28 08:33:31 +01:00
Niels Lange 5f0c4726a8 Investigate E2E CI caching issue (https://github.com/woocommerce/woocommerce-blocks/pull/11874)
* Try env:restart instead of env:start

* Change env:restart to env:start again

* Try env:restart instead of env:start

* Change env:restart to env:start again

* Adjust heading level of cart and checkout template

* Replace button selector with label selector

* Try env:restart instead of env:start

* Change env:restart to env:start again

* Ensure to close welcome guide modal

* Adjust heading level of default template content

* Try env:restart instead of env:start

* Change env:restart to env:start again

* Try env:restart instead of env:start

* Change env:restart to env:start again

* Address existing TS issues

* View template in edit mode

* Keep certain tests skipped

* Fix broken tests after addressing TS issues
2023-11-28 14:16:45 +07:00
Roy Ho 58c130af79 Remove unneeded block type check (https://github.com/woocommerce/woocommerce-blocks/pull/11964) 2023-11-27 13:11:51 -08:00
Tomek Wytrębowicz 19bb2a37a3
Reduce `wc_order_attribution` module API
make `initOrderTracking` and `removeTrackingCookies` methods private,as per YAGNI.
Add some more code comments
2023-11-27 18:59:24 +01:00
Justin Palmer 73dd7819c4
A few naming fixes 2023-11-27 18:59:24 +01:00
Tomek Wytrębowicz c28b0a9282
Move `??` operator from `get_source_values` back to `get_unprefixed_fields`
because `$_POST` may not include all these values.

Co-authored-by: Justin Palmer <228780+layoutd@users.noreply.github.com>
2023-11-27 18:59:23 +01:00
Tomek Wytrębowicz 55b3ab1ec5
Update classic checkout selector
Co-authored-by: Justin Palmer <228780+layoutd@users.noreply.github.com>
2023-11-27 18:59:23 +01:00
Tomek Wytrębowicz 0f8933e591
Remove unnecesary import
Co-authored-by: Justin Palmer <228780+layoutd@users.noreply.github.com>
2023-11-27 18:59:23 +01:00
Tomek Wytrębowicz 59d0275348
Fix PHPCS
Co-authored-by: Justin Palmer <228780+layoutd@users.noreply.github.com>
2023-11-27 18:59:23 +01:00
Tomek Wytrębowicz c95b94aa14
fix PHPCS 2023-11-27 18:59:23 +01:00
Tomek Wytrębowicz 6704a6426b
Do the classic checkout OSA bindings only on the classic page
Call `previousInitCheckout` only if there is one.
2023-11-27 18:59:22 +01:00
Tomek Wytrębowicz cb4dd6e592
Blanket Order Source Attribution → Order Attribution for blocks
Propagate chenges from c9c2a05ca5 to the Block-related classes
2023-11-27 18:59:22 +01:00
Justin Palmer 4662cae7b7
Blanket Order Source Attribution → Order Attribution change 2023-11-27 18:59:22 +01:00
Justin Palmer b62bf69f60
Clearer changelog 2023-11-27 18:59:22 +01:00
Justin Palmer 497bc3047d
Fix array assignment spacing 2023-11-27 18:59:22 +01:00
Justin Palmer cfa5728738
Remove Beta notice about auto-enabled feature 2023-11-27 18:59:22 +01:00
Justin Palmer 41421c1644
Include customer order count in order tracks 2023-11-27 18:59:21 +01:00
Justin Palmer 3e905dd6ea
Lowercase device in order tracks for consistency across values 2023-11-27 18:59:21 +01:00
Justin Palmer 4acd06245f
Expand order tracks datapoints 2023-11-27 18:59:21 +01:00
Tomek Wytrębowicz b52964651b
Remove code comments related to AssetsAPI
Addresses https://github.com/woocommerce/woocommerce/pull/41592#discussion_r1402021606
2023-11-27 18:59:21 +01:00
Tomek Wytrębowicz 6afe26df59
Simplify `woocommerce_order_save_attribution_source_data` logic 2023-11-27 18:59:21 +01:00
Tomek Wytrębowicz 709ec75a3c
Remove unrelevant code comment
Addresses https://github.com/woocommerce/woocommerce/pull/41592#discussion_r1402411581
2023-11-27 18:59:20 +01:00
Tomek Wytrębowicz 6de4bd3ec3
Fix PHPCS 2023-11-27 18:59:20 +01:00
Tomek Wytrębowicz 3c1aa076d7
Remove not needed `is_wccom_cookie_terms_available`
Co-authored-by: Justin Palmer <228780+layoutd@users.noreply.github.com>
2023-11-27 18:59:20 +01:00
Tomek Wytrębowicz dd66ba0d39
Remove jQuery dependency from the checkout frontend 2023-11-27 18:59:20 +01:00
Tomek Wytrębowicz 58f703211c
Fix translation context and PHPCS 2023-11-27 18:59:20 +01:00
Tomek Wytrębowicz c2b74a6021
Save OSA proerties on Blocks checkout
using the same method we use for the classic checkout.

Co-authored-by: Justin Palmer <228780+layoutd@users.noreply.github.com>
2023-11-27 18:59:20 +01:00
Tomek Wytrębowicz 24b526266b
Prefix and flatten OSA properties for the Blocks checkout 2023-11-27 18:59:19 +01:00
Tomek Wytrębowicz e91d0325ae
Unify OSA script handles
Stick to `wc-` convention instead of `woocommerce-`.
Do not add a superflous `-js` suffix`
2023-11-27 18:59:19 +01:00
Tomek Wytrębowicz 5b16a8abdb
Fix OSA.js dependency ids and checkout extension prefix 2023-11-27 18:59:19 +01:00
Tomek Wytrębowicz 8347e7108c
Move changes from blocks repo PR
https://github.com/woocommerce/woocommerce-blocks/pull/11506
Co-authored-by: Jeremy Pry <jeremy.pry@gmail.com>
2023-11-27 18:59:19 +01:00
Tomek Wytrębowicz 2b5f817169
Move changes from blocks repo PR
https://github.com/woocommerce/woocommerce-blocks/pull/11506
Co-authored-by: Jeremy Pry <jeremy.pry@gmail.com>
2023-11-27 18:59:19 +01:00
Justin Palmer 07312708d1
Include Origin column for non-HPOS orders table 2023-11-27 18:59:19 +01:00
Justin Palmer 79fed9cac9
Don't link orders in customer history by email if customer_id differs 2023-11-27 18:59:18 +01:00
Justin Palmer 175f424101
PHPCS fix 2023-11-27 18:59:18 +01:00
Justin Palmer 418eb7b128
Remove WCCOM attribution source integration 2023-11-27 18:59:18 +01:00
Tomek Wytrębowicz ad1fcbb453
Simplify `.closest` usage in OSA-admin.js 2023-11-27 18:59:18 +01:00
Tomek Wytrębowicz c00acce374
Remove jQuery dependency from sourcebuster-js 2023-11-27 18:59:18 +01:00
Tomek Wytrębowicz 52318b4de7
Use single public namespace for OSA JS 2023-11-27 18:59:17 +01:00
Justin Palmer ceb354e456
Enqueue Sourcebuster script from new location 2023-11-27 18:59:17 +01:00
Justin Palmer 78d42b2e72
Use Woo-forked Sourcebuster-JS package 2023-11-27 18:59:17 +01:00
Dima 84f0deba96
Fixing phpcs errors. 2023-11-27 18:59:17 +01:00
Dima 9d8b93c074
Fixing phpcs errors. 2023-11-27 18:59:17 +01:00
Dima f789cc26b0
Adding few more unit tests plus adjusting tracking controller to be able to test the exact functions set to filters and actions. 2023-11-27 18:59:17 +01:00
Dima b22519d7de
Adding AbstractInterfaceServiceProvider unit test and test supplies. 2023-11-27 18:59:16 +01:00
Justin Palmer 373af383de
Include hide/show text in detail toggle and reverse carets 2023-11-27 18:59:16 +01:00
Justin Palmer 7a91703438
Better details toggle styling and behavior 2023-11-27 18:59:16 +01:00
Justin Palmer 18d328846a
Updated customer history logic (billing email + better totals)
- Uses billing_email if no customer_id is provided
- Accounts for refunds and multiple types of order status
2023-11-27 18:59:16 +01:00
Justin Palmer 9a893c8af4
Clarify customer history tooltip wording a little bit 2023-11-27 18:59:16 +01:00
Justin Palmer 727ebe3e1b
Better details toggle alignment 2023-11-27 18:59:15 +01:00
Justin Palmer 8ed2ead224
Fix title casing in Customer history metabox 2023-11-27 18:59:15 +01:00
Justin Palmer 199158e525
Remove unused import 2023-11-27 18:59:15 +01:00
Justin Palmer 3ceb27ad21
Fix broken details toggle with `e.target`
- instead of `this` (arrow function)
2023-11-27 18:59:15 +01:00
Justin Palmer 49dff0eb9c
Remove customer source data from user admin pages
The source data will still be collected display in a future udpate
2023-11-27 18:59:15 +01:00
Justin Palmer 7fe4825fe7
Add documentation to the modified sourcebusterjs file 2023-11-27 18:59:14 +01:00
Justin Palmer 8253beafe9
Update docs for AbstractServiceProvider and AbstractInterfaceServiceProvider 2023-11-27 18:59:14 +01:00
Justin Palmer 6f911ca91c
Revert "Include sourcebuster as npm package"
Restores the customized version of sourcebuster 1.0.5
This reverts commit 096dc95c1c52d62cfc2f2bd30a2cdd2bbcf7f536.
2023-11-27 18:59:14 +01:00
Justin Palmer 9ad289cea3
Include sourcebuster as npm package 2023-11-27 18:59:14 +01:00
Justin Palmer 7f100ac88a
Clarify nonce verification ignores 2023-11-27 18:59:14 +01:00
Justin Palmer dd629741f5
Use OrderUtil to check for HPOS enabled 2023-11-27 18:59:13 +01:00
Justin Palmer 00022754e9
Remove `$theorder` manipulation 2023-11-27 18:59:13 +01:00
Justin Palmer 7a97054bb3
PHPCS fix 2023-11-27 18:59:13 +01:00
Justin Palmer 2b6d92e786
Remove leftover VersionUtil class 2023-11-27 18:59:13 +01:00
Justin Palmer eb6aee13ed
Escape wc_help_tip output 2023-11-27 18:59:13 +01:00
Justin Palmer 88318c9df2
Remove phpcs disable directive 2023-11-27 18:59:13 +01:00
Justin Palmer 196ba5a7ba
Escape wc_price output better 2023-11-27 18:59:12 +01:00
Justin Palmer c9bea33598
Escape wc_help_tip output 2023-11-27 18:59:12 +01:00
Justin Palmer f64e4a5100
Escape wc_price output 2023-11-27 18:59:12 +01:00
Justin Palmer 7c1d6b6d7c
Only display attribution meta boxes for valid orders 2023-11-27 18:59:12 +01:00
Justin Palmer c4ec613277
Clarify tracking consent and cookie management 2023-11-27 18:59:12 +01:00
Justin Palmer 602d1f2ba5
Clarify callback purpose and function 2023-11-27 18:59:12 +01:00
Justin Palmer f6f7b054e9
Remove PHPCS disable directive 2023-11-27 18:59:11 +01:00
Justin Palmer c095f9e1ce
Remove PHPCS disable directive 2023-11-27 18:59:11 +01:00
Justin Palmer d7a31e9a79
Clarify Order Source Attribution is_legacy flag being true 2023-11-27 18:59:11 +01:00
Justin Palmer d1c5af74c0
Remove extra line in PHPCS config 2023-11-27 18:59:11 +01:00
Justin Palmer 222cb6d776
Fixed test namespace
Co-authored-by: Leif Singer <leif@automattic.com>
2023-11-27 18:59:11 +01:00
Justin Palmer 05e4698af7
Better constant variable name 2023-11-27 18:59:11 +01:00
Justin Palmer cf8add7188
Const instead of let
Co-authored-by: Leif Singer <leif@automattic.com>
2023-11-27 18:59:10 +01:00
Justin Palmer 977863eacf
Remove superfluous comment
Co-authored-by: Leif Singer <leif@automattic.com>
2023-11-27 18:59:10 +01:00
Justin Palmer 23f4094ac0
Remove double newline
Co-authored-by: Leif Singer <leif@automattic.com>
2023-11-27 18:59:10 +01:00
Justin Palmer d60fe00308
Capitalize Tracks in comment
Co-authored-by: Leif Singer <leif@automattic.com>
2023-11-27 18:59:10 +01:00
Justin Palmer 378e4999e5
Clearer comment
Co-authored-by: Leif Singer <leif@automattic.com>
2023-11-27 18:59:10 +01:00
Justin Palmer df2e05e4cf
Re-add "mobiledetect/mobiledetectlib" library 2023-11-27 18:59:10 +01:00
Justin Palmer dfcaa6019d
Fix PHPCS errors in test files 2023-11-27 18:59:09 +01:00
Justin Palmer 527f51414d
Don't disable PHPCS rules 2023-11-27 18:59:09 +01:00
Justin Palmer 10b1af773c
Remove unnecessary PHPCS exclusions 2023-11-27 18:59:09 +01:00
Jeremy Pry cb116ddade
Limit registration during install, and move origin column to admin_init 2023-11-27 18:59:09 +01:00
Jeremy Pry ee93cacdd8
Add docblock to the woocommerce_order_save_attribution_source_data hook 2023-11-27 18:59:09 +01:00
Jeremy Pry ae99921667
Fix typo in class name 2023-11-27 18:59:09 +01:00
Jeremy Pry d6875fac14
Use an action to save the attribution data. 2023-11-27 18:59:08 +01:00
Jeremy Pry 4f305cc9cf
Add public get_*() methods 2023-11-27 18:59:08 +01:00
Jeremy Pry f6e8a586aa
Cleanup @ since tags 2023-11-27 18:59:08 +01:00
Jeremy Pry 2dd3cc6176
Remove period from the end of the feature description 2023-11-27 18:59:08 +01:00
Jeremy Pry de88fd19a7
Fix typos in comments 2023-11-27 18:59:08 +01:00
Jeremy Pry 62d05d9ab8
Make adjustments to JS files
- Use arrow functions
- Consistent use of let or const over var
- Clean up spacing and formatting
2023-11-27 18:59:08 +01:00
Jeremy Pry 3dafdb482d
Return early when there's already an order object. 2023-11-27 18:59:07 +01:00
Jeremy Pry 5effcb7a82
Handle orgin column registration for HPOS compatibility 2023-11-27 18:59:07 +01:00
Jeremy Pry ab92fa13ff
Mark not experimental, and update description 2023-11-27 18:59:07 +01:00
Jeremy Pry 15c7263ba6
PHPCS adjustments for test files 2023-11-27 18:59:07 +01:00
Jeremy Pry 5cba1a762d
Update MobileDetect library
For now, this manually adds the mobile detect library, due to an error that should be fixed by https://github.com/serbanghita/Mobile-Detect/pull/944.
2023-11-27 18:59:07 +01:00
Jeremy Pry eabda2b61e
Fix PHPCS errors and warnings 2023-11-27 18:59:07 +01:00
Jeremy Pry 5c82baef5b
Correct file/class name and PHPCS fixes 2023-11-27 18:59:07 +01:00
Jeremy Pry 7553579032
Use wc_get_template() for the template files 2023-11-27 18:59:06 +01:00
Jeremy Pry 0cb181bd9f
Add is_script_debug_enabled() method to the ScriptDebug trait 2023-11-27 18:59:06 +01:00
Jeremy Pry cbf0da970a
Create VersionUtil class 2023-11-27 18:59:06 +01:00
Jeremy Pry 8997db5f98
Add actual version to the template files 2023-11-27 18:59:06 +01:00
Jeremy Pry aeff5b1b82
Update source value processing to accept an array
This allows more flexibility in where the array of values to process originates, without this method explicitly relying on the $_POST super-global.
2023-11-27 18:59:06 +01:00
Jeremy Pry 228e5534b8
Remove get_source_label() method and add filters 2023-11-27 18:59:06 +01:00
Jeremy Pry 15d7a0ad48
Use Jetpack Constant utility class
This matches with the rest of WooCommerce technique.
2023-11-27 18:59:05 +01:00
Jeremy Pry 735da31595
Refactor device detection to a separate method 2023-11-27 18:59:05 +01:00
Jeremy Pry 2058928229
Use class directly instead of mocked 2023-11-27 18:59:05 +01:00
Jeremy Pry 3cee48143a
Move SourceAttribution test to correct location 2023-11-27 18:59:05 +01:00
Jeremy Pry 67c7f198b4
Make the on_plugins_loaded function protected 2023-11-27 18:59:05 +01:00
Jeremy Pry df0f6a6fd3
Update Consent API test to use closures 2023-11-27 18:59:05 +01:00
Jeremy Pry f8a24b6819
Add file headers to the new templates 2023-11-27 18:59:04 +01:00
Jeremy Pry 67e40fcc68
Mock FeaturesController class for WCCOM test 2023-11-27 18:59:04 +01:00
Jeremy Pry 2ef7df465a
Add tracks using JS 2023-11-27 18:59:04 +01:00
Jeremy Pry edfe2896b4
Add Tracks event with source data 2023-11-27 18:59:04 +01:00
Jeremy Pry b787271c86
Refactor source processing 2023-11-27 18:59:04 +01:00
Jeremy Pry 8e382813c0
Remove experimental feature flag 2023-11-27 18:59:04 +01:00
Jeremy Pry d62bbce217
Add unit tests for Order Source Attribution 2023-11-27 18:59:03 +01:00
Jeremy Pry fa2421758d
Add consent API integration 2023-11-27 18:59:03 +01:00
Jeremy Pry 22c82c485a
Add WCCom tracking controller 2023-11-27 18:59:03 +01:00
Jeremy Pry a21c1cb13a
Create separate service provider for Order Attribution 2023-11-27 18:59:03 +01:00
Jeremy Pry d8d57f3c31
Ensure the Attribution controller is limited by the feature being enabled 2023-11-27 18:59:03 +01:00
Jeremy Pry a2c2c82310
Create method for setting the fields and prefix. 2023-11-27 18:59:03 +01:00
Jeremy Pry 0da5aff8dd
Create ScriptDebug trait 2023-11-27 18:59:02 +01:00
Jeremy Pry 892ef3435a
Add changelog file 2023-11-27 18:59:02 +01:00
Jeremy Pry 95001377b6
Add auto registration using the interface 2023-11-27 18:59:02 +01:00
Jeremy Pry 87b11e3bbb
Include the get_hpos_order_object() method and PHPCS fixes 2023-11-27 18:59:02 +01:00
Jeremy Pry b01737d969
Add the SourceAttributionController class to the service provider 2023-11-27 18:59:02 +01:00
Jeremy Pry 22f1e67d7a
Update get() method to match docblock
This could return an object, or an array of objects.
2023-11-27 18:59:02 +01:00
Jeremy Pry 2c689ee858
Add abstract provider for tagging interfaces 2023-11-27 18:59:01 +01:00
Jeremy Pry f03821904b
Create an interface for classes that need to register hooks 2023-11-27 18:59:01 +01:00
Jeremy Pry fa0c4782a7
Add scripts and styles for order source attribution 2023-11-27 18:59:01 +01:00
Jeremy Pry d9152b01f6
Add initial source attribution files 2023-11-27 18:59:01 +01:00
Jeremy Pry 630f265058
Add "mobiledetect/mobiledetectlib" library 2023-11-27 18:59:01 +01:00
Jeremy Pry ef61216099
Add Customer History metabox 2023-11-27 18:59:01 +01:00
Jeremy Pry 1036b8970d
Add Order Source Attribution feature setting. 2023-11-27 18:59:00 +01:00
Raluca Stan 5578a541d4 Update extensibility doc (https://github.com/woocommerce/woocommerce-blocks/pull/11924)
* Update extensibility doc 

This PR adds a missing link to the Extensibility page for a new doc that was added about the migrated hood.

* Update docs/third-party-developers/extensibility/README.md

Co-authored-by: Tarun Vijwani <tarun.vijwani@automattic.com>

---------

Co-authored-by: Tarun Vijwani <tarun.vijwani@automattic.com>
2023-11-27 18:25:51 +01:00
Leif Singer 5aa6f29b85 fix typo 2023-11-27 16:09:14 +01:00
Leif Singer 5469dd3f01 ensure the WC_Payment_Gateways instance we're testing is isolated from the other unit tests 2023-11-27 16:09:14 +01:00
Leif Singer d64603764a extend test setup 2023-11-27 16:09:14 +01:00
Leif Singer 21ad8d547f move the test to the proper file 2023-11-27 16:09:14 +01:00
Leif Singer 3850a07a2c add a test that ensures the email and log message get generated 2023-11-27 16:09:14 +01:00
Leif Singer 5a3ba9a0cb appease the linter 2023-11-27 16:09:14 +01:00
Leif Singer d638cc44a9 tweak email subject 2023-11-27 16:09:14 +01:00
Leif Singer 488084d7ce use the gateway ID to make gateway_settings_url a direct link to the enabled gateway's settings page 2023-11-27 16:09:14 +01:00
Leif Singer d6f1adb4cf pass the gateway instance into the wc_payment_gateway_enabled_notification_email_addresses hook 2023-11-27 16:09:14 +01:00
Leif Singer ee04b60a83 pass the whole gateway instance into notify_admin_payment_gateway_enabled 2023-11-27 16:09:14 +01:00
Leif Singer e3c2c79389 make on_payment_gateways_initialized private 2023-11-27 16:09:14 +01:00
Leif Singer bbdbb026ea pass WC_Payment_Gateways instance to wc_payment_gateways_initialized hook 2023-11-27 16:09:14 +01:00
Leif Singer 665a6ce721 once more, appease the linter 2023-11-27 16:09:14 +01:00
Leif Singer 86fa398d5a allow adding email addresses to the notification via a filter 2023-11-27 16:09:14 +01:00
Leif Singer e23839294f guard against unset array key 2023-11-27 16:09:14 +01:00
Leif Singer 26b664f29f add logging 2023-11-27 16:09:14 +01:00
Leif Singer 20cd022334 document all the things 2023-11-27 16:09:14 +01:00
Leif Singer 3cd4b5078c appease the linter 2023-11-27 16:09:14 +01:00
Leif Singer 6b12ffb5f5 use AccessiblePrivateMethods, a single callback for both added and updated options, and subscribe to gateway-specific hooks 2023-11-27 16:09:14 +01:00
Leif Singer 7254e99ec8 move things into the WC_Payment_Gateways class 2023-11-27 16:09:14 +01:00
Leif Singer a0304bedef ensure gateway title is set 2023-11-27 16:09:14 +01:00
Leif Singer d1fc46e658 cover both update_option and add_option 2023-11-27 16:09:14 +01:00
Leif Singer 7faf9b9f3b indent assignments correctly 2023-11-27 16:09:14 +01:00
Leif Singer 71ec30268a use proper sprintf for placeholders 2023-11-27 16:09:14 +01:00
Leif Singer 247bf534e3 optimize the checks a bit 2023-11-27 16:09:14 +01:00
Leif Singer 82f1bddaa5 add changelog file 2023-11-27 16:09:14 +01:00
Leif Singer e4c6d9a532 invert the conditional so we can remove the nesting and go for an early return instead 2023-11-27 16:09:14 +01:00
Leif Singer 7bda29426b ensure the value key is set 2023-11-27 16:09:14 +01:00
Leif Singer 3352891794 ensure the option values are arrays 2023-11-27 16:09:14 +01:00
Leif Singer 81e7fce52a appease the linter 2023-11-27 16:09:14 +01:00
Leif Singer 79831e0bbf Email the site admin when a payment gateway is enabled 2023-11-27 16:09:14 +01:00
Mike Jolley 4a13e5faf0 Switch to NoticeBanner component inside Store Notices Block placeholder (https://github.com/woocommerce/woocommerce-blocks/pull/11920) 2023-11-27 13:43:42 +00:00
nigeljamesstevenson cb43ae8bc1 Merge branch 'update/e2e-skip-flaky-test-downloads-revenue-report-as-CSV' of github.com:woocommerce/woocommerce into update/e2e-skip-flaky-test-downloads-revenue-report-as-CSV 2023-11-27 13:36:20 +00:00
nigeljamesstevenson f8928ecc85 skip newly added tests as they appeas to be flaky 2023-11-27 13:35:58 +00:00
Agung Sundoro 7e77a13f16 fix: store notices always shows as an error type woocommerce/woocommerce-blocks#11768 (https://github.com/woocommerce/woocommerce-blocks/pull/11932) 2023-11-27 05:07:18 -08:00
Arsany Benyamine fa1f2896fb replace Stories root Dir to "External Components" (https://github.com/woocommerce/woocommerce-blocks/pull/11910) 2023-11-27 04:14:58 -08:00
github-actions 2af871747e Add changefile(s) from automation for the following project(s): woocommerce 2023-11-27 11:53:24 +00:00
nigeljamesstevenson 2896a4a4bd skip newly added test as appears to be flaky 2023-11-27 11:47:45 +00:00
Alba Rincón 1c325c3ea9 Convert to tsx and replace proptypes by ts definitions (https://github.com/woocommerce/woocommerce-blocks/pull/10471)
* Convert to tsx and replace proptypes by ts definitions

* Fix imports

* Fix noReviewsPlaceholder type

* Fix ts errors

* Use createHigherOrderComponent in withReviews

* Revert hoc change

---------

Co-authored-by: Niels Lange <info@nielslange.de>
2023-11-27 12:08:17 +01:00
Albert Juhé Lluveras 2f7bd83ae2
Fix link to e2e tests documentation from WooCommerce Admin directory (#41631)
* Fix link to e2e tests documentation from WooCommerce Admin directory

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-11-27 09:53:22 +01:00
Manish Menaria 53944beeb3 [Product Collection] Fix: HTML entity decoding for product names in Hand-Picked Products (https://github.com/woocommerce/woocommerce-blocks/pull/11927)
* Add HTML entity decoding for product names in Hand-Picked Products control

In the Hand-Picked Products control within the product-collection inspector controls, a function for decoding HTML entities in product names has been added.

- A new utility function `decodeHTMLEntities` has been implemented. This function decodes HTML entities in a string, ensuring that special characters are correctly displayed in their human-readable form.
- The `transformTokenIntoProductName` function has been updated to utilize `decodeHTMLEntities`. Now, when a product name is fetched (either directly as a token or via a product ID), the HTML entities within the name are decoded.
- This enhancement ensures that product names containing characters like ampersands or other HTML entities are accurately displayed in the UI.

This change improves the readability and accuracy of product names within the Hand-Picked Products control, enhancing the user experience for store managers using WooCommerce Blocks.

* Update label and hide description

This commit updates the `HandPickedProductsControl` component. Specifically, the user-facing label for product selection has been changed from 'Pick some products' to 'Hand-picked Products'. Additionally, the `__experimentalShowHowTo` property has been added with a `false` value, to hide description. Corresponding changes have been made in the E2E test file `product-collection.block_theme.spec.ts`, where the filter name is updated to match the new label.

* Refactor: Replace custom HTML entity decoder with `@wordpress/html-entities`

Rationale:
- The shift to `@wordpress/html-entities` aligns with standard WordPress practices, ensuring consistency across the platform.
- Enhances maintainability by relying on a well-supported library rather than custom code.
- Simplifies the codebase by removing a redundant utility function.

This change enhances the robustness of our code and aligns with best practices in WordPress development.
2023-11-27 12:27:04 +05:30
Sam Seay 1cd4df5b19 Migrate interactivity stock filter to new store API, add improvements and bugfixes (https://github.com/woocommerce/woocommerce-blocks/pull/11827) 2023-11-27 17:26:01 +13:00
Daniel Dudzic 590263543f Product Gallery Thumbnails: Add support for cropping (https://github.com/woocommerce/woocommerce-blocks/pull/11718)
* Product Gallery Thumbnails: Refactor sizing in the editor and the front end

* Product Gallery Thumbnails: Change default vertical alignment to top and better control the width of the thumbnails

* Product Gallery Thumbnails: Fix thumbnails cropping based on the 'Crop images to fit' setting

* Product Gallery Thumbnails: Revert thumbnails styling from woocommerce/woocommerce-blocks#11665

* Product Gallery Thumbnails: Update the default value of the cropImages setting to false
2023-11-24 23:49:44 +01:00
Daniel Dudzic 38b0001735 Product Gallery Thumbnails: Fix overflow issues and improve responsiveness (https://github.com/woocommerce/woocommerce-blocks/pull/11665)
* Product Gallery Thumbnails: Refactor sizing in the editor and the front end

* Product Gallery Thumbnails: Change default vertical alignment to top and better control the width of the thumbnails

* Product Gallery Thumbnails: Restrict the bottom position thumbnails width based on the total number of thumbnails set

* Product Gallery: Remove hardcoded width for Thumbnails and the Large Image and update the width inside of the Dialog

* Product Gallery Thumbnails: Introduce thumbnails scaling based on the number of thumbnails

* Product Gallery Thumbnails: Fix editor thumbnails scaling

* Product Gallery Thumbnails: Remove unused column gap variable

* Product Gallery Thumbnails: Fix styling for vertical images

* Product Gallery: Remove the unused editor.scss file

* Product Gallery: Fix the placement of the Thumbnails block in the block template

* Product Gallery Dialog: Reset changes to the dialog

* update @wordpress/e2e-test-utils-playwright package

* don't update node version

* remove waitForSiteEditorFinishLoading function

* use visitSiteEditor util

* Product Gallery Thumbnails: Add code comments

* Product Gallery Thumbnails E2E: Fix the test checking the default position of the thumbnails

* Product Gallery E2E: Fix the test checking if the cropping setting works correctly

* Product Gallery Thumbnails: Hide the Thumbnails block if there aren't at least 2 thumbnails to display

---------

Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
Co-authored-by: Luigi Teschio <gigitux@gmail.com>
2023-11-24 21:31:02 +01:00
mt8 e88a66eb25 Fix Downloadable Product Permissions: The text '-1' is rendered every time merchants click the 'Grant access' button without entering any product #31678 2023-11-25 03:46:24 +09:00
Alba Rincón c7182d9202 [Store Customization] AI-generated store name (https://github.com/woocommerce/woocommerce-blocks/pull/11878)
* Add new ai/store-title endpoint to update the store title with an AI generated one

* Add StoreTitle schema

* Fix error to response param

* Fix var name and tweak prompt

* Update comment

* Replace it by Ai generated if it's the default title

* Return error if AI failed

* Return false if the title is not updated with an AI one
2023-11-24 14:40:51 +01:00
Alba Rincón b6657403f8
[Store Customization] Update the store title with an AI generated one (#41632)
* Make the call to update the store title with an AI generated one

* Add changelog
2023-11-24 14:40:37 +01:00
github-actions[bot] 853ba527d2
Delete changelog files based on PR 41660 (#41669)
Delete changelog files for 41660

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2023-11-24 18:14:04 +08:00
rodelgc 597e2ed269
Update WooCommerce Core WP.org product page readme (#41660)
* update readme.txt for Woo Copy update on WP.org product page

* Transform to sub-header texts

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: nigeljamesstevenson <nigeljamesstevenson@gmail.com>
Co-authored-by: github-actions <github-actions@github.com>
2023-11-24 17:35:46 +08:00
Karol Manijak ff59efc27f Remove isExperimental flag from product-query module which is not experimental (https://github.com/woocommerce/woocommerce-blocks/pull/10531) 2023-11-24 08:36:30 +01:00
Sam Seay 9168b47f33 Translate the prefixes passed to post-terms in product-meta. (https://github.com/woocommerce/woocommerce-blocks/pull/11811) 2023-11-24 17:33:28 +13:00
Barry Hughes bedb4db309
Add legacy wc_format_postcode tests along with new tests for IE and PT postcodes (#31787) 2023-11-23 11:23:15 -08:00
Maikel David Pérez Gómez 55485012e5
[Grouped products] Inventory tab (#41640)
* The Track inventory toggle is not visible in the Inventory tab for grouped product types

* Add changelog file
2023-11-23 12:16:10 -05:00
Maikel David Pérez Gómez 829ca23326
[Grouped products] Create product-grouped feature flag (#41639)
* Create product-grouped feature flag

* Add support to the product editor to handle grouped product types as well

* Add changelog file
2023-11-23 11:24:51 -05:00
Paulo Arromba f60f10ad59 Update/testing instructions and changelog for 11.6.1 (https://github.com/woocommerce/woocommerce-blocks/pull/11923)
* Updated readme.txt and testing instructions

* Updated testing zip.

* Updated stable version
2023-11-23 15:52:20 +00:00
Fernando Marichal 4a0db06321
Modify notice for legacy local attributes (#41646)
* Modify notice for legacy local attributes

* Rename variable

* Add changelogs

* Rename local_attributes_notice_dismissed_ids
2023-11-23 12:00:17 -03:00
Roy Ho 9aea9ef53b Remove alignment from template part (https://github.com/woocommerce/woocommerce-blocks/pull/11891) 2023-11-23 05:40:17 -08:00
Mike Jolley 48777bb1ef Add missing woocommerce class (https://github.com/woocommerce/woocommerce-blocks/pull/11919) 2023-11-23 12:35:13 +00:00
Albert Juhé Lluveras c422227341 Fix an issue that caused the Order by select in Reviews blocks to always be disabled (https://github.com/woocommerce/woocommerce-blocks/pull/11918) 2023-11-23 12:59:14 +01:00
Albert Juhé Lluveras 8b6d81a7c3 Fix Reviews blocks not being rendered (https://github.com/woocommerce/woocommerce-blocks/pull/11913) 2023-11-23 10:52:06 +00:00
Karol Manijak b5e91ee460 Enable shrink columns option in Product Collection by default (https://github.com/woocommerce/woocommerce-blocks/pull/11821)
* Enable shrink columns option in Product Collection by default

* Improve tests about responsiveness

* Make regex allowing for floating pixels

* Related products should not use sticky and author attribute or have hardcoded queryId

* Bring back properties for Related Products as it's based on Propducts block, not Product Collection

* Enable shrink columns to fit by default in patterns
2023-11-23 10:10:19 +01:00
Alba Rincón 8cb50f1b59 Store Customization > Ensure the price for products is also AI-generated (https://github.com/woocommerce/woocommerce-blocks/pull/11859)
* Generate the product price with AI

* Fine tune the prompt to take into account the store currency

* Improve the price prompt
2023-11-23 09:58:09 +01:00
Luigi Teschio fc349610b0 add delete /pattern endpoint (https://github.com/woocommerce/woocommerce-blocks/pull/11890) 2023-11-23 09:42:06 +01:00
Karol Manijak 41d5a4bda6 Prevent shrinkColumns value when switching the layout type of Product Collection (https://github.com/woocommerce/woocommerce-blocks/pull/11905) 2023-11-23 08:17:35 +01:00
Jonathan Lane 595f99d933
Run daily smoke tests on wp-env (#41560)
* Run daily smoke tests on wp-env

* Add changelog

* Add step to install playwright to e2e tests

* Run k6 containers as e2e

* Get build first for k6

* Tweak for API report

* Change k6 tests back to non-local

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-11-23 12:41:27 +08:00
barryhughes e3d1a3c7b9 Convert comments to assertion messages. 2023-11-22 15:14:08 -08:00
barryhughes cd32a5a087 Changelog. 2023-11-22 15:13:06 -08:00
Saggre 74e27e6f26 Remove duplicate tests. 2023-11-22 15:09:37 -08:00
Damián Suárez 7a98a38399 fix eslint issue 2023-11-22 17:06:52 -03:00
Damián Suárez c9a211c6fb move changelog file to the proper place 2023-11-22 16:38:06 -03:00
Damián Suárez de1b1c89cf add tooltip helo to Organization/Attributes title 2023-11-22 16:38:06 -03:00
Damián Suárez 254469ddbe update/product-editor-add-missing-desc 2023-11-22 16:37:52 -03:00
Paulo Arromba 5a66522601
Update WooCommerce Blocks to 11.6.0 (#41641)
* Updated woocommerce/woocommerce-blocks to 11.6.0
2023-11-22 16:45:28 +00:00
And Finally 99d063095f
Marketplace: My Subscriptions feature branch (#40249) 2023-11-22 15:58:30 +00:00
Mike Jolley c8b48ed8d8
Remove "Checkout is not available whilst your cart is empty" notice (#41504)
* Remove "Checkout is not available whilst your cart is empty." notice

* Add changefile(s) from automation for the following project(s): woocommerce

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-11-22 16:56:03 +01:00
Jorge A. Torres 409a256815
Fix TypeError in WC_Discounts->apply_coupons() when being called a second time [redux] (#41602)
* Discounts are not in the format `array( 'string' => 'string' )`, they are in the format `array( 'string' => array( int, int ) );`.

* Remove `ArrayUtil` because `ensure_key_is_array` creates the array and returns `true`.

* Add Changelog manually

* Fix changelog placement.

---------

Co-authored-by: John Rom <john@nimblelight.com>
2023-11-22 15:52:24 +00:00
Paulo Arromba 9a63503008 Update/11.6.0 changelog and testing instructions (https://github.com/woocommerce/woocommerce-blocks/pull/11904)
* Updated changelog and added testing instructions

* Updated changelog.

* Updated versions.

* Updated tested up to

* Updated tested up to

* Uploaded testing zip

* Removed woocommerce/woocommerce-blocks#11287 from testing instructions

* Added testing instructions and changelog for woocommerce/woocommerce-blocks#11858

* Updated testing zip

* Testing instructions for woocommerce/woocommerce-blocks#11862 and woocommerce/woocommerce-blocks#11860

* Updated testing zip

* New testing zip with woocommerce/woocommerce-blocks#11872 🍒

* Updated versions to 11.7.0-dev

* Updated composer.lock
2023-11-22 15:19:17 +00:00
And Finally 6e39f5494a Merge branch 'trunk' into feature/marketplace-subscriptions 2023-11-22 15:10:12 +00:00
And Finally 3b6d53efe5 Removed refresh button spin animation – was going backwards, and isn't consistent with general design approach. 2023-11-22 14:27:22 +00:00
And Finally 9dff04752f Addressing linter errors. 2023-11-22 14:23:51 +00:00
And Finally 5c88fd0490
Marketplace: fix sideways scrolling of the my subscriptions table on Chromium based browsers (#41630) 2023-11-22 13:59:56 +00:00
And Finally 1fc1d83931
Marketplace: update no results page (#41603) 2023-11-22 13:59:17 +00:00
And Finally 5a2d598159 Addressing linter errors. 2023-11-22 13:58:51 +00:00
And Finally 51321ee586
Merge branch 'feature/marketplace-subscriptions' into fix/my-subscriptions-scrolling-chromium 2023-11-22 13:39:23 +00:00
And Finally 3012a41f4e Reduced font weight in "no results" headers, to match the headers elsewhere in the Marketplace. 2023-11-22 13:37:37 +00:00