Commit Graph

55408 Commits

Author SHA1 Message Date
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
Damián Suárez 7957314723
Remove unused @wordpress/scripts dependency (#41864) 2023-12-04 21:39:15 -03:00
Damián Suárez fda0cd13d5 Merge branch 'trunk' into fix/wrdpressscripts 2023-12-04 20:16:14 -03:00
Damián Suárez 37e824eca8
[Product Block Editor]: Handle Modal Editor visibility from UI state (#41859) 2023-12-04 18:52:02 -03:00
Damián Suárez 6c5cb1ed2b rename store folder 2023-12-04 16:51:54 -03:00
Nathan Schneider 1e3b7425dc Remove unused @wordpress/scripts dependency 2023-12-04 16:17:28 -03:00
Damián Suárez dfa1adaf44 changelog 2023-12-04 14:43:29 -03:00
Damián Suárez 7a1cb7619e handle Modal editor via store 2023-12-04 14:43:29 -03:00
Damián Suárez a22331f3db import, export and register the store 2023-12-04 13:25:52 -03:00
Damián Suárez 3b6e70ace0 introduce Product Editor store 2023-12-04 13:25:52 -03: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
Chi-Hsuan Huang f4e486d421
Update CYS task subheading (#41771)
* Update cys task subheading

* Add changelog
2023-12-04 21:35:34 +08:00
Fernando Marichal 0a6ca9e7db
Add max width to tooltip (#41797)
* Add max-width to tooltip

* Add changelog
2023-12-04 10:22:10 -03:00
Nathan Silveira 4f08753d0c
Add wc-settings to the footer when injecting wc-settings dependency (#41790) 2023-12-04 10:06:38 -03:00
Panos (Panagiotis Synetos) 54b980c2d2
Use fallback colors wherever CSS variables are used in WooCommerce admin (#41803) 2023-12-04 09:17:41 +02: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
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
Damián Suárez c6da01737c
[Product Block Editor]: minor Summary block enhancements (#41839) 2023-12-01 14:15:58 -03: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
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
Damián Suárez 1da600718b handle attrs at component edit level 2023-12-01 11:44:30 -03: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
Damián Suárez 0c2e79dfe4 set label at block def level 2023-12-01 09:51:22 -03:00
Panos (Panagiotis) Synetos 7e9d04afa2
Merge branch 'trunk' into fix/41774-use-fallback-colors-css-variables 2023-12-01 14:48:17 +02:00
Damián Suárez a376da9316 changelog 2023-12-01 09:38:30 -03:00
Damián Suárez 8cf5424c5e summary block: tweak name, and attrs handling 2023-12-01 09:14:11 -03: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
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
Bartosz Budzanowski f271f9fea4
Update order attribution default cookie lifetime. (#41806) 2023-11-30 22:53:59 +01:00
Ron Rennick 51c39c5573
add gray matter to the markdown in the docs folder (#41794) 2023-11-30 15:38:02 -04:00
Brent MacKinnon b080f7ed7b
Update configuring-caching-plugins.md 2023-11-30 15:08:18 -04:00
Brent MacKinnon 10670ac029
Update readme.md 2023-11-30 15:07:11 -04:00
Brent MacKinnon d2c63b7f38
Update readme.md 2023-11-30 15:06:15 -04: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