Commit Graph

63571 Commits

Author SHA1 Message Date
Gan Eng Chin 3ac3a497ba
Change "Origin" column name to "Attribution" in Orders Analytics (#46760)
* Change "Origin" column name to "Attribution" in Analytics.

* Rename "Origin" column to "Attribution" in Orders Analytics report download.

* Add changelog.
2024-04-22 21:20:30 +08:00
Gan Eng Chin c595717d16
Fix "Add a filter" UI issue in Analytics (#46750)
* Fix UI for add filter popover in Analytics.

* Make character casing consistent for filters.

* Add changelog.

* Add changelog.

* Change filter label to sentence case.
2024-04-22 21:15:22 +08:00
Jorge A. Torres a6222d6828
Fix encoding on a few HPOS docs (#46786)
* Fix encoding in some HPOS docs

* Update manifest
2024-04-22 18:23:14 +05:30
nigeljamesstevenson aba7cb753b
Update test-assistant-api-rest-change-tracker.yml 2024-04-22 13:28:25 +01:00
nigeljamesstevenson ab7d2dbb01
Update test-assistant-release-highlight-tracker.yml 2024-04-22 13:28:14 +01:00
Alba Rincón efbce912c5
[CYS] Remove `Save` button from inside the different sections (#46526)
* Remove save button, rename done button and fix tests

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

* Fix error

* Fix lint errors

* Fix more lint errors

* Fix done button tests

* Add missing awaits

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-22 14:26:57 +02:00
Ilyas Foo ecb48cc0fb
Replace LYS coming soon override to use template include filter and handle 404 gracefully (#46667)
* Hide woo breadcrumb

* Update coming soon entire site style

* Update style

* Fix wp group block

* Change coming soon template to use template_include instead

* Changelog

* Change to add_filter

* Proper handling for non-FSE themes

* Update comments

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2024-04-22 17:54:48 +08:00
Chi-Hsuan Huang b9ea5bacd8
Fix back from CYS via LYS goes to Home, not LYS (#46665)
* Add goBack action to customize-store

* Add changelog

* Add __experimentLocationStack to history

* Update customize-store goBack action

* Rename __experimentalLocationStack
2024-04-22 21:26:32 +12:00
kkmuffme 118932d2ee
Skip loading of webhooks if webhooks disabled (#46057)
* Skip loading of webhooks if webhooks disabled

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

* PHP CS fix.

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Vedanshu Jain <vedanshu.jain.2012@gmail.com>
2024-04-22 14:24:56 +05:30
Kyle Barrow d612e893ff
Prevent fatal error on the Status page when the log directory contains an unreadable directory (#46709)
Add flag to RecursiveIteratorIterator to prevent fatal error on Woocommerce Status page when system tmp folder includes unreadable directories
2024-04-22 10:52:48 +02:00
Jorge A. Torres 24a9b8c771
Remove HPOS entries from Tracker and WC status that are no longer in use (#46239)
* Remove unused HPOS props from WC_Tracker and status screen

* Add changelog

* Fix tests
2024-04-22 12:49:07 +05:30
Barry Hughes 99be7b960b
Adjust labelling of refund line items in refund emails and order summaries. (#45455) 2024-04-22 12:45:43 +05:30
Mayisha de3bc938d2
Fix breadcrumb back icon color to follow the admin theme color (#40106)
* prevent breadcrump back icon from being converted to an image

* add changelog file
2024-04-22 12:31:00 +05:30
Mayisha 2f29ef8a5a
Replace pink with WooCommerce purple in reports and ratings (#40243)
* replace pink with wc purple in reports page

* use wc purple in product rating in the dashboard widget

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

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

* use better contrast

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2024-04-22 12:30:25 +05:30
RJ fd52f18f6b
Move LYS coming soon initialization to core profiler flow (#46708)
Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2024-04-22 14:49:59 +08:00
Bart Kalisz 007a4238c3
Blocks E2E: Provide correct expected translation (#46756) 2024-04-20 13:23:55 +02:00
Adrian Duffell 073d0eb59d
LYS copy updates (#46668)
* lys blurb

* Add constants for docs

* Store mode copy

* Private link copy

* Coming soon message

* Bug fix
2024-04-20 00:02:53 +00:00
Leif Singer d1be68b88c
Update @woo.com email addresses to @woocommerce.com (#46387)
* update @woo.com email addresses

* update %40woo.com email address

* add changelog file

* update docs manifest
2024-04-19 21:11:01 +00:00
Jorge A. Torres 5fe34385a1
Migrate HPOS wiki docs to the docs site (#46724)
* Add HPOS CLI tools doc

* Add HPOS extension recipe book

* Add HPOS querying improvements

* Update manifest

* Fix some linting issues

* Apply suggestions from review

* Update manifest
2024-04-19 11:51:10 -07:00
Nathan Silveira ea96bea77e
Highlighting text in the product's description of the new product editor is not visible inside editor (#46728)
* Enqueue global presets css while loading the new product editor

* Change from gutenberg to wp prefix
2024-04-19 13:47:13 -03:00
Fernando Marichal d21b03588a
Add E2E tests to cover Publish dropdown options (#46658)
* Add e2e tests for publish options

* Add changelog

* Create different tests for options

* Update plugins/woocommerce/tests/e2e-pw/tests/merchant/products/block-editor/product-edit-block-editor.spec.js

Co-authored-by: louwie17 <lourensschep@gmail.com>

---------

Co-authored-by: louwie17 <lourensschep@gmail.com>
2024-04-19 10:46:32 -03:00
Maikel Perez 46d87d427a
[CFT Custom fields]: Show error message after pressing Add or Add another (#46703)
* Show validation message in the field that lost the focus

* Add unique validation for custom field names and trim values

* Let edit custom fields when creating a new product

* Add changelog file
2024-04-19 12:39:52 +00:00
Fernando Marichal eb4873dcd3
Fix edit custom field modal width (#46727)
* Remove min-width

* Add changelog

* move changelog

* Fix width
2024-04-19 09:36:09 -03:00
Justin Palmer 2d71790b72
Avoid JS errors if Sourcebuster library isn't loaded (#46723)
* Don't initialize or handle data if SBJS isn't loaded
2024-04-19 12:24:10 +02:00
Panos (Panagiotis Synetos) afc471d0ed
[LYS] Fix deprecation error with lowercase $user->id (#46747)
👌 Use uppercase $user->ID and some text updates
2024-04-19 13:17:14 +03:00
Chi-Hsuan Huang b575fd580e
Apply styles to Coming soon entire store regardless of theme (#46619)
* Hide woo breadcrumb

* Add deregistration of unnecessary styles for the coming soon page in ComingSoonRequestHandler.php

* Update coming soon entire site style

* Add fonts

* Add changelog

* Update style

* Fix wp group block
2024-04-19 08:00:49 +00:00
EngHell 05a728ff03
performance: checks fo $this->data_synchronizer->data_sync_is_enabled… (#46616)
* performance: checks fo $this->data_synchronizer->data_sync_is_enabled() before executing $this->data_synchronizer->get_sync_status()

* Update plugins/woocommerce/src/Internal/Utilities/COTMigrationUtil.php

Fix code style issues

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

---------

Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2024-04-18 15:59:18 -07:00
Gan Eng Chin 48f2a4c5ad
Display "Origin" column in Orders table in Orders Analytics (#46424)
* Display channel column in Orders Analytics UI.

* Set $data to false to not use cache.

For development purpose.

* Get channel info from order meta and put into extended_info.

* Set channel in order item level.

* Replace channel with get_origin_label in extended_info.

* Remove unnneeded channel in orders_data.

* Display origin instead of channel in table.

* Fix lint errors.

* Query order meta table based on HPOS.

* Remove code for development purpose.

* Add changelog.

* Fix code comment.

* Guard against null values.

`_wc_order_attribution_utm_source` can be null when the order is created via web admin.

* Set default origin label to "Unknown".

This default is the same as found in `output_origin_column` function in plugins/woocommerce/src/Internal/Orders/OrderAttributionController.php.

* Support server side report download.

This is needed when there are more than 25 records in the Orders Analytics report.

* Fix failed test.

* Fix lint error.

* Simplify code.

We loop through $orders_data instead of $order_attributions data. This is because $order_attributions may not have attributions data for some orders.

By looping through $orders_data, it would automatically cater for "Unknown" data from get_origin_label function call, and we don't need to specify "Unknown" as default value for origin.

* Change "channel" to "attribution" object in controller.

This is because we need more than one piece of information, so we need it to be an object with properties like `origin`, `device` etc.

Co-authored-by: Kader Ibrahim S <kader.ibrahim.s@a8c.com>

* Change `origin` string to `attribution` array in Orders DataStore.

Co-authored-by: Kader Ibrahim S <kader.ibrahim.s@a8c.com>

* Change origin string to attribution object.

* Fix indexing after changing from origin string to attribution object.

* Change from origin string to attribution object in table.js.

* Simplify code.

To make code shorter and easier to read, instead of long horizontal code.

* Fix lint errors.

* Fix failed test.

* Fix lint error.

* Fix retrieving origin in CSV export.

* Use $wpdb->postmeta; cosmetic change.

Co-authored-by: Kader Ibrahim S <kader.ibrahim.s@a8c.com>

* Cosmetic change.

Co-authored-by: Kader Ibrahim S <kader.ibrahim.s@a8c.com>

* Sanitize order IDs by using absint.

Co-authored-by: Kader Ibrahim S <kader.ibrahim.s@a8c.com>

---------

Co-authored-by: Kader Ibrahim S <kader.ibrahim.s@a8c.com>
2024-04-18 16:16:26 +00:00
Leif Singer 2d837ac687
Fix: update REST API v3 reports/orders/totals endpoint to be compatible with HPOS (#46715)
* add a failing test for order totals with HPOS enabled but sync disabled

* fix comment

* ensure the wc/v3/reports/orders/totals endpoint is compatible with HPOS

* add changelog file

* address linter issues
2024-04-18 15:49:19 +00:00
Seghir Nadir af53de9aaa
Fix E2E search string for Cart block shipping tests (#46720)
* Fix E2E search string for Cart block shipping tests

* add changelog

* update to uppercase

* fix test

* fix test one last time

* fix lint
2024-04-18 17:13:49 +02:00
Nathan Silveira 80133578be
Fix description block collapsing when unfocused (#46646) 2024-04-18 10:37:40 -03:00
Nathan Silveira 3a21f87bed
Allow saving a product as a draft when hitting ctrl/cmd + S (#46552)
* Allow saving a product as a draft when hitting ctrl/cmd + S

* Increment logic to keep product published/scheduled after it is published when using shortcut
2024-04-18 10:37:30 -03:00
Raluca Stan f165667632
Prevent checkout blocks breakage for stores using similar number separators (#46241)
* Add a safety check for the numbers with the same value for the separators

This case breaks the library we are using for number formatting. This is not documented on their end and can't be fixed by passing a different configuration.
We are fixing it on our end by overwriting the thousand separator.
This change will only surface in the checkout blocks, at they are the only blocks doing formatting via React (the products blocks use php).
This will not apply to the order confirmation.
This change is preventing a fatal error thrown by the library and allowing users to see the content of the cart.
It's an edge case, because it happens only why people have the same values for the separators, which is an non-standard way to format.

* Add unit tests and changelog

* Add a safety check for the numbers with the same value for the separators

This case breaks the library we are using for number formatting. This is not documented on their end and can't be fixed by passing a different configuration.
We are fixing it on our end by overwriting the thousand separator.
This change will only surface in the checkout blocks, at they are the only blocks doing formatting via React (the products blocks use php).
This will not apply to the order confirmation.
This change is preventing a fatal error thrown by the library and allowing users to see the content of the cart.
It's an edge case, because it happens only why people have the same values for the separators, which is an non-standard way to format.

* Add unit tests and changelog

* Improve tests

* "Improve tests"
2024-04-18 15:17:30 +03:00
Ron Rennick 4797d72c60
Release webpack dependency plugin (#46702)
* add changelog entry for node bump

* bump package version

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2024-04-18 11:26:01 +01:00
Damián Suárez 2df389329e
[Product Block Editor]: when adding a new attribute, show selected item right after user clicks on it (#46713)
* render selected value before porpulate terms

* changelog
2024-04-18 05:22:16 -04:00
Chi-Hsuan Huang ea27c1f364
[LYS] Regenerate share key on the fly (#46662)
* Add logic to regenerate the share key if it's not set in LaunchYourStore.php

* Add changelog

* Use add_option directly
2024-04-18 19:39:23 +12:00
Nathan Silveira 5e7962af67
Fix pages not being scrollable on variations on the new product editor (#46700) 2024-04-18 04:16:31 -03:00
Damián Suárez b0e3e31cbe
Data: introduce optimisticQueryUpdate item option (#46343)
* add a CustomActionDispatchers for createProductAttribute action

* add optional options to createItem() fn

* update items object when optimisticQueryUpdate is defined

* reduce itemsCount when creating a new item

* polish TS types

* update reducer tests

* clean unused type

* clean dirty code

* add optimisticQueryUpdate test

* changelog

* minor improvement

* options could be undefined

* compute items and itemsCount based on data

* fix TS error

* changelog
2024-04-18 01:27:40 -04:00
Chi-Hsuan Huang da5272497d
Fix LYS success page shown but Task not crossed off (#46663)
* Add useDispatch hook and ONBOARDING_STORE_NAME import in Congrats.tsx

* Add changelog
2024-04-18 10:29:07 +12:00
Ilyas Foo d2c4490c92
Fix deprecated error message for LYS in PHP 8.1 environment (#46661)
* Fix deprecated error with strlen when using PHP 8.1

* Changelog
2024-04-18 05:45:13 +08:00
Thomas Roberts 9e0fab4ebc
Reset shipping rate font size to match other elements (#46345) 2024-04-17 13:54:43 -07:00
Maikel Perez 4b1e7cbcb8
[CFT Custom fields]: Fix modal separator at the bottom (#46691)
* Remove table separator, move field names to table columns and fix the modal growing when there are validation errors

* Add changelog file
2024-04-17 15:36:33 -03:00
nigeljamesstevenson 486a0210ed
Update changelog.txt 2024-04-17 18:47:00 +01:00
github-actions[bot] 29e2c40d7a
Update changelog.txt from release 8.8.2 (#46679)
Prep trunk post release 8.8.2

Co-authored-by: WooCommerce Bot <no-reply@woo.com>
2024-04-17 18:44:42 +01:00
Maikel Perez 24306bf0bd
[CFT Custom fields]: Remove horizontal separator that initially appears (#46682)
* Remove block appender below the custom fields block

* Add changelog files
2024-04-17 14:40:10 -03:00
Brent MacKinnon b530a6e9dd
Update guide-large-store.md (#46697)
* Update guide-large-store.md

* Update docs-manifest.json
2024-04-17 11:14:38 -06:00
nigeljamesstevenson f10cc1af4e
Update stable tag to 8.8.2 (#46698)
woorelease: Update stable tag to 8.8.2
2024-04-17 18:03:08 +01:00
Fernando Marichal fd521fb338
Convert the downloable checkbox into a toggle (#46693)
* Convert downloable checkbox into a toggle

* Add changelog
2024-04-17 13:53:53 -03:00
Bart Kalisz 8da0396b34
Blocks E2E: Fix basic role-based tests (#46684) 2024-04-17 18:50:37 +02:00
Jonathan Lane 87ac3d2c85
Add stalebot for flaky e2e test reporter (#46585)
* Add flaky test reporter for flaky e2e test reporter

* Add to stalebot workflow instead

* Update stale action to 9 for node 20

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2024-04-17 11:03:12 -03:00