Commit Graph

52237 Commits

Author SHA1 Message Date
Corey McKrill 1804d44be1
Remove feature compatibility unit test
The mocks in this test were affecting other unit tests for the
PluginUtil class, but only when run in GitHub actions (the tests were
working fine locally). Rather than hold up this PR, I've created
issue #38720 as a future task to add the unit test back in once we've
figured out if there's something buggy happening with dependency
injection.
2023-06-14 10:49:50 -07:00
Corey McKrill 9db19e4848
Tweak unit tests 2023-06-13 15:47:27 -07:00
Corey McKrill 7cbebac61c
Ensure test mocks don't pollute other tests 2023-06-12 14:49:22 -07:00
Corey McKrill d2a9feda2a
phpcs cleanup 2023-06-09 17:26:38 -07:00
Corey McKrill 50f4e63ddb
Add unit tests 2023-06-09 17:14:48 -07:00
Corey McKrill 318a133e17
Rename feature_compat to feature_compatibility 2023-06-09 11:24:08 -07:00
Corey McKrill f0f586aa5e
phpcs cleanup 2023-06-09 11:24:08 -07:00
Corey McKrill 2a3b5bfe64
Add changelog file 2023-06-09 11:24:07 -07:00
Corey McKrill 71ead43c61
WC Tracker: Add enabled features, plugin feature compatibility
* Adds a data key with the list of WC features that are currently
  enabled on the site.
* Adds a `feature_compat` key to each plugin that shows its
  compatibility with each feature (compatibile, incompatible, uncertain)
  if the plugin is "woocommerce aware", otherwise just an empty array.
