Commit Graph

19178 Commits

Author SHA1 Message Date
Luigi Teschio 88562d1106 Products By Attribute: E2E tests - skip test (https://github.com/woocommerce/woocommerce-blocks/pull/12085) 2023-12-07 17:19:50 +01:00
Hsing-yu Flowers 2578fa11e9 Update the checkout order endpoint allowed order statuses for payment complete (https://github.com/woocommerce/woocommerce-blocks/pull/12018)
* Update the allowed order statuses for payment complete

* Check if order exists before checking needs_payment
2023-12-07 11:09:19 -05:00
Matt Sherman c892074b76 Update comment for phpcs:disable 2023-12-07 10:58:19 -05:00
Matt Sherman 7c14b27f36 Extract public function to register block type 2023-12-07 10:55:46 -05:00
Luigi Teschio d959781fc6 Social Follow Us Pattern: fix width image (https://github.com/woocommerce/woocommerce-blocks/pull/12080) 2023-12-07 15:42:45 +01:00
Mike Jolley efe2017794 Fix classname for dark mode in validation notice (https://github.com/woocommerce/woocommerce-blocks/pull/12037) 2023-12-07 14:41:31 +00:00
Mike Jolley 45ae286a10 Change guest permissions to full after verification (https://github.com/woocommerce/woocommerce-blocks/pull/12072) 2023-12-07 14:41:12 +00:00
ragulka ba9760baa3 reset array keys after filtering to prevent conversion to JSON object (https://github.com/woocommerce/woocommerce-blocks/pull/11070) 2023-12-07 14:40:34 +00:00
Luigi Teschio be79b9864e
Fix: `useEditorBlocks` hook always returns an array (#41874)
* fix: useEditorBlocks hook always returns an array

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-07 14:41:44 +01:00
Patricia Hillebrandt 4467715546
[CYS] Update the call to the ai product endpoint to account for the newly introduced last_product param. (#41842) 2023-12-07 09:17:29 -03:00
Patricia Hillebrandt d9ca827083
[CYS] Temporarily remove the survey button (#41781) 2023-12-07 09:16:15 -03:00
Patricia Hillebrandt 396f1e5169 Merge branch 'trunk' into 41637/remove-survey-button 2023-12-07 08:49:10 -03:00
Patricia Hillebrandt c60992e061
Update color palettes when AI is no available (#41880) 2023-12-07 08:39:13 -03:00
Barry Hughes e9ba3d3755
Make the process for initiating the password strength meter more robust. (#41822) 2023-12-07 12:25:13 +01:00
Patricia Hillebrandt 4c62ac23ee Address build and lint errors 2023-12-07 08:05:06 -03:00
Patricia Hillebrandt 90dc7aaa41 Fix lint error 2023-12-07 07:55:35 -03:00
Patricia Hillebrandt 00b7b78ee8 Merge branch 'trunk' into update/ai-product-endpoint-last-product-param 2023-12-07 07:27:14 -03:00
Patricia Hillebrandt 422e9ce1b9 Merge branch 'trunk' into update-color-palettes-no-ai 2023-12-07 07:22:53 -03:00
Patricia Hillebrandt a8d4de29f9 Address lint errors. 2023-12-07 06:26:55 -03:00
Niels Lange ab766273ff Fix font weight of cart totals title in site editor (https://github.com/woocommerce/woocommerce-blocks/pull/12051)
* Fix font weight of cart totals title in site editor

* Set explicit font-weight for th in cart line items
2023-12-07 15:55:47 +07:00
Luigi Teschio f59b95d6e3
CYS: Reset products when the AI is offline (#41923)
* CYS: Reset products when the AI is offline

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-07 09:42:16 +01:00
Luigi Teschio 60efd15e7e CYS: Add DELETE private/ai/products endpoint (https://github.com/woocommerce/woocommerce-blocks/pull/12076)
* CYS: Add DELETE private/ai/products endpoint

* Ensure the hash for the product is also updated on content reset.

---------

Co-authored-by: Patricia Hillebrandt <patriciahillebrandt@gmail.com>
2023-12-07 09:27:57 +01:00
Luigi Teschio 01d9bfc678
CSY: Update copy when AI is offline (#41900)
* fix: CSY - update font copy when ai is offline

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

* update font

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-07 09:16:28 +01:00
Chi-Hsuan Huang f793b64c64
Make CYS loader smoother (#41772)
* Make CYS loading sequence smoother

* Add changelog
2023-12-07 12:14:57 +08:00
Matt Sherman 1451626182 Make the BlockRegistry a singleton 2023-12-06 20:07:52 -05:00
Marco Almeida dd1a76d2be
Cart shortcode: Format postcode before validation on the shipping calculator (#41917)
In the shortcode-based Cart, format postcode before validation on the shipping calculator to be coherent with the checkout behaviour.

Fixes #41913
2023-12-06 16:43:57 -08:00
Corey McKrill d82747f643
Add changelog file 2023-12-06 16:34:05 -08:00
Corey McKrill 57804c0ed5
Improve backtrace getter 2023-12-06 16:05:26 -08:00
barryhughes 6dd6866640 Changelog. 2023-12-06 15:43:43 -08:00
barryhughes b186a83aea Set version tag to 8.5.0. 2023-12-06 15:35:38 -08:00
barryhughes 64206a9a6d Use strict array searching. 2023-12-06 15:35:04 -08:00
Corey McKrill 651e754fdd
Show log context as additional togglable table row
This is partly based on the work done by @johnregan3 in #31823.

Co-authored-by: John Regan <john.m.regan@gmail.com>
2023-12-06 15:03:22 -08:00
Patricia Hillebrandt 89108c348b ditch spacing. 2023-12-06 19:04:21 -03:00
Patricia Hillebrandt 6bc41b24e3 Fix lint error. 2023-12-06 19:01:28 -03:00
Daniel W. Robert cb48f78fae Remove `Approved Pull Requests` Workflow (https://github.com/woocommerce/woocommerce-blocks/pull/12017)
* Remove ADD_LABEL step for 'status: ready to merge'

This updates the workflow to remove the step for adding the 'status: ready to
merge' label.

Additionally, this adjusts the naming within the job to reflect the
change to the workflow.

* Remove entire workflow for Approved Pull Requests

Once Woo Blocks is merged into the monorepo, this workflow will no
longer be needed / relevant at all.
2023-12-06 15:25:02 -05:00
Patricia Hillebrandt 6305c8f001 Merge branch 'trunk' into update-color-palettes-no-ai 2023-12-06 16:58:53 -03:00
Christopher Allford 8c6b414fe0
Revert "Refactoring Task Infrastructure" (#41928)
Revert "Refactored Task Infrastructure (#41202)"

This reverts commit 96a973b9fa.
2023-12-06 11:36:12 -08:00
Christopher Allford d6a3ba9ba9
Revert "Renamed `@woocommerce/shortcode-assets`" (#41927)
Revert "Renamed `@woocommerce/shortcode-assets` (#41922)"

This reverts commit d0fa93d470.
2023-12-06 11:35:53 -08:00
Christopher Allford d0fa93d470
Renamed `@woocommerce/shortcode-assets` (#41922) 2023-12-06 10:13:25 -08:00
Christian Wach 8fbb7cd8fc Add customer address change action to user profile 2023-12-06 18:01:01 +00:00
Christopher Allford 96a973b9fa
Refactored Task Infrastructure (#41202)
* Fixed NPM packages with invalid names.
* Renamed plugin packages.
* Standardized package NPM scripts.
* Replaced Turborepo with Wireit.
2023-12-06 09:32:32 -08:00
Patricia Hillebrandt 564f95d997 Update the color palette migrated from Tsubaki for the New - Neutral palette. 2023-12-06 14:22:35 -03:00
Atanas Penchev bf87c09969
CSS3 transitions for all fade animations (#37692)
* CSS3 transitions for all fade animations

* Changelog

* Whitespace

* Formatting

* Lambda function

* Comment

* Clean up transitionEnd event listeners if (!touch)

* Update this.offsetWidth comment

* Use jQuery methods in order to greatly reduce diff
2023-12-06 17:44:26 +01:00
Mike Jolley 14cdc5e6f5 Use locale in isAddressComplete (https://github.com/woocommerce/woocommerce-blocks/pull/11888) 2023-12-06 16:33:15 +00:00
Chris Lilitsas 62e094e554
Missing CSS class on the empty-orders notice CTA in the My Account > Orders page (#41325)
* Add missing class

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

* Template bump

* Bump version

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-06 15:59:05 +00:00
Karol Manijak 71640ef347 Restructure Product Collection editor files (https://github.com/woocommerce/woocommerce-blocks/pull/11981)
* Move Product Collection editor experience components into /edit directory

* Move Product Collection Inner Blocks structure to constants

* Improve the Product Collection's variations names
2023-12-06 15:50:24 +01:00
Leif Singer 4897cdb683
Logging: Update doc block to more accurate return value (#41867) 2023-12-06 14:48:11 +01:00
github-actions 4cd59f6a3a Add changefile(s) from automation for the following project(s): woocommerce 2023-12-06 13:45:12 +00:00
github-actions 6d252400fb Add changefile(s) from automation for the following project(s): woocommerce 2023-12-06 13:43:30 +00:00
Alba Rincón 6806f61aa7 Show the survey button only when AI is available 2023-12-06 14:43:16 +01:00
Alba Rincón cb3fdeb35d Change copy depending on the the AI availability 2023-12-06 14:41:46 +01:00
Alba Rincón 77826c6c76 Add new color palettes for when ai is unavailable 2023-12-06 14:41:34 +01:00
Karol Manijak 4d72c559d3 Unify the @typescript-eslint/parser version with eslint-plugin and what's in Core (https://github.com/woocommerce/woocommerce-blocks/pull/12066) 2023-12-06 20:28:48 +07:00
Barry Hughes 4c57f72574
Change To be able to download order data from all products removed (#41449) 2023-12-06 04:57:41 -08:00
Moon 212c5bca3e
CYS - AI Offline flow (#41656) 2023-12-06 20:49:28 +08:00
Mike Jolley ccd0b6b33c Use get_plugins because it uses cache (https://github.com/woocommerce/woocommerce-blocks/pull/12031) 2023-12-06 12:43:07 +00:00
Mike Jolley 946d15ca48 Adjust nesting so page wraps the main group block (https://github.com/woocommerce/woocommerce-blocks/pull/12050) 2023-12-06 12:31:37 +00:00
Tarun Vijwani 1879839657 Add missing actions to data store documentation (https://github.com/woocommerce/woocommerce-blocks/pull/11986)
* Add missing actions to the documentation

- Add the missing actions to the following:

- data-store/cart
- data-store/checkout
- data-store/collections
- data-store/validation

* Move actions above selectors in Cart doc

* Add more info to cart actions

* Fix syntax of Cart actions examples

* Fix syntax and examples

- Use store name constant instead of strings
- Fix description and examples of collections document

* Add more info about the keys of objects and arrays

* Update billing address info in cart data

* Update parameter names and descriptions in
checkout.md and collections.md

* Update docs/third-party-developers/extensibility/data-store/checkout.md

Co-authored-by: Niels Lange <info@nielslange.de>

---------

Co-authored-by: Niels Lange <info@nielslange.de>
2023-12-06 08:58:25 +00:00
Niels Lange 69ef1b96e8 Enable new notice styles for all themes (https://github.com/woocommerce/woocommerce-blocks/pull/12043)
* Enable new notice styles

* Fix Twenty Twenty-One button background color issue
2023-12-06 15:46:22 +07:00
Luigi Teschio 1f410bdd04 fix: Product Collection: Featured Products 5 Columns improve spacing (https://github.com/woocommerce/woocommerce-blocks/pull/12041) 2023-12-06 09:05:49 +01:00
jonathansadowski d8b2663def
Update stable tag to 8.3.1 (#41612)
woorelease: Update stable tag to 8.3.1

Co-authored-by: rodel <rodel@rodels-MBP.automattic.net>
2023-12-06 05:36:09 +08:00
barryhughes 8fa3282981 Bump version tags. 2023-12-05 13:29:35 -08:00
barryhughes 6cf48117cc Changelog. 2023-12-05 13:29:35 -08:00
barryhughes 54675f228b Update template doc tags; remove unnecessary phpcs:ignore rule. 2023-12-05 13:29:35 -08:00
barryhughes acf14e07a6 Add docblock for filter hook `woocommerce_order_downloads_table_show_downloads`. 2023-12-05 13:29:35 -08:00
mt8 d51ed1aa4c Change: Added a filterable variable to the variables when loading the order/order-details.php template. 2023-12-05 13:29:35 -08:00
mt8 94f95f6ea3 Revert "Add woocommerce_order_has_downloadable_item filter to WC_Order->has_downloadable_item()"
This reverts commit 3baa6a891e.
2023-12-05 13:29:35 -08:00
mt8 6c087974b8 Add woocommerce_order_has_downloadable_item filter to WC_Order->has_downloadable_item() 2023-12-05 13:29:35 -08:00
Fernando Marichal 6ea7a48dbc
Add link to documentation to Downloads section (#41844)
* Modify Downloads description

* Remove text decoration

* Add changelogs

* Modify translators texts

* Fix indenting

* Remove link style

---------

Co-authored-by: Fernando Marichal <fernandomarichal@fernandos-mbp.lan>
2023-12-05 16:59:32 -03:00
rodelgc 8732330ba9
Delete Blocks 11.6.2 changelog from trunk (#41899) 2023-12-06 03:27:14 +08:00
Albert Juhé Lluveras b41c8f5086
Update WooCommerce Blocks to 11.7.0 (#41876)
* Update WooCommerce Blocks to 11.7.0

* Update Mini-Cart block e2e Playwright tests

---------

Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
2023-12-05 16:53:49 +01:00
github-actions[bot] d5c7664c57
Delete changelog files based on PR 41834 (#41885)
Delete changelog files for 41834

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2023-12-05 23:36:50 +08:00
Roy Ho 6df846d11a Product gallery/fix/view all link (https://github.com/woocommerce/woocommerce-blocks/pull/11995)
* Center align view all link

* Add thumbnail count specific styling

* Product Gallery Thumbnails: Improve the responsiveness of the View All overlay text

---------

Co-authored-by: Daniel Dudzic <daniel.dudzic@automattic.com>
2023-12-05 16:25:41 +01:00
github-actions[bot] 9f1231faff
Release: Remove 8.4 change files (#41655)
Delete changelog files from 8.4 release

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2023-12-05 09:53:10 -05:00
github-actions[bot] 8999de2938
Prep trunk for 8.5 cycle (#41654)
Prep trunk for 8.5 cycle with version bump to 8.5.0-dev

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2023-12-05 09:48:52 -05:00
Mike Jolley fac4312664 Remove "shopper's" from string (https://github.com/woocommerce/woocommerce-blocks/pull/12049) 2023-12-05 12:37:19 +00:00
Thomas Shellberg 7b0affff3e
Fix z-index issue with the Image Background Removal Spotlight. (#41185)
* [Woo AI] - Fix z-index issue with the Image Background Removal Spotlight.
2023-12-05 13:08:57 +01:00
Paulo Arromba 9e200b390c
Update WooCommerce Blocks to 11.6.2 (#41869)
Updated woocommerce/woocommerce-blocks to 11.6.2
2023-12-05 11:21:14 +00:00
Albert Juhé Lluveras 38fbb179d9 Update versions to 11.8.0-dev 2023-12-05 10:58:14 +01:00
Albert Juhé Lluveras c50f395efd Add 11.7.0 testing steps and changelog 2023-12-05 10:57:17 +01:00
Christopher Allford 88969742f2
Regenerate PNPM Lock File & Fix Errors (#41830) 2023-12-05 00:36:30 -08:00
Sam Seay c5ad636e35 Upgrade TypeScript to 5.3.2 (https://github.com/woocommerce/woocommerce-blocks/pull/11926)
* Also add skipLibCheck option to TS Config.
2023-12-05 18:17:04 +13:00
Eason d57b9e1d05
Make the `useCampaigns` hook support being used with multiple instances (#41211)
* Add tests for the `useCampaigns` hook in the woocommerce-admin marketing.

* Add `channels` to the deps of `useSelect` in the `useCampaigns` hook to avoid outdated hook states.

* Make the `useCampaigns` hook support being used with multiple instances.

- Include the `perPage` in the page key of campaigns in the multichannel's data store.
- Move the processing of querying the campaigns paging to the selector of the multichannel's data store.
- Move `total` in each campaign's paging of the multichannel's data store.
- Remove unused properties and their types: `state.campaigns.perPage` and `state.campaigns.total`

* Add changelog

* Multichannel data store - Move the `total` from `campaigns.pages[*]` to `campaigns.meta` to have only one total value.

Related to:
- https://github.com/woocommerce/woocommerce/pull/41211#discussion_r1409634640
- https://github.com/woocommerce/woocommerce/pull/41211#discussion_r1409590559

* Multichannel data store - Return the pagination meta of campaigns along with the `getCampaigns` selector.

Address: https://github.com/woocommerce/woocommerce/pull/41211#discussion_r1412266127
2023-12-05 11:20:05 +08:00
Corey McKrill 165495a015
Logging: Update doc block to more accurate return value
Improves the doc block of `wc_get_logger()` to reflect that the return
value will be a class that implements `WC_Logger_Interface`, but may
not actually be an instance of `WC_Logger`.

Fixes #41256
2023-12-04 13:06:31 -08:00
Paulo Arromba 159ce527a7 Add/11.6.2 testing instructions and changelog (https://github.com/woocommerce/woocommerce-blocks/pull/12040)
* Updated readme.txt, versions, added testing steps

* Updated testing zip link
2023-12-04 17:24:58 +00:00
Albert Juhé Lluveras 9371318292 Revert "Remove unused Add to Cart product element (https://github.com/woocommerce/woocommerce-blocks/pull/11948)" (https://github.com/woocommerce/woocommerce-blocks/pull/12033)
This reverts commit 6a397d65f9.
2023-12-04 17:28:58 +01:00
Darren Ethier 795f008952 Implement the Block Hooks API to automatically inject the Mini-Cart block (https://github.com/woocommerce/woocommerce-blocks/pull/11745)
* Change the default for Mini Cart block

The Block Hooks API currently doesn’t allow for setting the default state of the block injected into content so this ensures the mini-cart block has a better default state for injection. The current default (displaying total value in cart) takes up more width increasing the risk of poor layout.

* Utilize Block Hooks to automatically inject mini-cart block.

* include experimental prefix on filters

* Fix filter name.

* remove experimental prefix.

On thinking about this, I don’t think these need to be experimental. They are intentionally provided as escape hatches for hosts/themes that want to opt-in/out so we’ll have to support them when this is shipped (at least until its no longer needed!)

* fix variable name!

* fix unit tests because of new default

* remove another incorrect text expectation

Defaults for the block affect this expectation.

* fix E2E tests

* Mini Cart Block: improve E2E test

* fix: improve check for the Product Collection block

---------

Co-authored-by: Luigi Teschio <gigitux@gmail.com>
2023-12-04 17:27:27 +01:00
Luigi Teschio 5b0e74383b Improve AI prompt for the Featured Category Triple pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11879)
* Improve AI prompt for the Featured Category Triple pattern

* test

* improve prompt
2023-12-04 16:28:36 +01:00
Luigi Teschio f74f5a2e61 Fix Testimonials 3 Column pattern width (https://github.com/woocommerce/woocommerce-blocks/pull/12030)
* Fix Testimonials 3 Column pattern width

* remove padding
2023-12-04 16:28:22 +01:00
Alba Rincón 4b63874ff8
Switch assembler theme to TT4 (#41736)
* Switch assemble theme to TT4

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

* Rename changelog file

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

* Remove duplicated changelog

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

* Remove duplicated changelog

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-12-04 16:20:05 +01:00
Tung Du 2bc48e4e4a Fix: Ensure new filter blocks work with inherited query context (https://github.com/woocommerce/woocommerce-blocks/pull/12022)
* make the collection filters block available globally

* make query optional

* remove unnecessary editor contextual
2023-12-04 21:05:09 +07:00
Chi-Hsuan Huang f4e486d421
Update CYS task subheading (#41771)
* Update cys task subheading

* Add changelog
2023-12-04 21:35:34 +08:00
Nathan Silveira 4f08753d0c
Add wc-settings to the footer when injecting wc-settings dependency (#41790) 2023-12-04 10:06:38 -03:00
Luigi Teschio 945e476648 Improve AI prompt for the header of the Hero Product 3 Split pattern (https://github.com/woocommerce/woocommerce-blocks/pull/11877)
* Improve AI prompt for the header of the Hero Product 3 Split pattern

* improve prompt
2023-12-04 14:04:28 +01:00
Patricia Hillebrandt 5f4c8e2f7c [CYS] Fix regression and ensure AI-generated content is assigned to products after the third attempt (https://github.com/woocommerce/woocommerce-blocks/pull/12016)
* Fix restriction preventing the update of products with AI-generated content after the 3rd attempt.

* use set_slug rather than wp_update_post for updating the product permalink.

---------

Co-authored-by: Alba Rincón <alba.rincon@automattic.com>
2023-12-04 09:58:01 +01:00
Luigi Teschio af23649365 Hook `woocommerce_single_product_summary` action to `core/post-excerpt` block (https://github.com/woocommerce/woocommerce-blocks/pull/11953)
* hook woocommerce_single_product_summary into core/post-excerpt block

* Add E2E tests

* improve E2E test
2023-12-04 09:03:00 +01:00
Alba Rincón a387c93528 Update patterns design (https://github.com/woocommerce/woocommerce-blocks/pull/12005)
* Update "Just arrived full hero" pattern design

* Remove titles from galleries and update chessboard copy

* Remove unused patterns and old option
2023-12-04 08:58:32 +01:00
Patricia Hillebrandt 1f1ddd17d4 Merge branch 'trunk' into update/ai-product-endpoint-last-product-param 2023-12-04 04:04:02 -03:00
Panos (Panagiotis) Synetos 2ab2862185
activation.css does not have access to $woocommerce variable 2023-12-04 08:50:58 +02:00
Panos (Panagiotis) Synetos 3b151dd1db
Merge branch 'trunk' into fix/41774-use-fallback-colors-css-variables 2023-12-04 08:18:52 +02:00
Paul Sealock d25ebd0a1e
Shipping Settings: Revert removal of default method names (#41833) 2023-12-03 14:15:03 +13:00
Paul Sealock 3e139f3c73
Shipping Settings: Refresh shipping methods on every addition (#41834) 2023-12-03 14:14:53 +13:00
Alba Rincón 1a3cd9b328 Update product placeholders with products from design (https://github.com/woocommerce/woocommerce-blocks/pull/12007)
* Update product placeholders

* Fix errors

* WIP

* Fix image path and reduce image size

* Upload ai image only if present

* Replace typewriter image

---------

Co-authored-by: Patricia Hillebrandt <patriciahillebrandt@gmail.com>
2023-12-02 09:47:53 +01:00
Niels Lange 1c7d995e97 Decrease modal width (https://github.com/woocommerce/woocommerce-blocks/pull/12003) 2023-12-02 02:54:39 +00:00
Corey McKrill aaff5a0f43
Logging: Enable downloading log files singularly and in bulk (#41801)
Add functionality and UI for downloading log files directly from WC Admin.

Fixes #40645
2023-12-01 13:49:46 -08:00
paul sealock 2d8a192ef3 remove validation since no field are required 2023-12-02 10:37:01 +13:00
Chris Lilitsas 0f3c4ea4bd
Vertical alignment issue in the variations selector (#41369)
This PR removes a line-height rule causing vertical alignment issues in the variations selector and introduces a bottom margin on the single variation container.

Closes #41367
2023-12-01 12:22:47 -08:00
Seghir Nadir 226d7de6d6 import checkbox from single place (https://github.com/woocommerce/woocommerce-blocks/pull/12015) 2023-12-01 19:40:04 +01:00
Dekadinious acdb2df13a
Show variations in upsells when parent is not published (#30042)
* Show variations in upsells when parent is not published

I was struggling to get the upsell section to show for our eCommerce site. After some digging I found that line 1525 stopped variations from showing in the upsell section if the parent product was set to privately published. This makes testing products and upsells hard, and it's inconsistent behaviour when simple products that are privately published do show up. The proposed change will make variations show up as long as the current user can edit the parent product. This is consistent with the behaviour for simple products.

* Add changelog

---------

Co-authored-by: Jorge Torres <jorge.torres@automattic.com>
2023-12-01 17:08:11 +00:00
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