Commit Graph

51101 Commits

Author SHA1 Message Date
Fernando Marichal 25497c4faa
Add existing global attribute layout (#36944)
* Changed `has_local_attributes`

* Add new layout

* Add attribute layout

* Add changelog

* Create method `toggle_add_global_attribute_layout`

* Add global attribute layout

* Fix button in mobile

* Remove commented code

* Change changelog

* Fix typo

* Fix style

* Fix buttons visibility

* Fix div visibility

* Fix buttons visibility

---------

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2023-03-01 11:56:49 -03:00
Vedanshu Jain 185b8ae252 Use common method to mark HPOS tests as skipped. 2023-03-01 17:43:36 +05:30
Nathan Silveira 2e33922e35
Change Variations form shown in Variations tab when there are no variations created (#36957)
* Show add attribute in Variations tab

* Create new ajax function to create attributes and variations at the same time

* Partial commit for review

* Rename action and reload attributes and variations screen after submitting action

* block/unblock UI when loading

* Change labels

* Remove unneeded output_variations function

* Changelog

* Extract duplicated code to html-product-attribute-inner

* Handle sniff issues

* Fix PHPCS issues

* Refactor class-wc-ajax to reuse code

* Fix phpcs issues

* Fix more sniff issues

* Handle code review suggestions

* Switch back to var

* Switch to snake case

* Use var instead of const
2023-03-01 09:12:30 -03:00
Vedanshu Jain abdcc861b3
Add HPOS compat to meta and CRUD unit tests. (#36907) 2023-03-01 16:23:21 +05:30
louwie17 93af1c73e9
Update tree select control (#36932)
* Export tree select control and add 3 additional props

* Update storyboook

* Add unit tests for new props

* Fix duplicate parent selection
2023-03-01 03:54:53 -04:00
Chi-Hsuan Huang 4b1bcad3ba
Fix blank screen is displayed during OBW when using WP5.9 (#36903) 2023-03-01 09:42:11 +08:00
Sam Seay 48cd5917ed
Fix a minor bug in code analyzer and improve logging for when no changes exist (#36915) 2023-03-01 12:34:19 +13:00
jonathansadowski bd6586a378
Update the stable tag to 7.4.1 (#37009)
* Update the stable tag to 7.4.1

* Create change file
2023-02-28 16:56:32 -06:00
Jorge A. Torres d1f1f91409
[36257 redux] Add `menu_order` sorting option to products widget (#37002)
* Update class-wc-widget-products.php

Option for default sorting by menu order

* Fix PHPCS issues

* Add changelog

---------

Co-authored-by: 2GOOD <2GOOD@users.noreply.github.com>
2023-02-28 16:00:43 -03:00
HILAYTRIVEDI 91b9aef4db
fix/#34200-need-to-add-space-between-author-image-and-meta (#34994)
* fix/#34200-need-to-add-space-between-author-image-and-meta

* Log added

* Log added

* fix/#34200-need-to-add-space-between-author-image-and-meta

* Remove unnecessary changelog file

* Reword changelog

* Further adjust CSS to match Comments table

* Add missing <br> to match other comments tables

* Reindent some CSS lines

---------

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-02-28 15:12:58 -03:00
Maikel David Pérez Gómez 7d0669dcb1
Add selection to the tree control (#36435)
* Create tree-control component

* Remove items from treeItemProps

* Add tree-control expand/collapse on click the expander button or by a custom logic

* Add stories

* Add the type definitions

* Add use selection hook

* Upgrade WP components dependency to v19.8.5 to support indeterminate checkbox control

* Add selection logic to the tree control

* Create stories

* Add changelog file

* Fix linter error

* Add styles to fit the disign

* Highlight selected item when it's a single selection tree

* Rebasing from trunk

* Add comment suggestions

* Fix unit test errors due to a new version of @wordpress/compose related to the ResizeObserve feat
2023-02-28 15:10:12 -03:00
Joel Thiessen 6a345ac7eb
Moving currencyContext to currency package and updating references (#36959) 2023-02-28 08:55:49 -08:00
Saad Tarhi 6b099f917b
Bump WooCommerce blocks package to 9.6.3 (#36992) 2023-02-28 12:13:20 +01:00
Saad Tarhi ac47d1892e Add changelog 2023-02-28 07:46:25 +01:00
Saad Tarhi 42d75e5529 Run "composer update woocommerce/woocommerce-blocks" 2023-02-28 07:44:18 +01:00
Saad Tarhi 3992e25d7a Bump Woo Blocks version to 9.6.3 2023-02-28 07:43:48 +01:00
Paul Sealock da1dce8f19
Package Release: handle initial release case (#36922) 2023-02-28 09:36:38 +13:00
Corey McKrill 2700a44463
Fix: can't apply or remove a coupon whose code is "0". (#36924)
Fixes a bug that allowed to create a coupon with code "0" but prevented if from being actually used. With the fix a coupon with code "0" can be used as any other coupon.

Also adds two new methods to the StringUtil class: `is_null_or_empty` and `is_null_or_whitespace`.

Closes #35210.
2023-02-27 12:17:34 -08:00
Gan Eng Chin d111370d1e
Make UI work with wp.data new campaign types. 2023-02-28 00:51:34 +08:00
Gan Eng Chin 9526608fbc
wp.data for getting new campaign types. 2023-02-28 00:45:47 +08:00
Gan Eng Chin 418e4fba02
Fix build error after merging. 2023-02-27 23:49:50 +08:00
Gan Eng Chin f420a0ed9e
Merge branch 'feature/34905-marketing-campaigns-card' into feature/34909-marketing-create-campaign-modal
Conflicts:
	plugins/woocommerce-admin/client/marketing/components/RecommendedChannelsList.tsx
	plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/Campaigns.scss
	plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/Campaigns.tsx
	plugins/woocommerce-admin/client/marketing/overview-multichannel/Channels/Channels.tsx
	plugins/woocommerce-admin/client/marketing/overview-multichannel/Channels/RecommendedChannels.tsx
2023-02-27 23:46:30 +08:00
Vedanshu Jain 4c75a36003 Applied coding standards. 2023-02-27 20:06:51 +05:30
Vedanshu Jain f12be6e673 Applied coding standards. 2023-02-27 19:35:36 +05:30
Vedanshu Jain 33d41206fc Add changelog. 2023-02-27 19:18:23 +05:30
Vedanshu Jain 4b5d13b8ec Merge branch 'fix/36679' into fix/36678 2023-02-27 19:17:28 +05:30
Vedanshu Jain 1e700b90af Add changelog. 2023-02-27 19:11:37 +05:30
Vedanshu Jain 2b1b4fcfec Merge branch 'fix/36680' into fix/36679 2023-02-27 18:57:26 +05:30
Vedanshu Jain 4f4d42b9ef Add changelog. 2023-02-27 18:47:54 +05:30
Vedanshu Jain a9280ff5d8 Merge branch 'fix/36681' into fix/36680 2023-02-27 18:46:59 +05:30
Vedanshu Jain 5c1d1d78d2 Add changelog. 2023-02-27 18:25:01 +05:30
Vedanshu Jain 9e23ee2675 Merge branch 'fix/36682' into fix/36681 2023-02-27 18:21:14 +05:30
Vedanshu Jain 1736911bfa Applied coding standards. 2023-02-27 17:42:47 +05:30
Vedanshu Jain f5ac18f11c Add changelog. 2023-02-27 17:27:32 +05:30
Vedanshu Jain ca14a921db Merge branch 'fix/36684' into fix/36682 2023-02-27 17:24:53 +05:30
Vedanshu Jain 04642b8bd4 Apply coding standards 2023-02-27 17:22:44 +05:30
Vedanshu Jain 648d801da2 Added changelog. 2023-02-27 17:08:38 +05:30
Vedanshu Jain ef74ccd496 Use posts before delete hook along with HPOS one. 2023-02-27 17:07:59 +05:30
Vedanshu Jain 8369487847 Apply coding standards. 2023-02-27 16:43:25 +05:30
Vedanshu Jain b286c50ebd Merge branch 'fix/36685' into fix/36684 2023-02-27 16:29:26 +05:30
Vedanshu Jain 46f6eb3d5f Removed typo. 2023-02-27 14:56:43 +05:30
Vedanshu Jain 01114fc5d9 Toggle COT appropriately for COT tests. 2023-02-27 14:50:14 +05:30
Nestor Soriano be43265761
Fix GET coupons request and apply_coupon 2023-02-27 10:15:56 +01:00
Ron Rennick a45f9c4f55
Fix k6 baseline load imports (#36940)
* add wpLogin import to wc-baseline-load.js

* add changelog

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-02-27 16:42:10 +08:00
Nestor Soriano f56010334d
Remove unnecessary 'use's 2023-02-27 09:28:15 +01:00
Vedanshu Jain 8da07f73e7 Fetch order first to refresh cache before returning prop. 2023-02-27 13:48:59 +05:30
Vedanshu Jain cf46233b35 Merge branch 'fix/36686' into fix/36685 2023-02-27 13:20:57 +05:30
Corey McKrill 3f0405970d
Product Importer: Ensure all products in the file get processed (#36839) 2023-02-27 08:47:31 +01:00
Vedanshu Jain 212884e417 Merge branch 'hpos/unit-tests' into fix/36686 2023-02-27 12:50:25 +05:30
rodelgc ea1925c841
Enable "Smoke test release" workflow (#36598)
* First pass at updating release test workflow

* Add changelog

* Set dir env variables

* Update to workflow

* Fix indent

* Fix indent

* Clean up indent

* Re-order steps

* Change order of jobs

* Added common php versions

* Update pipeline

* Update some labels

* Simplify for testing

* Update paths

* Create tmp folder

* Fix path

* Paths

* Try outputting some debugging

* Add step ID back

* Remove working directory

* Another path tweak

* Add API release tests

* Add k6 tests

* Add PHP tests

* Launch wp-env during PHP tests

* Try default values

* Tweak some settings, add WP testing

* Tweak some settings

* Re-order e2e steps

* Update step descriptions

* Reorganize tests, add plugin tests

* Enable only e2e job

* Initial set up to run against release smoke test site

* Fix syntax

* Temporarily disable update wc spec

* Temporarily disable downloading woocommerce zip

* Download release zip using tag name

* Fix wrong job name

* Fix wrong job name

* Fix dir

* Delete fetch-asset-id.js

* REfactor update-woocommerce spec

* Add error handling

* Download release zip by tag

* Refactor update woo spec to download zip by tag

* Correct job name

* fail test on invalid tag

* Enable all e2e tests

* Run api tests before e2e tests

* Fix job dependency

* Add customer credentials to api job

* Separate job for WC Update

* Combine e2e allure-results, then report

* Enable report job

* Fix context

* Change job and artifact names

* Use test s3 path

* Minor job name change

* Upload artifacts to bucket

* Correct s3 path

* Add quiet option

* Retain video on failures

* Finalize s3 path

* Try WP latest-1

* Revert to wp latest

* Refine search for woocommerce zip asset

* Get created-at

* Specify repo in gh command

* Slugify env description

* Trim space

* Sync with bucket instead of copy

* Remove invalid --recursive flag

* Re-add missing step to combine e2e results from update wc test

* Ensure artifact upload on test failure

* Enable all e2e tests on WP latest

* Retain existing data before updating WC

* Make test compatible with 'Canceled' and 'Cancelled'

* Set env_desc as env var

* Re-add deleted file

* Fix UPDATE_WC in daily smoke test workflow

* Add tracing in global setup

* Remove tracing

* Temporarily run only basic spec

* Job for WP Latest-1 & 2

* Fix "Required input 'created_at' not provided"

* Minor rename

* Remove install filter

* Install deps in get-wp-matrix

* Delete get-wp-versions.js

* Add get-wp-versions.js to e2e-pw folder

* REname file

* REfactor

* Refactor script for getting WP prev versions

* Update job dependencies

* Temporarily remove disabled jobs

* Allow e2e-wp-latest after api test failure

* Update L-1 & L-2 job deps

* Fix report-wp-latest

* Fix failing api test

* Make get-wp-versions quicker

* Publish report immediately after test

* Test reporting in e2e-update-wc

* Fix missing parameter

* Fix env_desc, re-enable other jobs

* Enable all e2e tests

* Minor job name change

* Fix flaky test

* Add php version testing

* stringify php versions

* Re-enable all e2e tests

* Up timeout to 2min

* Remove PHP 8.0

* Add missing conditionals

* Fix php version verification script

* Fix starting dir

* Fix flakiness

* Skip e2e if api failed

* Verify woocommerce.zip early

* Add token

* Delete test summary on github for the meantime

* Use default playwright config

* More meaningful variable names

* Update step titles based on review

* Use expect.poll()

* Minor spacing corrections

* Use `stable-check` endpoint, delete unnecessary loop

* Update locators to be JN-compatible

* Fix erroneous getting of release tag

* Fix conflict of "No thanks" button locator with that of WP Mail Logging's

* Update github-script action to v6

* Revert to 'Cancelled'

* Remove unnecessary step

* Provide missing env variables

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
Co-authored-by: Jonathan Lane <lanej0@users.noreply.github.com>
2023-02-27 12:11:46 +08:00