Commit Graph

12755 Commits

Author SHA1 Message Date
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
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
Justin Palmer f35d52203e
Add order attribution feature (#39701) 2023-11-30 12:54:20 +01:00
Justin Palmer 2ef39a1298
Revert template version bumps from 2eecbb715d 2023-11-30 11:19:09 +01:00
Jason Kytros a34ddb8993
Remove Subscriptions from the Add Product task list (#41778) 2023-11-30 16:08:47 +07: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
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
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
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
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
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
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
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