2023-06-09 11:23:53 -07:00
Albert Juhé Lluveras 9725529e41
Update WooCommerce Blocks to 10.2.3 (#38663) 2023-06-09 17:31:58 +02:00
Maikel David Pérez Gómez 72f7e6ebbb
Publishing product in classic editor redirects back to new editor (#38551)
* Changes the feature given it's id and a toggle value as a query param

* Swap classic editor and new product block editor url when product_block_editor feature changes

* Turn off the product_block_editor feature when user choose to use the classic editor

* Add changelog files

* Fix linter errors

* Add nonce to each feature change request

* Change the hooks name for better readability

* Use get_current_screen function to better identify if the current screen is the product creation or edition

* Add wp_die if the nonce verification failed

* Change regex for explode/parse_url for better reading
2023-06-09 11:18:40 -04:00
Ron Rennick 55faf9dcda
Fix 'dynamic property declaration' warnings in wc-admin code (PHP 8.2+) (#38587) 2023-06-09 09:40:26 -03:00
Vedanshu Jain 079274d428
[COT] Allow to filter orders query (#36625) 2023-06-09 15:20:41 +05:30
RJ e68ff848b3
add: updated payment gateways for 2023 Q3 (#38646) 2023-06-09 17:15:53 +08:00
RJ 622711c48b
dev: refactor installAndActivatePlugins to xstate (#38577)
* dev: refactor installAndActivatePlugins to xstate

* ts fixes

* fixed first plugin install progress bar reset issue

* clean up todo comments

* fixed bug where errors were not reported if past 30s timeout

* fix lint
2023-06-09 15:08:45 +08:00
Vedanshu Jain b04376b501
Add HPOS compat queries for tracker. (#38293) 2023-06-09 10:19:01 +05:30
Matt Sherman dadc0eb777
Show feedback footer on product editor page (#38599) 2023-06-08 20:56:07 -04:00
Corey McKrill f16388007c
Allow extenders to add content to order details screen payment info box (#38443)
Adds new `woocommerce_admin_order_data_after_payment_info` hook to the Edit Order screen.
2023-06-08 16:45:08 -07:00
Joshua T Flowers e09e8b8ab0
Show "Save draft" instead of "Saved" on initial product page (#38609) 2023-06-08 15:32:49 -07:00
Rua Haszard e8f2d3f061 remove remnant comment about "contextual notice" (now gone):
- intending to use Gutenberg notice and/or proposed forthcoming InlineNotice variant
2023-06-09 10:26:28 +12:00
Joel Thiessen 8098c35588
Add initial release of WooAI plugin (#38610)
Co-authored-by: Joel Thiessen <444632+joelclimbsthings@users.noreply.github.com>
Co-authored-by: Nima Karimi <73110514+nima-karimi@users.noreply.github.com>
Co-authored-by: Thomas Shellberg <tommy.shellberg@automattic.com>
2023-06-08 13:20:05 -07:00
Joshua T Flowers 4569fda5c1
Add iframe editor header toolbar and block inserter (#38549)
* Add initial toolbar and secondary sidebar

* Style the sidebar and inserter panel

* Adjust toolbar and modal paddings

* Move header toolbar styles to separate file

* Make header toolbar class names consistent with component

* Dont use experimental insertion index and fall back to default insertion point

* Add changelog entry
2023-06-08 12:14:25 -07:00
Jorge A. Torres 6672e9e199 Move $report_columns var to reports DataStore parent class 2023-06-08 15:48:50 -03:00
Maikel David Pérez Gómez 338bf6e45e
Product route not updated after save initially failed and succeeded after (#38507)
* Enhance error handling

* Use last persisted product status to show a right publish button label and notices

* Use last persisted product status to show a right preview button label and notices

* Use last persisted product status to show a right save draft button label and notices

* Uses the last persisted product to better compare it with the most recently updated product so the buttons can behave correctly

* Add changelog file

* Fix getProductErrorMessage unit test

* Fix notice message when create / update the product

* Get product id from within each button hook
2023-06-08 14:22:07 -04:00
RJ 5c4746cefc
add: core profiler url routing (#38620)
* added url routing

* fixed tests and changelog
2023-06-08 12:52:22 +08:00
Corey McKrill ef3168abf4
Fix PHP notice when outside of orders screens (#38641)
Avoid the notice by returning early if we're not on an admin page with wc-orders in its slug.
2023-06-07 16:49:22 -07:00
Jorge A. Torres d21cd0b80e Replace x.x.x with correct version number in doing_it_wrong call 2023-06-07 19:13:32 -03:00
Jorge A. Torres 125fdb77c1 Remove files from versioning 2023-06-07 19:12:00 -03:00
Corey McKrill 4c62519144
Update class-wc-order.php comment text (#38630)
Fix a doc block typo.
2023-06-07 15:00:03 -07:00
Corey McKrill 76e84c6bce
Add changelog file 2023-06-07 14:10:46 -07:00
Jorge A. Torres 8c694cfd09 Add changelog 2023-06-07 16:15:14 -03:00
Jorge A. Torres 2cde03eea8 Do not execute orders page controller logic when outside of the orders
screen
2023-06-07 16:14:23 -03:00
Corey McKrill 016d9484dc
HPOS: Add descriptive document titles to HPOS order admin screens (#38617)
* Set the Orders admin page titles

* Tweak edit order title, translator messages

* Add changelog file

* phpcs cleanup
2023-06-07 13:28:10 -03:00
Gan Eng Chin 99dbdbe3f2
Fix WooCommerce name typo in Codisto extension description in test (#38302) 2023-06-07 23:45:52 +08:00
pwsonline 0458dafcb7
Update wc-page-functions.php (#38008)
Co-authored-by: Nestor Soriano <konamiman@konamiman.com>
2023-06-07 11:08:36 +02:00
mdimai666 03db6d9684
Update class-wc-order.php comment text
Update class-wc-order.php comment text
2023-06-07 13:16:55 +09:00
RJ 1b1f86066f
dev: refactor core profiler pages (#38606)
* dev: refactor core-profiler - modularise each page

- wrapped each page's pre, post, and main states into their top level states for tidiness
- tagged them with id so that we can easily jump to them when doing routing
- generalised component finder code such that it recursively traverses the state meta object until it finds a component key
- fixed css label to use top level state key

* moved initializing into introOptIn so it's not a special case by itself
2023-06-07 11:39:38 +08:00
Barry Hughes 532f3ca3f8
Add a docs directory and a document about HPOS (#37509) 2023-06-06 11:18:14 -07:00
Nathan Silveira 52fe3c4a5a
Product Editor Onboarding: Show spotlight for first time visitors (#38590)
* Add placeholder TourKit in product-page

* Create component and configure it to show to the right of wp menu

* Finish TourKit and start creating features guide

* Implement CSS changes and background color

* Create Wrapper to facilitate showing the tour and guide without relying on the options in the future

* Refactor
Add tracks events

* Add changelog

* Fix lint problems

* Fix CSS

* Refactor styles

* General refactor and extract BlockEditorGuide component

* Add changelog

* Fix lint issues
2023-06-06 12:06:26 -03:00
Néstor Soriano ebe8577ad6
Add suggestion from code review
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-06-06 16:33:53 +02:00
Néstor Soriano f5123c2caf
Add suggestion from code review
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-06-06 16:33:44 +02:00
Néstor Soriano 5722634227
Add suggestion from code review
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-06-06 16:33:35 +02:00
Néstor Soriano f1438578e1
Add suggestion from code review
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-06-06 16:33:27 +02:00
Néstor Soriano 52985cb207
Add suggestion from code review
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-06-06 16:33:18 +02:00
Néstor Soriano bb7eca8da1
Add suggestion from code review
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-06-06 16:33:09 +02:00
Néstor Soriano 50b7554f7a
Add suggestion from code review
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-06-06 16:33:01 +02:00
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
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