Commit Graph

11468 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Matt Sherman 48d5e7a65d Changelog 2023-08-25 11:31:46 -04:00
Matt Sherman 2726787ce6 Implement block removal, including nested blocks 2023-08-25 11:31:46 -04:00
Matt Sherman ec9f7d186e Add remove_block and remove_blocks to ContainerInterface 2023-08-25 11:31:46 -04:00
Matt Sherman de49e2d83b Add detach to BlockInterface 2023-08-25 11:31:46 -04:00
Matt Sherman b94b87fe63 Add uncache_block to AbstractBlockTemplate 2023-08-25 11:31:46 -04:00
Matt Sherman 7445b3df06 Fix code doc issue 2023-08-25 11:31:46 -04:00
Matt Sherman d4a688e9b4 Update tests to check block removal 2023-08-25 11:31:46 -04:00
Matt Sherman 44575d6dca Add title attribute to custom block to facilitate easier testing 2023-08-25 11:31:46 -04:00
boblinthorst 88844182ed Also check for instanceof WC_Order here to be consistent with the implementation above 2023-08-25 14:17:44 +02:00
github-actions[bot] ed0d45178f
Delete changelog files based on PR 39902 (#39908)
Delete changelog files for 39902

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-08-25 07:08:01 -05:00
nigeljamesstevenson 879136404d
Updates smoke-test-daily.yml workflow to correctly remove test execution (#39904)
Updates smoke-test-daily.yml workflow to correctly remove additional test execution as previous revert PR #39889 missed a step
2023-08-25 18:06:46 +08:00
Vedanshu Jain a290dd51e8 Fixup to prevent infinite migration loop. 2023-08-25 13:02:43 +05:30
Chris Runnells bd5fc03aae Add secondary container to fix layout shifts
Also added CSS so that the container is always aligned to the top of the wrapper
2023-08-24 14:01:55 -10:00
Chris Runnells fb506bf18f Update SVG files so they are all the same size 2023-08-24 13:57:50 -10:00
github-actions[bot] fe81a4cf27
Delete changelog files based on PR 39882 (#39884)
Delete changelog files for 39882

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-08-24 17:36:26 -05:00
barryhughes e7aaa3bddd Update expectations for VES and VEF currencies. 2023-08-24 15:26:52 -07:00
barryhughes c594fc7d85 Update API tests following changes to VES and VEF currencies. 2023-08-24 15:26:52 -07:00
Yordan Soares bc0343b7dc Update class-wc-tests-core-functions.php 2023-08-24 15:26:52 -07:00
Yordan Soares c1c5c04322 Update wc-core-functions.php 2023-08-24 15:26:52 -07:00
Peter Fabian 94a4da8aa0 Added changelog. 2023-08-24 15:26:52 -07:00
Yordan Soares b2695fe22e Revert "Use the price decimal separator to format product weight and dimensions"
This reverts commit 31e6dcd43a278b87661f1d834172fe2db76f7b3b.
2023-08-24 15:26:51 -07:00
Yordan Soares e1749891c7 Use the price decimal separator to format product weight and dimensions 2023-08-24 15:26:51 -07:00
Yordan Soares 4e1f95efbe Restore Bolívar Fuerte (VEF) 2023-08-24 15:26:51 -07:00
Yordan Soares b4930ed077 Update Venezuelan currency: Bolívar (Bs.)
### Changes:

- [ ] Remove the "Venezuelan bolívar" currency (VEF)
- [ ] Remove the "Bs F" symbol (VEF)
- [ ] Update the "Bolívar soberano" currency to "Venezuelan bolívar" (VES)
- [ ] Update the "Bs.S" symbol to "Bs." (VES)

### Justification:

The official name of Venezuela's currency is Bolivar (Bs.). However, as we have had a couple of reconversions in recent years, temporary epithets have been used to distinguish the different monetary cones with a practical sense in the transition period. This is the reason why Bolivar Fuerte (Bs.F) and Bolivar Soberano (Bs.S) was used.

However, the Bolívar Fuerte (monetary cone) went out of circulation on December 3, 2018 and the Bolívar Soberano (monetary cone) started to be called only Bolívar (Bs.) since February 2019, after a reasonable period of time had passed for the population to get used to the change of monetary cone.

This came into effect with Resolution No. 19-02-01 published on February 14, 2019 by the Central Bank of Venezuela (BCV, Banco Central de Venezuela), where it can be read:

[...] _as of the effective date of this Resolution, the price of goods and services and other monetary amounts shall be expressed only in the monetary scale in effect as of August 20, 2018, making mention of "bolívares" or the symbol "Bs."_

### References:

Resolución N° 19-02-01 del Banco Central de Venezuela (February 14, 2019)
http://www.bcv.org.ve/system/files/documentos_juridicos/resolucion_cese_doble_expresion_precios_bienes_y_servicios_definitiva.pdf
2023-08-24 15:26:51 -07:00
Alexandre Lara 93a983f6ff
Update WooCommerce Blocks to 10.9.3 (#39895)
* Update WooCommerce Blocks to 10.9.3

* Update composer.lock file

* Add changelog
2023-08-24 17:07:34 -05:00
Fernando Marichal c9f924a5b3
Enhance stability of Product E2E Tests (#39823)
* Add describe.configure

* Add changelog

* Serialize create-product-attributes
2023-08-24 17:52:21 -03:00
hsingyuc 508a9aec95 Bump template version 2023-08-24 13:46:52 -07:00
nigeljamesstevenson e0c569baff
revert #39803 Add additional Perf Test Daily run (#39889)
revert #39803
2023-08-24 13:27:58 -07:00
hsingyuc c0aaa4e933 Add changelog entry 2023-08-24 13:16:24 -07:00
hsingyuc 44f6d04dc3 Add a woocommerce apy order before payment action 2023-08-24 13:16:24 -07:00
Barry Hughes df8ceea379
Add CLI commands to enable or disable HPOS. (#39865) 2023-08-24 12:26:07 -07:00
louwie17 9198596918
Set up and migration to use BlockTemplate classes (#39814)
* Initial set up and migration for the BlockTemplate

* Migrate remaining fields to the new SimpleProductTemplate

* Remove re-usable functions and clean up

* Add interfaces

* Add changelogs

* Remove unused id from block attributes

* Update changelog

* Address refactor suggestions

* Fix lint errors

* Add tests

* Address PR feedback

* Extend from BlockContainerInterface instead of BlockInterface
2023-08-24 16:04:44 -03:00
nigeljamesstevenson 79edab17bc
Run full API test suite on daily run (#39858) 2023-08-24 14:26:20 +01:00
Ismael Martín Alabarce 8895df58b9
Temporary solution to avoid extra queries from WooPayments incentives (#39882)
* Temporary solution to avoid extra queries

after dismissing an incentive. We will prevent doing anything else, including order queries, if there is a dismissed incentive.

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-08-24 13:49:37 +02:00
nigeljamesstevenson 5150d3959a
Add additional Perf Test Daily run (#39803) 2023-08-24 11:37:12 +01:00
Vedanshu Jain 073042b52a Correct messaging to displayed in first line. 2023-08-24 14:00:29 +05:30
Vedanshu Jain 5d858e07f8 Address PR feedback. 2023-08-24 13:50:25 +05:30
Jon Lane ec974e22ab Copy utils from e2e tests to api tests 2023-08-23 14:40:35 -07:00
Christopher Allford 739159ab44
Prepare Beta Tester 2.2.4 Release (#39874) 2023-08-23 13:51:43 -07:00
Christopher Allford cd8edbf51a
Made Beta Tester Release Compatible (#39871) 2023-08-23 12:45:54 -07:00
github-actions[bot] c14d6d918e
Prep trunk for 8.2 cycle (#39834)
Prep trunk for 8.2 cycle with version bump to 8.2.0-dev

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-08-23 13:53:56 -05:00
github-actions[bot] 1d26182f3b
Release: Remove 8.1 change files (#39836)
Delete changelog files from 8.1 release

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-08-23 13:52:51 -05:00
Barry Hughes 53c93ab449
Turn off the experimental flag for HPOS (#39846) 2023-08-23 09:22:57 -07:00
Maikel David Pérez Gómez 0db29cd8c1
Create several global attributes with the same name (#39827)
* Save changes

* Remove restriction from the variations dropdown to let users create multiple attributes with the same name

* Add support for autogenerate slug in the create attribute endpoint

* Add a tooltip to specify the slug of the attribute when there are more than one listed in the dropdown list

* Add changelog files

* Revert filtering to the prev implementation

* Add review suggestions

* Add return description to the generate_unique_slug function description
2023-08-23 12:08:05 -04:00
Ron Rennick d3774b0335
Improve BACS/Direct Bank Transfer UI. (#39860) 2023-08-23 09:31:23 -03:00
Vedanshu Jain 56333c425f Add CLI commands to enable or disable HPOS. 2023-08-23 17:56:31 +05:30
Leif Singer ce422f1769 remove HPOS `log_production_warning` in CLIRunner 2023-08-23 14:20:25 +02:00
Néstor Soriano 845aa40883
Remove legacy PHP version checks (#39845)
- In the status report (server PHP version display)
- In the abstract CSV exporter (fputcsv function)
- In the legacy REST API controllers (get_raw_data function)
- In the wc_setcookie function
- In the wc_round_tax_total function

Also remove the infrastructure for WP and PHP minimum requirement notices
2023-08-23 09:42:59 +02:00
barryhughes 1012c45a48 Improve verbiage for tooltip. 2023-08-22 16:07:19 -07:00
barryhughes da5d81374d Improve BACS/Direct Bank Transfer UI. 2023-08-22 16:02:22 -07:00
Jon Lane b4e35c63fe Merge branch 'trunk' into api/start-unskipping-daily-tests 2023-08-22 15:19:24 -07:00
Jon Lane 64cb3a032d Run tests serially 2023-08-22 14:36:35 -07:00
Jon Lane bdb9335d3a Update shipping zone tests 2023-08-22 13:47:57 -07:00
Jon Lane bec1f11869 Add changelog 2023-08-22 13:42:41 -07:00
Jon Lane e0397bf455 Update settings test for external host 2023-08-22 13:33:24 -07:00
Barry Hughes 1d6f912b25
Coding standards: add trailing ; 2023-08-22 12:03:11 -07:00
jonathansadowski f9363d4804
Update Yoast PHPUnit Polyfill to 2.0 (#39830)
* Update Yoast PHPUnit Polyfill to 2.0

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-08-22 12:33:30 -05:00
barryhughes 0759bafdc4 If `geo_hash` is known and correct, avoid an unnecessary redirect back to the same page. 2023-08-22 09:38:51 -07:00
Kyle Nel f2446da15f
Merge branch 'trunk' into feature/marketplace 2023-08-22 13:16:13 +02:00
RJ cb2cf79342
dev: refactor core profiler loader (#39735)
* dev: refactor core profiler loader

* dev: added storybook example for loader

* lint

* Apply suggestions from code review

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

* addressed review feedback

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-08-22 19:58:33 +10:00
Leif Singer d8c9f6a5a3 Turn off the experimental flag for HPOS 2023-08-22 11:11:12 +02:00
Néstor Soriano 4876ab35b8
Bump WooCommerce minimum required PHP version to 7.4 (#39820)
-Change "Requires PHP":
  - In woocommerce.php
  - In readme.txt
  - In plugins/woocommerce-docs/woocommerce-docs.php
  - In packages/js/create-product-editor-block/plugin-templates/$slug.php.mustache

- Change "testVersion" in phpcs.xml:
  - In the root of the repository
  - In plugins/woocommerce
  - In plugins/woocommerce-beta-tester

- Change "require-php" and "config-platform-php" in composer.json
- Update composer.lock with more modern versions of some of the dependencies
- Remove the admin notice about the upcoming bump for PHP 7.3 users in class-wc-admin-notices.php
2023-08-22 09:21:09 +02:00
Jonathan Lane c2cbc87807
Updates Playwright to 1.37.1 from 1.33 (#39815)
Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-08-22 12:59:28 +08:00
Jon Lane 5fc3c00437 Add a delay when running externally 2023-08-21 15:43:59 -07:00
Jon Lane 4c09bf73d3 Remove comment for non-skipped test (cleanup) 2023-08-21 15:30:07 -07:00
Jon Lane 5128c26140 Force tests to run serially 2023-08-21 15:04:40 -07:00
Jon Lane e1763174e5 Update system status to account for environment differences 2023-08-21 14:57:57 -07:00
Niels Lange 0519dbb7d0
Bump WooCommerce blocks package to 10.9.2 (#39828)
* Bump WooCommerce blocks package to 10.9.2

* Add changelog file
2023-08-21 14:50:01 -05:00
Moon 6f1a84e435
Run A/B test on the core profiler plugins page with Jetpack and Jetpack Boost (#39799)
* Update Jetpack label and description

* Replace Jetpack with Jetpack Boost for treatment group

* Add changelog

* Append plugin_name param to Jetpack Connection page URL

* Use the correct experiment name
2023-08-21 12:43:15 -07:00
Joshua T Flowers 0c161dcacb
Add block template registry and controller (#39698)
* Add id, description, title, and area to block template methods

* Add block template registry and controller

* Remove errant die

* Add new template properties to existing test templates

* Add new template method tests to custom block template tests

* Add template registry tests

* Add template controller tests

* Add tests around template transformer

* Use template instance for registration

* Add changelog entry

* Fix tests for block controller not be initialized by container
2023-08-21 10:22:19 -07:00
Ismael Martín Alabarce 1227a27458
Fix onboarding payments task not completed after setting up WooPayments (#39786)
* Remove is_connected condition from can_view

To display WooPayments task as completed if applicable rather than an uncompleted payments task.

* Add changelog entry
2023-08-21 12:55:49 +02:00
Vedanshu Jain bc5c355eb7
Always return bool values from WPCacheEngine functions. (#39819) 2023-08-21 16:12:08 +05:30
Kader Ibrahim S e22338a7e7
Fixes WooCommerce knowledge base API returning empty posts (#39809) 2023-08-21 14:54:24 +05:30
github-actions fa7d9ec920 Add changefile(s) from automation for the following project(s): woocommerce 2023-08-21 08:59:37 +00:00
Vedanshu Jain 031530305d Always return bool values from cache function. 2023-08-21 14:20:29 +05:30
Jon Lane 88afbb1e5b Fix product CRUD tests to work with daily 2023-08-18 16:33:09 -07:00
Jonathan Lane 497c5694e0
Fix failing disable test (#39674)
* Fix failing disable test

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

* Fix daily failing

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
Co-authored-by: github-actions <github-actions@github.com>
2023-08-18 15:33:07 -07:00
github-actions 657971e6ca Add changefile(s) from automation for the following project(s): woocommerce 2023-08-18 15:59:56 +00:00
raicem 60c07013d4 Marketplace: Cache Discover page content
We were hitting the WCCOM API directly from the front end. However,
that limits of in terms of caching and reducing the load on WCCOM.

To prevent that, we added a REST API endpoint. This endpoint
fetches discover page content from WCCOM and puts in a transient.
This is actually how the page works in the previous version. So
we were able to reuse a lot of the code.
2023-08-18 18:59:36 +03:00
Kader Ibrahim S 520bbe4f9c Fixes lint errors (#39808) 2023-08-18 20:02:53 +05:30
Kader Ibrahim S d77a0dde30 Fixes Knowledge base API (#39808) 2023-08-18 20:01:06 +05:30
And Finally 87706c5e5a [wccom-17713] Addressing design feedback.
- Removed duplicate `Search` styles from `header.scss`.
- Removed 10px top padding from `Header`. Applied it to title, meta and search containers instead.
- Deleted duplicate search button style from `header.scss`.
- Swapped round order of search component and header meta div so tab navigation order is correct.
- Added focus style to search component.
- Reduced footer side padding on mobile.
- Changed `.woocommerce-marketplace__header-title` page title to an h1 for accessibility.
- Removed top margin from product cards – the css grid handles the gap.
- Removed margin from `.woocommerce-marketplace__product-card__description`.
- Reduced font weight of price in product cards.
- Set margin below product list header.
- Removed right margin from tab buttons – css grid handles the gap.
- Increased top padding of `.woocommerce-marketplace__content`.

Addressing linter error.
2023-08-18 15:20:00 +01:00
Fernando Marichal 278366def9
Disable tabs in parent product page with variations (#39675)
* Add warning block

* Delete warning block

* Add notice component

# Conflicts:
#	packages/js/product-editor/src/style.scss

* Add page notice

# Conflicts:
#	packages/js/product-editor/src/blocks/tab/edit.tsx

* Add `isOptionsNoticeVisible` to tab

* Add utils functions

* Remove warning

* Add notice visibility to tab

* Add notice visibility to pricing, inventory, shipping

* Add changelog

* Remove warning

* Change button text

* Add check to hasAttributesUsedForVariations

* Fix tests

# Conflicts:
#	packages/js/product-editor/src/components/tabs/test/tabs.spec.tsx

* Create notice block and move notice from tabs

* Fix product-notice block declaration

* Remove title from array

* Fix notices

* Fix styles

* Change error to error-type

* Revert "Add notice visibility to pricing, inventory, shipping"

This reverts commit 140703d49e.

* Remove import

* Revert "Fix tests"

This reverts commit 96036c5a6c.

* Remove duplicated function

* Add changelog

* Remove `isSelectedTabApplicableForOptionsNotice`

* Remove styles out of scope

* Fix notice props

* Rename block

* Remove selectedTab

* Update packages/js/product-editor/src/blocks/notice/edit.tsx

Co-authored-by: louwie17 <lourensschep@gmail.com>

* Fix lint

---------

Co-authored-by: louwie17 <lourensschep@gmail.com>
2023-08-18 11:14:02 -03:00
Fernando Marichal 5f7e20bed7
[Product Block Editor] remove digital products from target list (#39801)
* Fix remove digital products from the target list

* Add changelog
2023-08-18 09:32:06 -03:00
AnnaMag afc8e0fac5
Disable the new editor for variable products. (#39780)
* Disable the new editor for variable products with the dev feature flag disabled.

* Add changelog
2023-08-18 09:26:56 -03:00
Ahmed 74beca459e
Add support for Japan and UAE to WooPayments (#39431)
* Add support for JP and UAE

* Add changelog file
2023-08-18 17:58:39 +08:00
Tam Mullen bb898a609c Merge branch 'add/wx-nightly-perf' of github.com:woocommerce/woocommerce into add/wx-nightly-perf 2023-08-18 10:36:46 +01:00
Tam Mullen 8d4e4748a0 Merge branch 'trunk' of github.com:woocommerce/woocommerce into add/wx-nightly-perf 2023-08-18 10:33:53 +01:00
github-actions 7c13473f79 Add changefile(s) from automation for the following project(s): woocommerce 2023-08-18 08:57:55 +00:00
AnnaMag 772541a751
[New Blocks Editor]: Update product experiment name. (#39684)
* Update product experiment name

* Add changelog

---------

Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2023-08-18 10:54:22 +02:00
Tam Mullen f0538f3ed0 Added daily perf test scenario for w express site 2023-08-18 09:29:17 +01:00
RJ d663c304c9
add: customize your store xstate scaffolding (#39619)
* add: customize your store xstate scaffolding

* Update plugins/woocommerce-admin/client/core-profiler/types.tsx

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

* improved findComponentMeta

---------

Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com>
2023-08-18 13:30:25 +08:00
Barry Hughes 3ed285c7c2
HPOS: Ensure refund meta data is saved correctly (alternative approach) (#39700) 2023-08-17 16:35:57 -07:00
Thomas Shellberg ffb38055a0
Woo AI - fix store branding settings page regression. (#39773)
Woo AI - fix store branding settings page regression.
2023-08-17 21:45:32 +02:00
github-actions 07137472a4
Add changefile(s) from automation for the following project(s): woocommerce 2023-08-17 10:28:57 -07:00
Corey McKrill 11a31e8b64
Update refund meta directly instead of using setters
This is an alternative to #39466, as a way to ensure that refund meta
data gets saved correctly.

Fixes #39215
2023-08-17 10:28:57 -07:00
Niels Lange 2afba8b8fe
Update WooCommerce Blocks to 10.9.0 (#39783) 2023-08-17 18:03:19 +02:00
Ilyas Foo 3e9c14d5fb
Add plugin installation request track for core profiler (#39533)
* Add track to plugin installation in core profiler

* Rename available to shown

* Add changelog

* Lint
2023-08-17 22:34:52 +08:00
github-actions ec70cd1036 Add changefile(s) from automation for the following project(s): woocommerce 2023-08-17 13:12:51 +00:00
boblinthorst e3a179ff1c Prevent non-WC_Orders on the order received page
To ensure they have an implementation of the get_order_key function.

Visits to the order_received page with the id of a refund result in a fatal error.
2023-08-17 12:36:33 +02:00
Niels Lange 9a001126b5
Update WooCommerce Blocks to 10.9.0 2023-08-17 12:31:24 +02:00
And Finally 9fbb8a505b
In-App Marketplace: Improve Product Card Clickability (#39766) 2023-08-17 09:04:27 +01:00
And Finally 436ce4bd4d
Update copy on In-App Marketplace (#39767) 2023-08-17 09:02:25 +01:00
And Finally 6b1694f89b
Update marketplace product card for updated WCCOM search API (#39689) 2023-08-17 08:59:46 +01:00
Barry Hughes 2993118a5b
Checkout: show "thank you" message regardless of verification status (#39758) 2023-08-16 13:56:32 -07:00
louwie17 c11b11631b
Add/39443 attribute filters (#39685)
* Add not filterable and not visible icons to attribute list

* Fix types

* Add changelogs

* Fix lint errors
2023-08-16 14:49:52 -04:00
nigeljamesstevenson 4bb1afa012
Fixes for HPOS new/update order hook behavior + webhook support (#39694) 2023-08-16 18:10:42 +01:00
RJ 99182c015c
dev: fix core profiler context ts type error (#39749) 2023-08-16 20:19:51 +08:00
Kyle Nel 542b33d859
Product Card: update to to using new API values
# Conflicts:
#	plugins/woocommerce-admin/client/marketplace/components/product-card/product-card.tsx
2023-08-16 13:55:59 +02:00
Dan Q cb5769ed0b Correct card hover outline color 2023-08-16 12:26:29 +01:00
Dan Q 555a8aaff0 Correct font color of search "no results" interpretation to g-gray 700 2023-08-16 11:00:59 +01:00
Dan Q 4831c6712b Improve semantics of "no results" page with a <h3> 2023-08-16 10:59:48 +01:00
Dan Q 91afe9f6e2 Correct search placeholder text 2023-08-16 10:56:15 +01:00
Dan Q e4e8490925 Fix heading font size 2023-08-16 10:54:29 +01:00
Dan Q 9c179240ab Switch "Woo Marketplace" hug in footer to gray-50 2023-08-16 10:18:22 +01:00
And Finally cc6ae76c42
Fix child keys error in `Tabs` component and and remove unnecessary `sanitizeHTML` call from `FeedbackModal` component (#39734) 2023-08-16 10:17:33 +01:00
Dan Q a88ccc1373 Update footer text 2023-08-16 10:05:53 +01:00
And Finally 7943c2988a
Hide empty addons menu item, fix marketplace feature toggle (#39751) 2023-08-16 09:30:59 +01:00
Dan Q b9a675be82 Linting CSS 2023-08-16 09:29:56 +01:00
Dan Q a89d05b8d1 Remove unused dependency 2023-08-16 09:28:51 +01:00
Dan Q 2397f37c93 Make product cards entirely clickable with hover effect 2023-08-16 09:20:24 +01:00
And Finally 732e5bd91b
More concise use of selectors, so we only do one lookup
Co-authored-by: Dan Q <dan@danq.me>
2023-08-16 08:49:01 +01:00
Sam Seay 462c690d61
Remove redundant deps on e2e in wc-admin (#39746) 2023-08-16 12:15:03 +12:00
github-actions 95c279f96c Add changefile(s) from automation for the following project(s): woocommerce 2023-08-15 21:46:27 +00:00
Corey McKrill acee366e8b
phpcs cleanup 2023-08-15 14:23:46 -07:00
Corey McKrill 9212d5f70d
Checkout: show "thank you" message regardless of verification status
As an alternative to #39406, this tries to solve the same issue in a
simpler way: break the "thank you" message out into its own small
template file and just include it in more places, so that no matter
the context, the order confirmation screen will always say thank you,
acknowledging that the order data has been received.
2023-08-15 14:10:06 -07:00
jonathansadowski beea09de2e
Update stable tag to 8.0.2 (#39757)
woorelease: Update stable tag to 8.0.2
2023-08-15 15:11:07 -05:00
Thomas Shellberg a319582c6d
Fix saving bug with Woo AI settings page and simplify. (#39565)
* Fix Woo AI plugin settings page save bug and refactor settings page.
2023-08-15 22:10:21 +02:00
Jorge A. Torres 2928a0246e
Address some more wc-admin PHP 8.1+ deprecation warnings (#38774)
* More wc-admin fixes

* Add changelog
2023-08-15 16:41:09 -03:00
And Finally 368abf3fd4 Added JS to hide the dodgy empty submenu item for My Subscriptions till we can convert that page to React.
Wrapped adding of Extensions submenu item to when marketplace feature is enabled. The old version of the marketplace doesn't need this.
Added `marketplace` feature to `legacy_feature_ids` in `FeaturesController`. See https://protonpower.wordpress.com/2023/07/07/woocommerce-feature-triggers-scary-warning/#comment-8066.
2023-08-15 17:00:05 +01:00
Gan Eng Chin 0be8fa0b36
Fix TikTok naming (#39748) 2023-08-15 22:40:52 +08:00
jonathansadowski 9887601901
Update beta tester build step (#39732)
* Update beta tester build step

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-08-15 08:16:19 -05:00
nigeljamesstevenson d1f2218f71
Add loading indicator when submitting location in Tax task (#39613)
thanks a lot!
2023-08-15 13:49:13 +01:00
raicem 43271f9292 Marketplace: remove Featured category from category selector
It's not needed as a category option as the Discover page
shows the featured products. So we filter it out.
2023-08-15 15:43:09 +03:00
Cem Ünalan ce32317aeb
Marketplace: Add translation to the no results icon alt text
Co-authored-by: Dan Q <dan@danq.me>
2023-08-15 15:38:41 +03:00
raicem fefe5223bc Marketplace: Add no results page 2023-08-15 15:37:50 +03:00
RJ 964dd1f449
dev/refactor core profiler utils (#39581)
* dev: added useFullScreen hook

- foresee using this in more developments

* dev: made findComponentMeta generic

* changelog
2023-08-15 19:26:37 +08:00
Kyle Nel b3992d3844
Reimplement existing marketplace tracking (#39672)
* Tracking: add UTM params to vendor links

# Conflicts:
#	plugins/woocommerce-admin/client/marketplace/utils/functions.tsx

Co-authored-by: raicem <unalancem@gmail.com>
2023-08-15 10:03:27 +02:00
raicem 31aa9ebd59 Marketplace: add category filtering 2023-08-15 09:38:17 +03:00
raicem 0aa3c26862 Marketplace: Add product list context 2023-08-15 09:38:17 +03:00
github-actions 6cfca3a8eb Add changefile(s) from automation for the following project(s): woocommerce 2023-08-15 06:27:57 +00:00
Gan Eng Chin 33f77af602 Fix TikTok naming in img alt attribute. 2023-08-15 14:11:35 +08:00
Vedanshu Jain 1566416f46
Add migration to move incorrectly stored payment token IDS to HPOS tables (#39724)
* Add migration to move incorrectly stored payment token IDS to HPOS tables from postmeta.

* Move migration to last + update WC version.
2023-08-14 21:31:17 +01:00
louwie17 3edd1bd823
Auto delete unused variations when auto generating variations (#39733)
* Add auto delete functionality for variations

* Add the remove confirmation modal

* Update delete unmatched product variation logic

* Add tests

* Add changelogs

* Fix lint errors

* Fix lint errors
2023-08-14 16:35:16 -03:00
And Finally d3012bd0b8 Fixing issue with missing keys in `Tabs` component children.
Removing unnecessary `sanitizeHTML` call in `FeedbackModal`.
2023-08-14 14:53:07 +01:00
Ilyas Foo 6be7c4b5e3 Lint again 2023-08-14 13:42:00 +08:00
Ilyas Foo 4a04d19b60 Lint 2023-08-14 13:23:45 +08:00
Ilyas Foo f95fdd83c9 Remove unused attribute 2023-08-14 12:03:07 +08:00
Ilyas Foo a585555d92 Use try catch to handle error, better flux flow to handle next step 2023-08-14 11:45:56 +08:00
Ilyas Foo dc2c4e7c48 Merge remote-tracking branch 'origin/trunk' into tweak/loading-indicator-tax-task-store-location 2023-08-14 10:16:11 +08:00
github-actions[bot] e8d0a081ad
Delete changelog files based on PR 39639 (#39661)
Delete changelog files for 39639

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-08-13 13:52:17 -05:00
Jorge Torres 39473b6104 Add changelog 2023-08-11 20:11:47 -03:00
Jorge Torres 4a55bd104d Add some tests 2023-08-11 20:11:47 -03:00
Jorge Torres 54d06641eb Add HPOS order trashing/untrashing to webhooks 2023-08-11 20:11:47 -03:00
Jorge Torres d44e882f5d Trashing/untrashing orders and updating CPT datastore-level props should not trigger update hook 2023-08-11 20:11:47 -03:00
Jorge Torres 26043fa0ea Transitioning HPOS orders from auto-draft should trigger new order hook 2023-08-11 20:11:47 -03:00
Jorge Torres 4b0416d251 Do not fire ‘woocommerce_new_order’ when creating auto-draft orders 2023-08-11 18:10:13 -03:00
Vedanshu Jain 5dc3f65522
Store transactional meta in HPOS tables. (#39381)
* Store transactional meta in HPOS tables.

* Add transaction to the list of legacy meta, since we have getters for it, but its not stored in custom table.

* Add unit test.

* Unit test fixups + mark payment tokens as non internal for datastore.

* Use correct filename for HPOS.

* Mark payment_tokens as internal and update getter/setters accordingly.

* Fix indentation.

* Address PR review feedback.
2023-08-11 12:28:11 -07:00
Barry Hughes 26abedebe0
Add date index to order tables for speeding up order list query. (#39682) 2023-08-11 10:39:54 -07:00
Barry Hughes 453a92c0ca
Update Action Scheduler to 3.6.2. (#39665) 2023-08-11 18:00:57 +01:00
jonathansadowski 3363ba8d16
Update stable tag to 8.0.1 (#39632)
* woorelease: Update stable tag to 8.0.0

* Update stable tag to 8.0.1
2023-08-11 11:13:36 -05:00
github-actions[bot] 6890bbe8bf
Delete changelog files based on PR 39686 (#39692)
Delete changelog files for 39686

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-08-11 10:10:21 -05:00
Sam Seay 760c604e7c
Revert behaviour of code that was using nullish coalescing operator. (#39686)
* Revert behaviour of code that was using nullish coalescing operator.

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

---------

Co-authored-by: github-actions <github-actions@github.com>
2023-08-11 10:07:26 -05:00
louwie17 71e8b699db
Convert simple to variable product and auto add variations (#39673)
* Auto create variations and move product to variable when adding variation options

* Delete unused components

* Add tour to variation options

* Remove unneeded options

* Add changelog

* Fix types

* Fix lint errors

* Fix broken tests

* FIlter out option tags when not included in attributes

* Don't invalidate variations data when no new variations are created
2023-08-11 11:15:05 -03:00