Commit Graph

11255 Commits

Author SHA1 Message Date
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
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
Vedanshu Jain 9b6c7ba266 Add changelogs. 2023-08-11 14:58:07 +05:30
Vedanshu Jain e667965f60 Connect HPOS tables to wc_install. 2023-08-11 14:56:32 +05:30
Vedanshu Jain feccb3c8e0 dbDelta dont like it when there are spaces in decimal specification. 2023-08-11 14:56:15 +05:30
Vedanshu Jain 632b0c2034 Modify index to also add created date to speed up order list. 2023-08-11 14:54:33 +05:30
Vedanshu Jain 05dfaacd37
Bulk actions: within URL, specify orders using `id[]` rather than `order[]` (#39524) 2023-08-11 14:25:35 +05:30
Jaclyn Chen f9b68e22c7
WC Telemetry: add `first_used` and `installation_date` data to WCTracker (#39605)
* WC_REST_Telemetry_Controller: add `first_used` and `installation_date` meta fields for WCTracker.

* Add `installation_date` parameter to the endpoint parameter collection.

* Update implementation with unit tests.

* Update comments in the test class.

* Auto fixes from phpcbf.

* Attempt fixing lint errors in the tests.

* Set the installation date with the same date format as the pre-existing `last_used`.

* Add changelog.

* Fix an issue where the lack of installation date in the request still sets the field to the current date.

* Attempt fixing lint errors with phpcbf.
2023-08-11 14:32:40 +08:00
jonathansadowski 67079574cc
Add support for releasing Beta Tester to WooCommerce.com (#39671) 2023-08-11 12:51:01 +12:00
Matt Sherman e805b6b075
Core block-based template PHP API (adding blocks to templates) (#39470)
* Initial BlockTemplate implementation

* Initial BlockTemplate tests

* FIx undefined array key errors

* Fix linter errors (except for missing docs ones)

* Get as simple array

* Unit test updates for get_as_simple_array()

* Remove inner content (not used currently)

* Rename attrs to attributes

* Move name out of data array

* Move id out of data array

* Move order out of data array

* Move attributes out of data array; remove data array

* Add doc comments to Block

* Add doc comments to BlockTemplate

* Add doc comments to BlockContainerInterface and BlockContainerTrait

* Doc comment updates.

* Add doc comments to BlockTest

* Add doc comments to BlockTemplateTest

* Add BlockInterface

* Remove key consts from Block

* Move implementations to internal

* Clean up interfaces

* Do not have BlockInterface extend BlockContainerInterface

* FIx case in namespace declaration

* Add exceptions to add_block doc

* Rename BlockTemplate to BlockBasedTemplate

* Rename block-based template vars in tests

* Fix missing get_parent on block containers

* Changelog

* Add get_block_by_id to BlockBasedTemplateInterface

* Rename get_block_by_id to get_block

* Rename get_as_simple_array to get_as_formatted_template

* Rename child blocks to inner blocks

* Rename BlockBasedTemplate to BlockTemplate

* Move validation to separate method

* Move namespace to be non-product editor specific

* Rename get_as_formatted_ methods to get_formatted_

* Rename BlockBasedTemplateTest to BlockTemplateTest

* Add ability to use a custom block generator with add_block

* Add check that block belongs to root template in internal_add_block_to_template

* Fix up code docs related to $block_creator

* Fix code doc linting errors in tests

* Add test for a buggy block creator implementation

* Add test for an invalid block creator

* Rename internal_add_block_to_template to cache_block

* Add add_block_container() method

* Fix linting issue.

* Fix minor issues in ContainerInterface with get_root_template() and get_parent()

* Add block template with abstract blocks and templates (#39630)

* Make block template abstract and protected add block methods

* Create block abstraction and generic block

* Remove add_block from container interface

* Update tests for generic and custom blocks

* Add tests around custom block templates

* Fix up lint errors

* Fix errant comment for add_block

---------

Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2023-08-10 15:52:44 -07:00