Commit Graph

53452 Commits

Author SHA1 Message Date
Sam Seay 17299325dd
Don't pass lint if it fails, but still run annotate. (#39943) 2023-08-30 12:48:39 +12:00
RJ 0190f4adea
fix: applied lint autofixes (#39942)
* woocommerce-admin lint fixes

* @woocommerce/* lint fixes

* Add changefile(s) from automation for the following project(s): @woocommerce/date, @woocommerce/data, @woocommerce/components, @woocommerce/admin-layout, woocommerce

* lints

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-08-30 06:40:45 +08:00
Corey McKrill 1640ebaa66
Docs: Add a simple debugging guide and an in-depth doc about using the logger (#39917) 2023-08-29 15:08:14 -07:00
Barry Hughes beeb553fb5
Add woocommerce pay order before payment action in pay-for-order page (#37588) 2023-08-29 14:09:51 -07:00
Corey McKrill 7a0eb0f492
Update debugging link for using the logger 2023-08-29 14:05:23 -07:00
nigeljamesstevenson da521b664e
Update Venezuelan currency: Bolívar (Bs.) (#29380) 2023-08-29 18:55:04 +01:00
nigeljamesstevenson 032440e561
Prevent non-WC_Orders on the order received page (#39876) 2023-08-29 18:51:20 +01:00
louwie17 db9cb4db4b
Add variation inventory quick actions (#39935)
* Add new inventory submenu to variations actions

* Move pricing submenu up to its own function

* Add tests

* Move inventory markup to seperate component

* Remove menu group label

* Add changelog

* Move pricing menu to own component

* Fix lint errors

* Update use of handlePrompt to make return more flexible
2023-08-29 11:46:48 -03:00
Maikel David Pérez Gómez 1356f76f7b
Add multiselection to the Variations table under Variations tab (#39937)
* Add a checkbox to each variation row to select the current variation

* Add an indeterminate checkbox to the header of the variations table

* Add Select all and Clear selection buttons to the variations table

* Disable Select all if all items are selected and disable Clear selection when there is no items selected

* Add changelog file

* Fix linter error
2023-08-29 08:52:54 -04:00
Jorge A. Torres 8217339391
Fix "Move to Trash" link in order edit screen (#39693)
* Order trash/delete link should use `id` querystring arg instead of `order`

* Add changelog
2023-08-29 11:31:40 +01:00
Corey McKrill eba89fff61
Docs: Add "Getting started with the REST API" (#39859)
* Docs: Add "Getting started with the REST API"

Migrated from:
* https://github.com/woocommerce/woocommerce/wiki/Getting-started-with-the-REST-API
* https://woocommerce.com/document/woocommerce-rest-api/

* Update broken link

* Remove unnecessary line
2023-08-29 11:23:00 +01:00
nigeljamesstevenson f53e5f744d
Update modified date when a metadata is saved for HPOS. (#39911) 2023-08-29 11:18:17 +01:00
defive 4fa7a40b22
Update PageController.php to prevent PHP warning when menu items have no position set (#39905)
* Update PageController.php to prevent PHP warning when menu items have no position set

Update PageController.php to prevent PHP warning when menu items have no position set. This can occur when a user has permission to view WordPress admin pages but does not have permission to administer WooCommerce.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-08-29 18:00:27 +08:00
RJ af9ef856e5
add: customize your store AI wizard xstate scaffolding (#39863)
* add: customize your store AI wizard xstate scaffolding

* Update plugins/woocommerce-admin/client/customize-store/design-with-ai/index.tsx

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-08-29 14:00:54 +08:00
Chris Runnells 3c25538f35
Fix Core Profiler layout shifts during plugin install step (#39898) 2023-08-28 16:05:23 -10:00
Moon 00fb7dab11
WooCommerce Beta Tester tracks -- Support array property (#39922)
* Support array property

* Add changelog
2023-08-28 12:44:27 -07:00
Maikel David Pérez Gómez 1708b854f7
Add Shipping item to the Quick Actions menu per Variation item (#39925)
* Add Shipping submenu to the quick actions menu

* Set dimensions correctly

* Add changelog file
2023-08-28 14:49:39 -04:00
Barry Hughes 36212b295b
Cleanup: remove the unused is_feature_visible and show_feature methods (#39931) 2023-08-28 09:39:53 -07:00
Nathan Silveira 01b85df049
Fix undismissable notices when using localization for certain messages like "Coupon management has moved" (#39913)
* Make sure alert.id and action.id are defined

* Copy id from db to action

* Add changelog

* Add error message when something goes wrong while triggering note action

* Rename changelog
2023-08-28 11:48:07 -03:00
Matt Sherman 7da226ad63
Remove block from block template (#39900) 2023-08-28 10:17:55 -04:00
Vedanshu Jain 9b10f04c98 Formatting changes and sanitization. 2023-08-28 17:14:14 +05:30
Ilyas Foo 21df7ca51c
Fix font color in tasklist description (#39903)
* Fix font color in tasklist description

* Changelog
2023-08-28 19:26:02 +08:00
Vedanshu Jain d217819824 Use same precision as DB timezone to prevent unnecessary updates. 2023-08-28 16:37:31 +05:30
Vedanshu Jain aa08add6e3 Defencive checks around meta. 2023-08-28 15:58:04 +05:30
Vedanshu Jain 9a01cfdde7 Consolidate all ops in one function.
Additionally, move the `type` column from always change to optional, by moving it so that its applied if there is atleast one other change.
2023-08-28 15:20:17 +05:30
Leif Singer e48fac01b3 add change log file 2023-08-28 11:20:18 +02:00
Leif Singer 4ff2b996b9 cleanup: remove the unused is_feature_visible and show_feature methods 2023-08-28 11:15:20 +02:00
Vedanshu Jain e7875ab5de Update modified date when a metadata is saved for HPOS. 2023-08-28 12:59:36 +05:30
Chi-Hsuan Huang 56f4ad623f
Add customize store assembler hub (#39843)
* Add @wordpress dependencies for customize store task

* Update webpack config to bundle wp edit-site package instead of using external

* Add customize-store task list item fill

* Update CustomizeStore task to load editor scripts and settings

* Update customize store routing path

Use /* since we want to match any path that starts with customize-store

* Add assembler-hub

* Ignore some wp packages from syncpack for customize store assembler hub

We need to use specific versions of these packages for the customize store
"@wordpress/interface", "@wordpress/router", "@wordpress/edit-site"

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

* Tweak style

* Use CustomizeStoreContext and send xstate event

* Update assembler-hub style

* Fix nav width

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-08-28 09:28:05 +08:00
github-actions eda0bfa091 Add changefile(s) from automation for the following project(s): woocommerce 2023-08-26 11:58:34 +00:00
And Finally 3c8f4861e4 [wccom-17942] Only showing feedback snackbar when content of in-app marketplace has finished loading. Making sure snackbar is fixed position, so it's visible wherever you are on the page.
- `ProductListContextProvider` provides `setIsLoading` function as well as `isLoading`.
- `Discover` uses these values from context, instead of keeping a loading state in itself.
- `FeedbackModal` calls `maybSetTimeout` when `isLoading` changes. If `isLoading` isn't truthy, and snackbar hasn't already rendered, it sets a timeout of 5 seconds to show it.

- Removed wrapping <WooFooterItem> from around Footer component, so it's no longer a child of the WooCommerce Admin `.woocommerce-layout__footer` footer.
- Removed the `position: relative` from `.woocommerce-layout__footer`. It needs to be `position: fixed`.
- Added FooterContent component to Footer, to allow the layout we want.

- Changed use of context. This now only has states for the selected tab and loading state.
- We use this context in `Tabs` and `Content` to keep track of which tab is selected, and set the selected tab.
- We also use it in `Discover` and `Extensions`, which both report loading state to the context. This allows us to use it to only render the snackbar when loading is complete.
- Extensions: moved `productList` and `setProductList` and logic for getting product list from the context provider to a state in this component. We don't need to share the list of products in the context.
- Renamed `ProductListContext`, `ProductListContextProvider` and `productListContextValue` to more generic `MarketplaceContext`, `MarketplaceContextProvider` and `marketplaceContextValue`.
- Renamed a constant and created constants for API paths.
- Only shows snackbar after content has loaded, and after a timeout. We set a date `marketplace_redesign_2023_last_shown_date` in local storage to ensure we only show one snackbar.
2023-08-26 12:47:23 +01:00
Chris Runnells 59ca5daeeb Add changelog entry for package. 2023-08-25 14:50:41 -10:00
github-actions 413e569ccd Add changefile(s) from automation for the following project(s): woocommerce 2023-08-25 23:08:02 +00:00
Chris Runnells f9600d19fa Add changelog entry. 2023-08-25 13:04:37 -10:00
Jon Lane 80cced2d23 Add changelog 2023-08-25 14:54:27 -07:00
Barry Hughes 4dc745cc37
If `geo_hash` is known and correct, avoid an unnecessary redirect (#39634) 2023-08-25 14:41:48 -07:00
Jon Lane fc709b7d25 Couple of caching fixes for daily tests 2023-08-25 14:39:31 -07:00
Corey McKrill fa850ca038
Completed first draft of debugging and logging docs 2023-08-25 14:08:10 -07:00
Hsing-yu Flowers 8f20f6875c
Update plugins/woocommerce/templates/checkout/form-pay.php
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-08-25 14:03:25 -07:00
Hsing-yu Flowers a6b7c59543
Update plugins/woocommerce/changelog/add-woocommerce-pay-order-before-payment-action
Co-authored-by: Barry Hughes <3594411+barryhughes@users.noreply.github.com>
2023-08-25 14:02:06 -07:00
Matt Sherman c8ead98aed Correct since tag for woocommerce_block_template_register action 2023-08-25 15:57:56 -04:00
Matt Sherman 7047766f32 Changelog 2023-08-25 15:37:17 -04:00
Matt Sherman af3c329299 Fire woocommerce_block_template_register action 2023-08-25 15:33:06 -04:00
Matt Sherman a4dde39d3f Add missing add_block method to GroupInterface and SectionInterface 2023-08-25 15:30:27 -04:00
Matt Sherman a22d8d895c Fix code doc issues 2023-08-25 14:34:14 -04:00
Matt Sherman 530e4f05ed Change spaces to tabs (linter formatting issue) 2023-08-25 14:32:50 -04:00
Matt Sherman 2ddc1418da Register SImpleProductTemplate 2023-08-25 14:26:19 -04:00
louwie17 6688c60fe4
Fix description toolbar (#39873)
* Make sure the iframe block toolbar still contains full width with latest WP version

* Add min height

* Add changelog

* Revert one change

* Remove unused imports
2023-08-25 13:40:51 -03:00
Maikel David Pérez Gómez 23f33a6b74
Add Pricing item to the Quick Actions menu per Variation item (#39872)
* Move the Quick Actions menu to its own component

* Add Set list price item to the Pricing sub menu

* Add notice when a variation gets updated

* Add Set sale price to Pricing sub menu

* Do not fire change if the user cancel the window propmt

* Add Increase list price to Pricing sub menu

* Add Decrease list price to Pricing sub menu

* Add Increase sale price to Pricing sub menu

* Add Decrease sale price to Pricing sub menu

* Add Schedule sale to Pricing sub menu

* Add changelog file

* Fix lint error

* Fix typo

* Add Sale end date to the Schedule sale to Pricing sub menu

* Add tracking events

* Fix tracking event params from camelcase to snakecase
2023-08-25 12:13:16 -04:00
Matt Sherman 48d5e7a65d Changelog 2023-08-25 11:31:46 -04:00