Commit Graph

12256 Commits

Author SHA1 Message Date
Chi-Hsuan Huang 6af471d248
[CYS] Add more Tracks (#41321)
* Add more tracks for cys

* Add changelog

* Update track events
2023-11-10 14:51:00 +08:00
Niels Lange d7eecf61ae
Style <mark> tag on order detail page (#41323) 2023-11-10 11:17:40 +07:00
Moon 6f818f7787
Clear payment suggestion cache when base country gets updated (#41344)
* Clear payment suggestion cache when base country gets updated

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-11-09 16:44:33 -08:00
James Allan 8db0df028f
Fix missing or duplicated order meta after post backport when meta value is an array (WC 8.2) (#41281)
* Compare a serialised version of the meta value when trying to find existing matching meta

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

* Add unit test

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Jorge Torres <jorge.torres@automattic.com>
2023-11-09 23:38:14 +00:00
Corey McKrill f91b4a0322
Logging: New, improved view for a single log file (#41114)
Fixes #41143
2023-11-09 12:42:19 -08:00
Nathan Silveira 7b0ef3db00
Move Template implementation classes to internal namespace (#41170)
* Move Template implementation classes to internal namespace

* Fix namespaces that were changed by mistake

* Add missing imports to files since they were moved to another namespace

* Adapt to new lint rules
2023-11-09 16:21:33 -03:00
Corey McKrill 4c60f62993
phpcs cleanup 2023-11-09 10:23:37 -08:00
Corey McKrill c30851fe1c
Go to file list after deleting file from single view 2023-11-09 10:23:37 -08:00
Corey McKrill fae98b0f5e
Update plugins/woocommerce/src/Internal/Admin/Logging/PageController.php
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-11-09 10:23:37 -08:00
Corey McKrill 95d725f9b2
Update plugins/woocommerce/src/Internal/Admin/Logging/PageController.php
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-11-09 10:23:37 -08:00
Corey McKrill 9e57211bdd
Simplify retrieval of severity levels 2023-11-09 10:23:36 -08:00
Corey McKrill 6551a5494d
Highlight the currently selected line 2023-11-09 10:23:36 -08:00
Corey McKrill c3d1e0243c
Adjust severity level colors to meet WCAG AAA requirements
In order to do this, but still have differentiated bright colors,
this changes it from a background color to a border color. Also tweaks
the border styles to make it look like a label icon.
2023-11-09 10:23:36 -08:00
Corey McKrill 8bfbcbdff0
Update plugins/woocommerce/client/legacy/css/admin.scss
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-11-09 10:23:36 -08:00
github-actions 12919888d4
Add changefile(s) from automation for the following project(s): woocommerce 2023-11-09 10:23:36 -08:00
Corey McKrill d516492a74
Add a confirmation dialog for deleting the viewed file 2023-11-09 10:23:36 -08:00
Corey McKrill 99d8f1e3cc
Ensure list table screen options aren't registered for single file view 2023-11-09 10:23:36 -08:00
Corey McKrill ba12e14500
Add unit test for get_file_rotations, fix delete_files test 2023-11-09 10:23:35 -08:00
Corey McKrill 3dfbe2db47
Add more unit tests for File class 2023-11-09 10:23:35 -08:00
Corey McKrill 226e2649f7
Add delete button to single file view 2023-11-09 10:23:35 -08:00
Corey McKrill dbb07106e5
Add some padding to Logs screen headers 2023-11-09 10:23:35 -08:00
Corey McKrill 526ffd817a
Add unit tests for getting files by file ID 2023-11-09 10:23:35 -08:00
Corey McKrill 28f8da6fbc
Add assertions for get_file_id to File unit tests 2023-11-09 10:23:35 -08:00
Corey McKrill b3489a7af7
Add file rotation navigation 2023-11-09 10:23:35 -08:00
Corey McKrill 22343ba78d
Add a header wrapper element on log screen titles 2023-11-09 10:23:34 -08:00
Corey McKrill aee77a44cc
Revert to css line numbers so they arent selectable 2023-11-09 10:23:34 -08:00
Corey McKrill d439bb2b25
Remove unused styles 2023-11-09 10:23:34 -08:00
Corey McKrill db52e9da9e
Style tweaks 2023-11-09 10:23:34 -08:00
Corey McKrill 608652f362
Fix broken markup 2023-11-09 10:23:34 -08:00
Corey McKrill 321c9b8be4
Fix broken markup 2023-11-09 10:23:34 -08:00
Corey McKrill 7bb643377c
phpcs cleanup 2023-11-09 10:23:34 -08:00
Corey McKrill ee65fae397
Extra escaping 2023-11-09 10:23:33 -08:00
Corey McKrill 561ba9a61b
Remove test script 2023-11-09 10:23:33 -08:00
Corey McKrill b63075d67f
Make log lines selectable, retain anchor 2023-11-09 10:23:33 -08:00
Corey McKrill 0c5689d683
Render log file lines in single file view 2023-11-09 10:23:33 -08:00
Corey McKrill 51f7e70127
Refactor File to use wp_filesystem, add stream method 2023-11-09 10:23:33 -08:00
Corey McKrill e914b9a2d5
Scaffold the single file view 2023-11-09 10:23:33 -08:00
Corey McKrill 7ecb9dfaee
Improve file path validation 2023-11-09 10:23:33 -08:00
Corey McKrill 2fe04da8f4
Don't use full log file names in the UI 2023-11-09 10:23:32 -08:00
Jorge A. Torres daaab7acc8
Render customers filter on HPOS list table on hook `woocommerce_order_list_table_restrict_manage_orders` (#41328)
* Render `customers_filter()` on hook `woocommerce_order_list_table_restrict_manage_orders` for backwards compat

* Add changelog
2023-11-09 15:48:11 +01:00
louwie17 65234c4590
Remove unused large banner image (#41244)
* Remove unused banner image

* Add changelog
2023-11-09 09:43:10 -04:00
Maikel David Pérez Gómez e5b1ee338e
Update the select all behavior in the variations table (#41008)
* We display the number of selected items, e.g., '5 selected'

* We display a number of all existing items next to the button, e.g., "Select all (25)".

* When only some items are selected on the page, we show an additional button that says "Select page (X)" where X stands for the number of rows on the page. Clicking it selects all rows on the page.

* Clicking "Select all" selects all existing items

* Add changelog file

* Add tracking events

* Saving progress on variations table

* Manage tracking events and error handling

* Hide edition features when at least one variation is selected

* Fix linter errors

* Resolve rebase conflicts

* Remove use selection hook since is not needed anymore

* Fix filter items vertical alignment

* Add changelog files

* Fix inconsistent loading and variations state

* Do not show EmptyTableState when the product has variations but the filter get empty list

* Invalidate cache state before generating variations

* Fix select all after filtering variations

* Remove delete variations from the selection list

* Retreive the product after generating variations

* Fix linter

* Invalidate variations cache after generating variations
2023-11-09 08:25:27 -05:00
github-actions 13c4235738 Add changefile(s) from automation for the following project(s): woocommerce 2023-11-09 09:46:08 +00:00
Niels Lange eeb2b8ba07
Style <mark> tag on order page 2023-11-09 15:44:55 +07:00
Moon 670e2c0669
Remove use of SQL_CALC_FOUND_ROWS in low stock query (#40289)
* Separate count query

* Fix total_results var

* Add count-low-in-stock endpoint

* Use new count-low-in-stock endpoint

* Fix inconsistent in function names

* Type cast to int

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

* Fix spelling

* Separate count query function

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

* Use get_count_query

* Use count-low-in-stock endpoint

* Remove condition where it only updates product count when there is less than 2 items -- no longer needed as we are using a new endpoint to count the products

* Fix spelling

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

* Lint fixes

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-11-09 12:49:50 +08:00
Chi-Hsuan Huang 65e533bedd
[CYS] Add track events (#41284)
* Add tracks for cys

* Update assignStartLoadingTime entry

* Add changelog

* Fix types

* Fix redundant wcadmin track name

* Track "Start again" button instead
2023-11-09 09:32:47 +08:00
Mike Jolley e0a4ee82c1
Update WooCommerce Blocks package to 11.5.3 (#41269)
* Bump version in composer.json

* Update lock files

* changelog

* ensure the properties exist before accessing them

* add changelog file

* skip a test that is waiting for a fix from WooCommerce Blocks

* appease the linter

* remove commented out code

* use `empty` instead of `property_exists`

Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>

* Update WooCommerce Blocks package to 11.5.1

* Update WooCommerce Blocks package to 11.5.2

* Undo test removal

* bump to woocommerce blocks 11.5.3

---------

Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com>
Co-authored-by: Leif Singer <git@singer.sh>
Co-authored-by: Leif Singer <leif@automattic.com>
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
Co-authored-by: Albert Juhé Lluveras <contact@albertjuhe.com>
Co-authored-by: Luigi <gigitux@gmail.com>
2023-11-08 17:19:21 -06:00
nigeljamesstevenson 3befeb4b2d
Add hooks to customize the behavior of the cart shipping calculator (#41146) 2023-11-08 23:14:44 +00:00
nigeljamesstevenson d167337a1f
Fix "Choose Your Theme" task header (#41293) 2023-11-08 23:14:28 +00:00
Jonathan Lane bfa64a7d42
Improve e2e test stability (#41315)
* Clean up created pages and posts

* Move tax tests so that they run last

* Improve locators

* Changelog

* Improve locators

* Improve locator on heading

* Change assertions to look for alert text

* Change assertion to look for text

* Update locators

* Update locator

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-11-08 16:50:33 -06:00