Commit Graph

52342 Commits

Author SHA1 Message Date
Néstor Soriano 66b9f715bc
Add suggestion from code review
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-06-06 16:32:53 +02:00
Ron Rennick 7137d60347
Fix various 'dynamic property declaration' warnings (PHP 8.2+) (#38589) 2023-06-06 11:01:54 -03:00
Igor Radovanov 218ad2e48a Add Saint Kitts and Nevis localizations for address entry #38280 2023-06-06 14:01:12 +02:00
RJ e1bdd2f73b
dev: refactor core profiler tracks actions (#38603)
* dev: refactor core-profiler - consolidate tracks

* dev: refactor core-profiler - moved tracks out

* dev: moved tracks up one level

* dev: fixed spawn warning

- caused by this xstate bug https://github.com/statelyai/xstate/issues/1429

* dev: standardised ctx -> context
2023-06-06 15:20:34 +08:00
Jorge A. Torres 4b0836c403 Add $args to docblock in filters 2023-06-05 19:39:59 -05:00
Jorge A. Torres 6257722232 PHPCS fixes 2023-06-05 19:39:59 -05:00
Jorge A. Torres 21d1172038 Add unit tests 2023-06-05 19:39:59 -05:00
Jorge A. Torres 914beaa234 'orderby' and 'groupby' clauses in filter shouldn't include SQL
statement
2023-06-05 19:39:59 -05:00
Jorge A. Torres 1e9c8bfe1d Add changelog 2023-06-05 19:39:59 -05:00
Jorge A. Torres f7f801cdba Rename orders table query filters 2023-06-05 19:39:59 -05:00
Grégory Viguier 6f569e934f Allowed to filter orders query clauses
This introduces 2 filters: `woocommerce_order_table_orders_clauses` and `woocommerce_order_table_orders_request`. They mimic the ones found in `WP_Query::get_posts()`.
They allow to modify the query's clauses, depending on the query args (available in the `OrdersTableQuery` object) for example.
2023-06-05 19:39:59 -05:00
Corey McKrill b63af49a83
Fix assertion in HPOS unit test (#38615)
This adjusts the asserted value of a test so it will continue to pass after a change in #38565.
2023-06-05 17:38:57 -07:00
github-actions[bot] c0ea0e2acf
Delete changelog files based on PR 38585 (#38597)
Delete changelog files for 38585

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-06-06 07:11:30 +07:00
Jorge A. Torres f11152c0bc Apply review suggestion 2023-06-05 18:48:41 -05:00
Jorge A. Torres 45025a9ad0 Fix assertion in HPOS unit test 2023-06-05 18:39:25 -05:00
Jorge A. Torres f6db2f92f4 Add changelog 2023-06-05 18:39:18 -05:00
Corey McKrill 8840e9e5e3
Add an admin notice about the upcoming change in PHP requirements (PHP 7.4 minimum) (#38604) 2023-06-05 14:36:24 -07:00
Chris Runnells a5bbe0ed7c
Add Core Profiler loading spinner (#38598) 2023-06-05 10:32:07 -10:00
Fernando Marichal f2aae0a71a
Fix editing Shipping methods auto-saving (#38431)
* Fix Shipping Methods auto save

* Add changelog

* Fix e2e tests

* Fix e2e tests

* Add `shipping_zone_remove_method`

* Fix `onDeleteRow`

* Fix lint

* Fix delete method

* Add confirmation prompt and error message

* Fix lint

* Fix js

* Add e2e test

* Fix tests
2023-06-05 13:07:21 -03:00
louwie17 bb0e8803a0
Replace interpolateComponents within onboarding package (#38423)
* Replace use of interpolateComponents with createInterpolateElement

* Remove @automattic/interpolate-components package from onboarding package

* Add changelog
2023-06-05 10:36:47 -03:00
Ron Rennick d8e534410f
fix string + string for PHP 8.X (#38534) 2023-06-05 07:28:03 -03:00
Nestor Soriano 9e382be288
Add changelog file 2023-06-05 12:27:03 +02:00
Nestor Soriano 049d209e68
Add an admin notice about the upcoming change in PHP requirements
The minimum required PHP version will be 7.4 as of WooCommerce 8.2.
This adds a dismissable admin notice to PHP 7.3 users.
2023-06-05 12:25:27 +02:00
Tomek Wytrębowicz f569f333a1
Fix Layout Controller forwarding arrays from the URL query string. (#38593)
* Revert part of "Remove `qs` dependency from `woocommerce-admin` (#35128)"

This reverts Layout- and Filter-related changes from commit 00c151f9aa, reversing
changes made to eef417fe39.

Removes the fix (keeping the test) from https://github.com/woocommerce/woocommerce/pull/38542 as it's not needed for `qs`

Fixes https://github.com/woocommerce/woocommerce/issues/38582.

* Simplify the use of query params in `ProductTour`

* Add changelog entry
2023-06-05 04:55:20 -03:00
Chris Runnells 3ae3a0df8d Lint fixes 2023-06-02 15:08:33 -10:00
Chris Runnells 12a54f097f Add changelog entry 2023-06-02 14:28:43 -10:00
Chris Runnells 3082b21b1e Added ProfileSpinner component to display when Core Profiler assets are loading 2023-06-02 14:27:17 -10:00
Chris Runnells ac85cc2c59
Fix The Task Header Width in 2-Col Layout (#38585) 2023-06-02 14:09:10 -10:00
Jorge A. Torres 0e669470ef Add changelog 2023-06-02 12:47:03 -05:00
Jorge A. Torres 0c2809d970 Fix dynamic prop declaration warning in Tracks event code 2023-06-02 12:42:55 -05:00
Jorge A. Torres a338f50642 Fix dynamic prop declaration warning in admin menu code 2023-06-02 12:42:55 -05:00
Jorge A. Torres 1505c40bd8 Fix dynamic prop declaration warning in `WC_Order` 2023-06-02 12:42:55 -05:00
Jorge A. Torres 68b703cc9c Fix dynamic prop declaration warning in cart code 2023-06-02 12:42:55 -05:00
Ron Rennick 39dad76b08
Fix dynamic property declaration warnings in shipping code (PHP 8.2+) (#38569) 2023-06-02 14:36:14 -03:00
Jorge A. Torres 491aa8216c Fix dynamic prop declaration warning in `WC_Email` 2023-06-02 12:28:51 -05:00
Ron Rennick 2068738300
Fix dynamic property declaration warnings in gateway code (PHP 8.2+) (#38566) 2023-06-02 14:25:42 -03:00
Jorge A. Torres 1abb0874c3
Fix dynamic property declaration warnings in HPOS code (PHP 8.2+) (#38565)
* Fix typo in variable name

* Remove unnecessary instance var from CustomOrderTable migration files

* Add changelog
2023-06-02 12:24:01 -05:00
Ron Rennick a4bb76a573
Support values written in exponential notation for HPOS migrations. (#38561) 2023-06-02 13:21:33 -03:00
Jorge A. Torres 48385351b1 Add changelog 2023-06-02 11:03:15 -05:00
Jorge A. Torres 345d99e1c1 WCAdmin fixes 2023-06-02 11:03:07 -05:00
Jorge A. Torres 22e8217220 PHPCS fixes 2023-06-02 09:24:07 -05:00
Jorge A. Torres c3f2ff0714 Add changelog 2023-06-02 09:24:07 -05:00
Jorge A. Torres 59ea67768c Fix ‘dynamic property declaration’ warning in `WC_Countries` 2023-06-02 09:24:07 -05:00
Jorge A. Torres 88618ca07a Fix ‘creation of dynamic property’ warnings for shipping methods code 2023-06-02 09:24:07 -05:00
Adrian Duffell c477fe852b Add changelog 2023-06-02 21:59:56 +08:00
Adrian Duffell bb2fcce173 Update task header max width
Fixes a bug where on 2-col layouts, text was overlapping the image because the overall container size is less than 500px.

75% is the equivelent of 500px for single-col layout.
2023-06-02 21:51:32 +08:00
Rua Haszard 61324ccd4f correct @since version and clarify changelog 2023-06-02 15:17:42 +12:00
Rua Haszard 8fbfa57798 remove `contextual notice` experiment, can use inline notice Gutenberg component 2023-06-02 15:11:45 +12:00
Maikel David Pérez Gómez abcedbefe0
[MVP QA #1] Visual: spacings (#38325)
* Update the margin-left on the buttons in the top bar from 16px to 8px

* On mobile, the left and right body margins should be 32 px

* The inner padding in the tab in the top bar should be 12px, not 16px

* In the edit product link modal, let's set this modal’s width to 650 px and remove the line separating the header from the contents

* All modals should now have 8 px window radius

* In the feedback form, can we fix the buttons at the bottom

* The help icon in checkboxes small, detached from the item label, and vertically misaligned. Left margin of 4 px, no vertical adjustment; somehow it has a -2px set for the top margin)

* Fix block-editor-block-contextual-toolbar top position

* When the product is in a draft state, the button in the top bar should say Add, not Save. It should change into Update once it's published on the store

* Fix layout margin top

* Add ection support for blockGap and set title and description to optional

* Remove non needed control field margin bottom

* Fix schedule sale block spacing

* Remove non needed control field help text margin bottom

* Remove the sub section outer spacing

* Move pricing fields into a sub section block

* Fix collapsible-contet margin top

* Remove invalid inner block layout spacing

* Wrap sku, stock toogle and quantity within a sub section

* Group inventory advance section inner blocks into a sub section

* Fix linter error

* Add changelog files

* Fix php lint error

* Change unit names to fit GB definitions
see: b2c16f3c68/packages/base-styles/_variables.scss\#L31-L41
2023-06-01 13:56:31 -04:00
Jorge A. Torres e14bfd46d7 Add changelog 2023-06-01 11:55:04 -05:00