Commit Graph

10571 Commits

Author SHA1 Message Date
rodelgc db10af9583 Apply timeout to all tests 2023-05-17 15:31:28 +08:00
rodelgc 043bfa1943 Add explicit waits 2023-05-17 15:20:02 +08:00
rodelgc fd5bc2a420 Replace deprecated page methods.
Blur and wait for autosave.
Add a few explicit waits.
2023-05-17 15:19:18 +08:00
rodelgc 3be1f45f2e Merge branch 'trunk' into e2e/increase-timeouts 2023-05-17 12:52:49 +08:00
rodelgc 77d75b1a34 Set timeout within test 2023-05-17 12:18:49 +08:00
Moon 3db18516e6
Update RIN Transformers doc with examples. (#38176)
* Update transformers doc with examples

* Add changelog
2023-05-16 19:13:56 -07:00
Chi-Hsuan Huang dcbfbe2748
Cleanup task list and re-organize file structure (#38271)
* Deprecate onboarding task snooze APIs

* Cleanup task list and organize tasks file structure

* Add changelog

* Fix lint

* Fix tests

* Remove two-columns check logic

* Fix mock path
2023-05-17 09:54:31 +08:00
jamelreid 900b264ec7 Added changelog 2023-05-16 15:40:52 -05:00
jamelreid c1518d1352 Removed wp-env workaround 2023-05-16 15:39:20 -05:00
rodelgc e077c4c027 Replace deprecated page methods 2023-05-17 03:07:08 +08:00
rodelgc f2108a81ae Increase spec timeout to 3m 2023-05-17 00:45:07 +08:00
James Collins 8dc16fa48d
Re-assign existing webhooks during user deletion (#37814)
Co-authored-by: James Collins <james@om4.com.au>
Co-authored-by: Nestor Soriano <konamiman@konamiman.com>

Includes UI detailing how many webhooks are assigned to each of the users being deleted, and explaining how the re-assignment works.
2023-05-16 16:23:10 +02:00
rodelgc 35ba63403a Update readme 2023-05-16 20:41:23 +08:00
rodelgc 319c8038f7 Add changelog 2023-05-16 20:38:56 +08:00
rodelgc 83c0e3e393 Increase spec timeout to 2m 30s 2023-05-16 20:37:54 +08:00
rodelgc 8d4066aff5 Increase default timeout to 2m 2023-05-16 20:37:40 +08:00
Maikel David Pérez Gómez 4b3479595b
Only register blocks when user navigates to the product edit page (#38303)
* Remove block registration from within the Editor component

* Expose the initBlocks function to be used outside of the product package

* Register blocks within the ProductPage component

* Add changelog files

* Unregister blocks when product page gets unmounted
2023-05-16 07:41:26 -03:00
Chi-Hsuan Huang 8d249841b9
Fix `get_options` deprecation notice (#38289)
* Fix get_options deprecation notice

* Add changelog

* Remove duplicates
2023-05-16 09:36:20 +08:00
RJ 38dc82b4b1
dev: add core profiler state machine tests (#38154)
dev: added tests for core profiler state machine

- added tests to demonstrate model based testing with @xstate/test
2023-05-16 08:56:39 +08:00
Corey McKrill 5a3e0b1a67
Introduce missing button element classes for the account orders and downloads (#37933)
Ensures button styles are consistent in the front end UI.
2023-05-15 17:18:11 -07:00
nigeljamesstevenson 06006619b3
Update test timeout to 90 seconds, and suggest using `DEFAULT_TIMEOUT_OVERRIDE` in E2E README (#38288) 2023-05-15 20:12:39 +01:00
Maikel David Pérez Gómez 332094e87d
Update shipping class block to match new designs (#38301)
* Change the section title from Shipping fee to Shipping class

* Replace the radio buttons with a regular dropdown

* Add changelog files
2023-05-15 13:06:48 -04:00
Christopher Allford dedf728d51
Support PHPUnit Tests In `wp-env` (#38265)
You can now run unit tests with `test:unit:env` after using
`env:test` to start the environment.
2023-05-15 09:47:50 -07:00
Gan Eng Chin d6ffdddf9a
Add changelog. 2023-05-16 00:42:52 +08:00
Gan Eng Chin 57220390b9
Update Codisto extension description and fix WooCommerce name typo in test. 2023-05-16 00:42:15 +08:00
“Chris ad5c577abe Merge branch 'trunk' into fix/tt3-attributes-table 2023-05-15 14:25:41 +03:00
“Chris f1b1df93d1 Bump order-again template 2023-05-15 14:25:18 +03:00
“Chris 66c5a16e2e Bump template versions 2023-05-15 14:24:27 +03:00
“Chris ee74bc6873 Merge branch 'trunk' into add/tt3-comp-button-classes 2023-05-15 14:23:19 +03:00
Vedanshu Jain 2d6e433e05
Fix the child order upshifting when parent order is deleted (#38199) 2023-05-15 16:03:35 +05:30
nigeljamesstevenson c190f971b1
skip k6 api batch update when batch create fails (#38282) 2023-05-15 11:16:11 +01:00
Vedanshu Jain bd5abe1c3e Apply coding standards. 2023-05-15 15:34:09 +05:30
Vedanshu Jain b2f7599647 Add compat for status count as well. 2023-05-15 15:14:43 +05:30
Fitim Vata 642a66fd8c [Fix] Undefined array key 1, 2, 3 when using list to extract woocommerce cookie values. 2023-05-15 11:44:23 +02:00
Vedanshu Jain 00530cce42 Add HPOS compat queries for tracker. 2023-05-15 15:06:06 +05:30
Moon 0bf6859383
Add Business Location page to the core profiler (#38019)
* Add core profiler - welcome to woo page

* Update checkbox styles

* Add tracks

* Update default tracking value

* Update copies

* using invoked promise instead of useState

- take advantage of xstate's built ins for side effects instead of  useEffect/hooks
- discovered that error result wasn't really handled in original useEffect
- use text labels instead of inline functions so that we can decouple the implementation from the machine model
- todo: can move the invoked function out elsewhere and also tests if needed (not necessary here because it's a simple call)

* add: core profiler scaffolding using xstate

* Add navigation and progress-bar components

* fix css lint error

* Update plugins/woocommerce-admin/client/core-profiler/components/navigation/woologo.tsx

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Update plugins/woocommerce-admin/client/core-profiler/components/progress-bar/progress-bar.tsx

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

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

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Remove var from __ function

* Use woocommerce prefix for classnames

* Fix css lint error

* Fix broken tests

* Add business location page

* Remove unwanted changes from rebase

* Remove unwanted changes from rebase

* Redirect to Woo Home on exit

* Add tracks

* Fix js lint error

* Add loader page

* Support meta value from nested states

* Use navigateTo

* Add tests for getCountryStateOptions

* Use Country type from navigation package

* Rename useStages to getLoaderStageMeta

* Add changelog

* Move progress from 20 to 80

* Fix xstate warning

* Fix broken pnpm lock

* Fix eslint errors

* Update plugins/woocommerce-admin/client/core-profiler/services/country.ts

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>

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

Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>

* Save country to option

* Fix jslint error

* Update plugins/woocommerce-admin/client/core-profiler/services/country.ts

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Update plugins/woocommerce-admin/client/core-profiler/style.scss

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Fix eslint error

* Use decodeEntities directly

* Update comment for artificial 3 seconds wait

* Disable Go to my store button when country is empty

* Style for mobile devices

* Style updates for the country dropdown

* Fix js lint error

* Update country dropdown border color

* Style the loader

* Fix css lint

---------

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
Co-authored-by: rjchow <me@rjchow.com>
Co-authored-by: RJ <27843274+rjchow@users.noreply.github.com>
2023-05-15 04:56:47 +08:00
rodelgc e729c776b9 UPdate readme 2023-05-13 16:48:55 +08:00
rodelgc e4845842cb Default to 90 sec 2023-05-13 16:48:49 +08:00
rodelgc 9f592117a1 Add changelog 2023-05-13 16:14:54 +08:00
Ron Rennick f6b5913d32
Add HPOS specific k6 test suite (#37665)
* Add HPOS specific k6 test suite

* revert unintntional partial revert of #37719

---------

Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-05-12 16:25:51 -03:00
Faisal Alvi 8e9ff0d7f5
Fix/37601 Add `aria-describedby` to Select options button (#37880)
* Add `aria-describedby` to select options button

* add a changelog

* update the chnagelog file

* fix type

* fix the function name

* remove `aria-describedby`s if with value

* suggestions implemented

* Minor PHPCS fixes

---------

Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-05-12 16:16:38 -03:00
Ron Rennick 0c639eb10d
Add changelog file 2023-05-12 13:30:24 -03:00
louwie17 0ea5205672
Move template addition to feature flag (#38276)
* Remove template from product type and move to feature flag

* Add changelog

* Fix lint errors
2023-05-12 13:28:57 -03:00
Ron Rennick 71f3a8c40d
Do not call login if user is already logged in (#37850) 2023-05-12 13:27:10 -03:00
Ron Rennick 36202d744d skip k6 batch update when batch create fails 2023-05-12 13:20:11 -03:00
Vedanshu Jain e45dbd7301
Compute if any order is pending, when deciding to process next migration batch (#38165)
We change the behavior of how we decide whether to continue or stop the migration. Earlier, when deciding, we were counting all pending orders which was slow especially on large sites, and will continue to get slower as the migration processes. However, now we will only fetch if there is any order that needs migrating to decide whether to go ahead with the migration or not, which should be much faster then calculating the total count.
2023-05-12 16:34:05 +02:00
Nestor Soriano 6ed8fb4e4c
Delete child orders using wc_get_order->delete
Also remove get/set_verify_parent_id methods as in the end
they don't seem to be needed.
2023-05-12 15:32:41 +02:00
Karol Manijak fabc728119
Update/woocommerce blocks 10.2.0 (#38246) 2023-05-12 13:49:39 +02:00
Alejandro Iglesias 0f2561bec7 amends from CR 2023-05-12 11:15:51 +02:00
Karol Manijak 05ddf0bb8e Update the changelog file 2023-05-12 08:08:28 +02:00
Karol Manijak 5424af88a8 Restore composer.lock files 2023-05-12 07:55:17 +02:00
rodelgc d99b122d5e Fix pluginSlug error 2023-05-12 13:05:23 +08:00
rodelgc 074c8b871a Test Gutenberg and its nightly build 2023-05-12 12:21:23 +08:00
AashikP 7e3729c5fc
Add e2e test for Merchant > Pages > Can create a new page (#38238)
* Add create-page.spec.js

Create e2e test for Critical Flow: Merchant > Pages > Can create a new page

* Add changelog entry

* Update selector for close dialog

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-05-11 15:23:47 -07:00
Nathan Silveira 345cca1e09
Fix activity panel not showing unread when closed (#38173)
* Create new attribute to calculate more accurately if activity tab has something "new"

* Fix wrong attribute name

* Revert previous change, rename functions and remove isPanelOpen clause from hasAbbreviatedNotifications logic

* Rename functions
2023-05-11 16:07:13 -03:00
Christopher Allford 7b7ca116f6
Update `wp-env` To 7.0.0 (#38223)
* Updated `wp-env` To 7.0.0

* Adopted `wp-env` Changes To `update-wp-env.php`

* Updated E2E Test Bootstrapping

With the changes to `wp-env` we can update our
test bootstrapping to use the new functionality.

* Changelogs

* Restored `update-wp-env.php` Usage

There's a bit of work to do in support of this and I
don't want it to hold up the pull request!

* Fixed `wp-env` JSON Problems

It was writing an empty array in places where the
expectation was an empty object.

* Fixed Broken Echo Escape

* Fixed Init Quoting

* Update close button locator

* Reverted Quote Removal

There is an upstream bug relating to quotes that needs to be resolved!

* Reverted Quote Removal

---------

Co-authored-by: rodelgc <rodel.calasagsag@automattic.com>
2023-05-11 11:31:10 -07:00
rodelgc 2b573d4f54
In E2E Readme, add instruction to run Playwright UI mode (#38197)
* Add instruction for running Playwright UI mode

* Add changelog
2023-05-11 10:49:13 -07:00
Michael Pretty 6be097ff45
Add context to the credit card names used for translators. (#36364)
Co-authored-by: Michael Pretty <prettyboymp@Michaels-MacBook-Pro.local>
Co-authored-by: Jorge A. Torres <jorge.torres@automattic.com>
2023-05-11 16:59:24 +02:00
Ron Rennick 246053277e
Fix/37599 Add Product Name in the `aria-label` attribute (#37830) 2023-05-11 10:55:58 -03:00
Karol Manijak 8c7fa2e171 Add changelog entry 2023-05-11 14:28:57 +02:00
Karol Manijak 966c586113 Update composer.lock files 2023-05-11 14:28:32 +02:00
Nestor Soriano a0a2390d9e
Delete child orders using existing functions instead of direct db access.
Additionally, add get/set_verify_parent_id methods to the order object.
2023-05-11 12:48:21 +02:00
rodelgc a5c3838a1d Add changelog 2023-05-11 18:20:41 +08:00
rodelgc 78fd2f88af Add test steps 2023-05-11 18:18:29 +08:00
Néstor Soriano eccff559a5
Hide state selector from Ethiopia and Rwanda addresses (#35481)
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-05-11 11:05:11 +02:00
Alejandro Iglesias 4688290463
Save order before calculating totals if created via REST API (#37845) 2023-05-11 10:29:48 +02:00
Alejandro Iglesias 6a3839e7fa make nonce verification static 2023-05-10 23:50:25 +02:00
Alejandro Iglesias 79acdad45b remove password reset query arg 2023-05-10 23:50:19 +02:00
Alejandro Iglesias f3f9a3a45c Revert previous fix 2023-05-10 23:50:11 +02:00
Ron Rennick d93a5d4e88
Add default styles for product meta in the TT3 order details table (#38172) 2023-05-10 16:59:46 -03:00
Nathan Silveira f668ce72ac
Add tests to tracks events fired through JS (#38124)
* Add test for inbox_note_view event

* Add tracks test for Layout's page_view

* Add test to inbox_action_click

* Add tests to analytics_filter tracks event

* Add tracks event test to activity_panel_open

* Add tests to tracks event activity_panel_orders_orders_begin_fulfillment

* Add tracks tests to activity_panel_stock_update_stock

* Improve tests based on code review comments

* Mock recordEvent and recordPageView globally

* Add missing mock

* Improve inbox panel tests
2023-05-10 09:36:42 -03:00
Nestor Soriano 2ff1c70f9d
Add changelog file 2023-05-10 12:55:14 +02:00
Nestor Soriano 7b5b6420fe
Fix the child order upshifting when parent order is deleted
PR 36218 implemented child order upshifting (setting their parent
order id to 0) when the parent order is deleted, but this needs to
happen only when the post type of the parent order is hierarchical,
otherwise child orders need to just be deleted. This commit fixes that.
2023-05-10 12:47:59 +02:00
Chi-Hsuan Huang fa658a0e94
Fix "Add store details" task fails to mark as completed for selecting Nigeria based address (#38181)
* Fix "add store details" task fails to mark as completed for selecting Nigeria based address while OBW

* Add changelog

* Remove empty line

* Fix lint
2023-05-10 17:08:33 +08:00
Menaka S c3d06ad05f
Add WC Tracker unique payment method (#37951)
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2023-05-10 09:22:58 +02:00
Ilyas Foo 1b8eeed2e2
Fix tracks identifier mismatch (#38094)
* Add tracks identifyUser when initializing wcTracks object

* Changelog

* Remove unused code

* Lint

* Lint

* More lint
2023-05-10 14:08:19 +08:00
Chi-Hsuan Huang 687549dc6b
Fix "Marketing & Merchandising" padding on store management panel (#38088)
* Add a 24px spacing between the Manage my store header and the Marketing & Merchandising heading

* Add changelog

* Update store management card style

* Update .woocommerce-store-management-links__card-body padding
2023-05-10 13:02:22 +08:00
Chi-Hsuan Huang 956d09c34b
Fix shipping tour layout context error (#38183)
* Add LayoutContextProvider to embedded body layout to fix shipping tour error

* Show an error notice and record track when failing to update shipping option

* Add changelog

* Update error message

* Remove unused import
2023-05-10 13:01:37 +08:00
Chi-Hsuan Huang 4ba276d3fb
Re-enable purchase unit tests and falling back to simply not display any prices when data is not available (#38163)
* Re-enable Purchase unit tests

* Fallback to simply not display any prices rather than empty prices when data is not available.

* Add changelog
2023-05-10 10:30:59 +08:00
Jonathan Lane 71981b5318
Playwright 1.33 and UI mode (#38100)
* Update Playwright to 1.33

* Add UI command

* Changelog entry

* Increase timeout

* Increase timeout again

* Moved Playwright to devDependencies

* Remove UI command

* Re-update Playwright

* Comment out failing assertion

---------

Co-authored-by: Jon Lane <jon.lane@automattic.com>
2023-05-10 09:30:08 +08:00
Matt Sherman d11f50b5a3
Update empty state for product attributes tab (#38126)
* Remove empty state HTML

* Add empty attribute when product has no attributes

* Remove unused woocommerce_admin_meta_boxes.has_local_attributes

* Remove unused toggle_add_global_attribute_layout

* Remove unused button.add_attribute click handling (button doesn't exist anymore)

* Fix positioning of Expand / Close

* Remove unnecessary add-attribute-container div

* Refactor attribute search selection handling

* Remove empty attribute if adding an existing attribute

* Update e2e test clicking of "Add new" attribute button

* Update Tracks handling for "Add new" attribute button

* Changelog

* Fix action recorded when "Add new" button is clicked

* Remove console.log statements

* Allow propagation of click event on "Create value" button

* Move Tracks wcadmin_product_attributes_buttons action: 'add_existing' to product-tracking TS

* Make function names more descriptive. Add comment to clarify why event.preventDefault is used.
2023-05-09 20:04:29 -04:00
Tomek Wytrębowicz 00c151f9aa
Remove `qs` dependency from `woocommerce-admin` (#35128) 2023-05-09 21:03:25 +02:00
Fernando Marichal eef417fe39
Variations - Rename the Generate variations button after variations are created (#38084)
* Rename 'Generate variations' button

* Add changelog

* Fix button rename

* Refactor fix
2023-05-09 15:12:29 -03:00
Barry Hughes 6a42565550
fixed spacing issue of thumb image (#35491) 2023-05-09 10:51:25 -07:00
Fernando Marichal 765a87a741
Variations - Remove separator between buttons and empty state screen (#38123)
* Remove separator between buttons and empty state screen

* Add changelog

* Fix separator style
2023-05-09 12:43:25 -03:00
Tomek Wytrębowicz bbf4f47c9c Remove qs dependency from `WCAddonsTour` ,
use native `URLSearchParams` instead.
2023-05-09 14:57:39 +02:00
Chi-Hsuan Huang 4c9bcbc30e
Add missing woocommerce_run_on_woocommerce_admin_updated hook for RemoteInboxNotificationsEngine scheduled action (#38159)
* Remove maybe_mark_complete usage

* Add changelog

* Add woocommerce_run_on_woocommerce_admin_updated hook

* Add changelog

* Fix lint
2023-05-09 18:53:08 +08:00
Chi-Hsuan Huang 059d1de563
Remove core onboarding usage of woocommerce_updated hook (#38158)
* Remove maybe_mark_complete usage

* Add changelog
2023-05-09 18:20:42 +08:00
Chi-Hsuan Huang 2189cb181a
Hide "Upload a logo" step in Personalize task if theme doesn't support it (#38161)
* Hide upload logo step in Personalize task if theme doesn't support it

* Add changelog

* Fix lint
2023-05-09 18:20:18 +08:00
Chi-Hsuan Huang e06097b4c2
Fix `wc-experimental` strings are not translated (#38108)
* Add wc-experimental to translated_scripts

* Add changelog
2023-05-09 17:07:36 +08:00
Chi-Hsuan Huang 0148c3eafd
Make all fields in the tax location form mandatory (#38137)
* Make all fields in the tax location form mandatory

* Add changelog
2023-05-09 17:01:37 +08:00
Joshua T Flowers 329fcd1bc3
Add tinymce scripts to product editor pages (#38175)
* Add tinymce scripts to product editor pages

* Add changelog entry
2023-05-09 04:32:00 -03:00
Chi-Hsuan Huang 4a237ca476
Migrate Purchase task and dashboard utils to TS (#37725)
* Fix onboarding productTypes TS define type

* Rename purchase.js -> purchase.tsx

* Rename utils.js -> utils.ts

* Migrate dashboard/util to TS

* Rename tasks fills to index.ts

* Migrate purchase task to TS

* Add changelog

* Fix types

* Update changelog
2023-05-09 11:28:57 +08:00
Jorge A. Torres 1206b5a38a
Enhancement: Add order note to display held stock inventory. #29132 (#37833) 2023-05-08 19:46:14 -03:00
Jorge A. Torres 8eb8a09c88 Minor fixes 2023-05-08 18:18:39 -03:00
Jorge A. Torres 63916fed3c Drop `$held_stock_counter` to simplify logic 2023-05-08 17:53:05 -03:00
“Chris 38db587d1e Add changelog 2023-05-08 22:23:04 +03:00
“Chris 105137c406 Add styling for wc-item-meta in order details table 2023-05-08 22:20:48 +03:00
“Chris 92287f7557 Make phpcs happy 2023-05-08 22:00:21 +03:00
“Chris f43b943523 Merge branch 'trunk' into add/tt3-comp-button-classes 2023-05-08 21:50:30 +03:00
AashikP 552806b34a
Add e2e test for Merchant > Posts > Can create a new post (#38041)
* Add create-post.spec.js

Create e2e test for Critical Flow: Merchant > Posts > Can create a new post

* Fix e2e Merchant Create Post

* Force delete created post
* Check for Welcome modal - close if exists
* Change assertion for Published post confirmation from `check if true` to `check if visible`
* Added changelog file

* e2e-pw: Create post - replace btoa

Replace deprecated function btoa with Buffer function
2023-05-08 10:33:29 -07:00
Fernando Marichal 7f87c7d1b7
[Enhancement]: Allow dropdown options recording for WooCommerce Settings (#38035)
* Add dropdown recording

* Add changelog

* Fix lint
2023-05-08 12:04:14 -03:00
Maikel David Pérez Gómez c265db936e
Add Sale price validation (#38078)
* Create sale-price block

* Create regular-price block

* Add changelog files

* Fix some typos in field validator names
2023-05-08 10:05:13 -04:00
Chi-Hsuan Huang 880459ee9a
Change product-category-metabox scripts/styles enqueue logic (#38076)
* Update product-category-metabox JS/style enqueue logic

Change to only enqueue on product pages, not all admin pages.

* Add changelog
2023-05-08 17:19:12 +08:00
Jeffrey Paul df0583f9b8
Fix/37502: Correct spelling errors. (#37887)
* change reference of Catpure to Capture

Co-Authored-By: Vikram  <93216400+vikrampm1@users.noreply.github.com>

* change reference of expicitly to explicitly

Co-Authored-By: Vikram  <93216400+vikrampm1@users.noreply.github.com>

* change reference 'cutted' to 'cut'

* change reference 'determening' to 'determining'

* change reference 'retreive' to 'retrieve'

* change reference 'neccessary' to 'necessary'

* change reference 'Fitler' to 'Filter'

* change reference of "seperate" to "separate"

Co-Authored-By: Ankit K Gupta <ankit.himcs@gmail.com>

* change reference of "wether" to "whether"

Co-Authored-By: Sumit Bagthariya <67687255+qasumitbagthariya@users.noreply.github.com>

* change reference of "staus" to "status"

* change reference of "retrive" to "retrieve"

* change references of "gatways" to "gateways"

* change references of "existant" to "existent"

* change reference of "requries" to "requires"

* change reference of "configuation" to "configuration"

* change reference of "processsing" to "processing"

* change reference of "represenation" to "representation"

* change reference of "dimentions" to "dimensions"

* change references of "reigster" to "register"

* change reference of "colum" to "column"

* change reference of "transtions" to "transitions"

* change references of "intially" to "initially"

* change references of "orignal" to "original"

* change references of "deprected" to "deprecated"

* change references of "paramter" to "parameter"

* change reference of "intance" to "instance"

* change reference of "elemets" to "elements"

* change references of "funcitons" to "functions"

* change reference of "specificed" to "specified"

* change references of "atributes" to "attributes"

* change reference of "tast" to "task"

* change reference of "chaning" to "changing"

* change reference of "retreiving" to "retrieving"

* change reference of "caluclation" to "calculation"

* change references of "Invaid" to "Invalid"

* change references of "paramaters" to "parameters"

* change reference of "Additonal" to "Additional"

* change reference of "teh" to "the"

* change reference of "evalutes" to "evaluates"

* change reference of "addedd" to "added"

* change reference of "excempt" to "exempt"

* change reference of "sequencially" to "sequentially"

* change reference of "previos" to "previous"

* change reference of "elegible" to "eligible"

* change references of "Boostrap" to "Bootstrap"

* change references of "compability" to "compatibility"

* change reference of "heirarchy" to "hierarchy"

* change references of "visibilty" to "visibility"

* change reference of "comparsion" to "comparison"

* change reference of "capabilties" to "capabilities"

* change reference of "datatores" to "datastores"

* change reference of "occured" to "occurred"

* change reference of "coresponding" to "corresponding"

* change references of "thier" to "their"

* change reference of "sucessfully" to "successfully"

* change reference of "insde" to "inside"

* change reference of "nagivation" to "navigation"

* change references of "visiblity" to "visibility"

* change reference of "documentaiton" to "documentation"

* change reference of "anayltics" to "analytics"

* change reference of "intalling" to "installing"

* change reference of "mininum" to "minimum"

* change references of "intial" to "initial"

* change reference of "Feld" to "Field"

* change reference of "taks" to "task"

* change reference of "trasnfer" to "transfer"

* change reference of "respone" to "response"

* change reference of "Extenstions" to "Extensions"

* change reference of "detault" to "default"

* change reference of "simultanious" to "simultaneous"

* change reference of "overides" to "overrides"

* change references of "Indvidual" to "Individual"

* change reference of "refering" to "referring"

* change reference of "aginst" to "against"

* change reference of "execuatable" to "executable"

* change reference of "repsonse" to "response"

* change reference of "documention" to "documentation"

* change reference of "asumed" to "assumed"

* change reference of "Minium" to "Minimum"

* change reference of "unqiue" to "unique"

* change references of "existance" to "existence"

* change reference of "compatability" to "compatibility"

* change reference of "Taxnomy" to "Taxonomy"

* change reference of "quering" to "querying"

* change reference of "retrun" to "return"

* change reference of "informations" to "information"

Co-Authored-By: Viktor Szépe <viktor@szepe.net>

* Add changelog

* Add changelog

* Fix typo

---------

Co-authored-by: Vikram  <93216400+vikrampm1@users.noreply.github.com>
Co-authored-by: Ankit K Gupta <ankit.himcs@gmail.com>
Co-authored-by: Sumit Bagthariya <67687255+qasumitbagthariya@users.noreply.github.com>
Co-authored-by: Viktor Szépe <viktor@szepe.net>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-05-08 15:55:09 +08:00
Chi-Hsuan Huang 3f0219b1bc
Fix misaligned loading sample product's progress message (#38107)
* Fix misaligned loading sample products modal

* Add changelog

* Fix misaligned loading sample product confirm modal
2023-05-08 12:19:55 +08:00
Tomek Wytrębowicz 0d45b0f107 Merge branch 'trunk' into remove/qs 2023-05-07 16:18:32 +02:00
Corey McKrill 87e25de9ab
Make more information available to `checkout_place_order` callbacks (#38147)
Makes the `wc_checkout_form` object available to Javascript event handlers during the checkout process. This makes it easier for extension (payment gateway) developers to manipulate the checkout experience. In isolation, though, nothing should change and everything should work as before.

Fixes #26827
2023-05-05 16:12:36 -07:00
barryhughes 7743fa41b6 Changelog. 2023-05-05 13:58:27 -07:00
minaldiwan 29ea9b0b65 fixed spacing issue of thumb image 2023-05-05 13:57:26 -07:00
Ben Meredith 6fdddd25f0
Fix typo (#35232)
* Fix typo

"Log out" is a verb
"logout" is a noun. 

This link should be an action. So it's the verb form.

* Add changelog file

* update E2E tests for text change

* update unit test for text change

---------

Co-authored-by: Ron Rennick <ron@ronandandrea.com>
Co-authored-by: Ron Rennick <ronald.rennick@automattic.com>
2023-05-05 13:50:07 -07:00
barryhughes ce23ac81af Whitespace/formatting. 2023-05-05 12:28:29 -07:00
barryhughes 7449329599 Changelog. 2023-05-05 12:26:31 -07:00
Emran Ahmed 73829979fc When triggering handlers for `checkout_place_order[_*]` events, supply extraParameters.
Adding `extraParameters` to `triggerHandler` to gateways manipulate the checkout if needed with more data
2023-05-05 12:24:17 -07:00
“Chris f0ab1de963 Merge branch 'add/tt3-comp-button-classes' of github.com:woocommerce/woocommerce into add/tt3-comp-button-classes 2023-05-05 15:41:45 +03:00
Chris Lilitsas dab5f98aea
Fix typo for echoing the class name
Co-authored-by: Corey McKrill <916023+coreymckrill@users.noreply.github.com>
2023-05-05 15:36:08 +03:00
“Chris c55af4836e Merge branch 'trunk' into add/tt3-comp-button-classes 2023-05-05 15:31:22 +03:00
aezazs-multidots 24a59c8d59
updated product description tips text (#38070)
* updated product description tips text

* Add Description in changelog
2023-05-05 20:10:58 +08:00
Luigi Teschio 7ba4c8b5ca
Update WooCommerce blocks package to 10.0.4 (#38135) 2023-05-05 14:07:38 +02:00
Chi-Hsuan Huang 208ac81ba3
Fix tasklist completion message when no tasks are completed (#38092)
* Fix task list progress title

* Add changelog
2023-05-05 17:48:10 +08:00
github-actions[bot] cabe966291
Delete changelog files based on PR 37783 (#37965)
Delete changelog files for 37783

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-05-05 20:16:28 +12:00
github-actions[bot] 6cd8695407
Delete changelog files based on PR 37907 (#37963)
Delete changelog files for 37907

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-05-05 20:16:17 +12:00
github-actions[bot] 112c4a03c3
Delete changelog files based on PR 37753 (#37960)
Delete changelog files for 37753

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-05-05 20:15:59 +12:00
Adrian Duffell fde7290e48
Add "SlotFill Examples" Feature to Beta Tester Plugin (#38113)
* Update WCA Test Helper JS script dependencies

Add the WooCommerce Admin app script as a dependency to ensure it loads before WCA Test Helper. This enables WCA Test Helper scripts to check available features.

* Add experimental_woocommerce_wcpay_feature fill

* Add beta-tester-slotfill-examples feature

* Fix a bug

* Fix lint issues

* Add changelog
2023-05-05 16:10:26 +08:00
Chi-Hsuan Huang ef7bf6a28b
Update Payfast logo and title (#38090)
* Update Payfast title

* Update Payfast logo

* Add changelog

* Update Payfast 72x72 logo
2023-05-05 15:42:47 +08:00
Ron Rennick 358e1a4066
Prevent height flickering when selecting a variation in TT3 (#38115) 2023-05-04 15:13:03 -03:00
Joel Thiessen 4729ea054b
Adding basic ordering to tab slot fill (#38081) 2023-05-04 10:57:19 -07:00
Joel Thiessen b3d9c706e1
Removing auto-draft as wc post type to fix post publish time bug (#38099) 2023-05-04 10:50:10 -07:00
Matt Sherman 79377fb883
Use snackbar to show variations generated message, instead of browser alert (#38103)
* Use snackbar instead of alert when showing generated variations message

* Changelog
2023-05-04 13:05:16 -04:00
Ilyas Foo 8e6fd416e0
Fix partial data import with product task imports (#38089)
* Fix product task import mapping issue with en_US locale

* Sanitize template name

* Changelog
2023-05-04 22:54:41 +08:00
Peter Fabian 81b899b55e
Added a button to download SSR to a file. (#38110) 2023-05-04 15:58:33 +02:00
“Chris 5b3666b014 Add changelog 2023-05-04 13:02:49 +03:00
“Chris f60b7e7b4b Prevent margin-top on the first element in description 2023-05-04 13:01:15 +03:00
Matt Sherman 865fcd053c
Fix product data field description styling, including checkboxes and radio buttons (#38066)
* Set .description to block for everything except for those for checkboxes and radio buttons

* Changelog
2023-05-03 18:08:46 -04:00
Jorge A. Torres 9bbe72d431
Fix/issue 36360 (#37883) 2023-05-03 18:23:45 -03:00
Barry Hughes d87fc28ad4
Update wp org listing description (#38074) 2023-05-03 14:23:24 -07:00
Peter Fabian cd8dcf29a7 Updated plugin description, take 2. 2023-05-03 22:46:01 +02:00
barryhughes 546ef267a9 Remove phpcs:ignore tag. 2023-05-03 11:10:44 -07:00
barryhughes f8af80a0d4 Document hook, mark one as duplicate. 2023-05-03 11:09:52 -07:00
Ron Rennick 066e269da3
Create orders as 'auto-draft' by default in admin (#37643) 2023-05-03 11:28:29 -03:00
Chi-Hsuan Huang ea58ae339a
Add core profiler "Welcome to Woo!" page (#37952)
* Add core profiler - welcome to woo page

* Add changelog

* Update checkbox styles

* Update copies

* Add test

* Add enable prop to window.wcTracks type

* Add tracks

* Add explat changelog

* Fix import

* Update default tracking value

* Update copies

* Fix test

* using invoked promise instead of useState

- take advantage of xstate's built ins for side effects instead of  useEffect/hooks
- discovered that error result wasn't really handled in original useEffect
- use text labels instead of inline functions so that we can decouple the implementation from the machine model
- todo: can move the invoked function out elsewhere and also tests if needed (not necessary here because it's a simple call)

* use actions.choose instead of branching inside action 

- https://stately.ai/docs/xstate/transitions-and-choices/guarded-actions#the-choose-action
- makes it so that the machine model is serializeable
- todo: in the distant future i wonder if it might be tidier to have tracks be its own actor that just receives the same events that this machine does, that way it's just standalone instead of mixing up tracks with the implementation

* use dispatch instead of useDispatch

- decouples the implementation of the handler from the react component
- makes the handler testable on its own if needed
- makes the state machine testable without relying on external dependencies

* decoupled remaining function calls

* Fix lint error

* Fix style lint

* address xstate console warnings

- .withConfig() is a function call that returns a new object every invocation so we need to wrap it in useMemo to keep it stable

* Add optInDataSharing is false test

* Fix lint

---------

Co-authored-by: rjchow <me@rjchow.com>
2023-05-03 15:54:28 +08:00
Joel Thiessen 3679f019bb
Adding attributes block to product block editor. (#38051) 2023-05-02 21:13:48 -07:00
Jorge A. Torres 3c27123aa2 Make changes per review 2023-05-02 17:11:36 -03:00
Matt Sherman 94599a14cf
Add product type options to product tracking (#38017)
* Add product_type_options to wcadmin_product_add_publish
* Add product_type_options to wcadmin_product_update
* Add product_type_options to other wcadmin_product_ events
2023-05-02 13:42:57 -04:00
Shojib khan 0ae9ec0844
Solves Cross-Sells display variable product (#37616)
Solved cross-sells display issue on cart
2023-05-02 10:24:22 -04:00
Nathan Silveira 4145b6e0f7
Await triggerNoteAction before navigating when action is clicked (#38047)
* Await triggerNoteAction before navigating when action is clicked

* Add additional logic and use @woocommerce/navigation to navigate
2023-05-02 11:17:50 -03:00
Tomek Wytrębowicz d35e8f3c46 Fix path for `segment_label` in Products & Variations schema 2023-05-02 16:11:58 +02:00
Jorge A. Torres fa6ee94bc8 Add changelog 2023-05-02 10:17:45 -03:00
Peter Fabian 02dbd1f325
Update wp org listing description 2023-05-02 15:03:35 +02:00
Tomek Wytrębowicz fbd377b2ec Change `get_item_properties_schema` to be protected 2023-05-02 14:22:51 +02:00
“Chris 9d9a5bbb72
Add changelog 2023-05-01 15:43:03 -07:00
“Chris a6e4a9e8ab
Fix TT2 comment list 2023-05-01 15:43:03 -07:00
Tomek Wytrębowicz b0b80445ab Move common stats item schema bits to a shared class 2023-05-01 23:31:05 +02:00
Tomek Wytrębowicz 6a027f8eb7 Fix whitespaces for PHPCS 2023-05-01 22:51:43 +02:00
Tomek Wytrębowicz 5d75137f73 Rename `AbstractController` to `GenericController` 2023-05-01 22:19:05 +02:00
Tomek Wytrębowicz 58bc88e0fc Move `interval` collection param to a shared parent class 2023-05-01 22:10:22 +02:00
Tomek Wytrębowicz 766e19e109 Fix `Taxes\Stats\Controller::get_collection_params`
remove lefover `$params` overwrite, let it use parent's one.
2023-05-01 21:46:12 +02:00
jonathansadowski dfd3c9fbb6
Remove woorelease config (#37730)
* Remove woorelease config

* Add changelog
2023-05-01 13:10:25 -05:00
Joel Thiessen 16b9191c0d
Adding shipping class option and modal (#37968) 2023-05-01 10:04:54 -07:00
Joshua T Flowers d86a3d1dab
Register server-side tracking during rest requests (#37796)
* Register server-side tracking during rest requests

* Move loading of tracks related functionality to WC class

* Load tracks functions to allow tests to pass

* Move single init hook for WC Site Tracking to core class
2023-05-01 09:50:58 -07:00
Jorge A. Torres 3002a19bce
Print blocks-based element CSS classes only when a block theme is used (#37631) 2023-04-28 16:57:51 -03:00
Nathan Silveira 8fc6972161
Fix N/A displayed on re-enabling toggles for "Stats overview" panel after refreshing "Woocommerce > Home" page. (#38030)
* Fix N/A on stats overview on WooCommerce > Home

* Add changelogs

* Fix wrongfully added type definition
2023-04-28 16:15:10 -03:00
Jorge A. Torres 6fde831921
fix/37604: replace title html attribute with aria-label (#37811) 2023-04-28 15:53:44 -03:00
Tomek Wytrębowicz 2654d577c0 Fix whitespaces for PHPCS 2023-04-28 17:41:52 +02:00
Maikel David Pérez Gómez a35f2c3d5d
Update List price Pricing link on the general tab to navigate to the Pricing tab (#37961)
* Update List price Pricing link on the general tab to navigate to the Pricing tab

* Add changelog files

* Simplify the event name to product_pricing_help_click
2023-04-28 11:33:56 -04:00
Ali Shan 255d5f377c
Order is search with the phone number and linked with the user accoun… (#37844)
* Order is search with the phone number and linked with the user account. #36810

* updated the query and tested on local env

* fixed the phpcs issue

* added the changelog

* updated the string concatenation issue and also moved the change log file to the correct path

* removed the %i placeholder from the query and used the old way to add the table name
2023-04-28 11:11:58 -04:00
Tomek Wytrębowicz f5779ba468 Add the changelog entry 2023-04-28 16:44:19 +02:00
Tomek Wytrębowicz 9f921b8e40 Move common `prepare_item_for_response` bits to the shared class
to make the code DRYier.

`Reports/Controller` differs, so its children will still contain redundant code.
2023-04-28 16:41:20 +02:00
Siddharth Thevaril 9f277ad7f5 remove echo 2023-04-28 19:32:49 +05:30
Tomek Wytrębowicz 9126db1abb Move common `get_collection_params` bits to the shared class
to make the code DRYier
2023-04-28 15:40:30 +02:00
louwie17 411a3e600a
Remove dot in images description (#37983) 2023-04-28 05:46:33 -03:00
RJ d15f62241f
dev: added xstate inspector toggling (#38022)
* dev: added xstate inspector toggling

* dev: added eslint-plugin-xstate
2023-04-28 15:30:52 +08:00
Tomek Wytrębowicz 7a2a80bf81 Move `X-WP-Total` headers logic to a shared class,
to DRY - remove duplicated code
2023-04-27 15:28:30 +02:00
Matt Sherman 72551f170a
Show correct variations count when generating a single variation (#37876) 2023-04-26 21:40:08 -04:00
Moon 3c2bae196b
Add navigation and progress-bar components for the new core profiler (#37741)
* add: core profiler scaffolding using xstate

* Add navigation and progress-bar components

* fix css lint error

* Update plugins/woocommerce-admin/client/core-profiler/components/navigation/woologo.tsx

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Update plugins/woocommerce-admin/client/core-profiler/components/progress-bar/progress-bar.tsx

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

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

Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>

* Import HTMLAttributes

* Remove var from __ function

* Make progress bar color configurable

* Destruct props directly in the function and use const to define the comp

* Refactor fillerStyles

* Use woocommerce prefix for classnames

* Use inherit for display -- initial did not work properly

* Fix css lint error

* Remove unused WooLogo var

* Use named export

* Fix js style

* Add changelog

* Fix broken tests

---------

Co-authored-by: rjchow <me@rjchow.com>
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-04-26 17:27:53 -07:00
Abdalsalaam Halawa 704ad2832a Limit the number of products that are listed in the held stock note. 2023-04-27 00:09:43 +02:00
Paul Sealock 64c2526b98
Update WooCommerce support policy to L-1 (#37970) 2023-04-27 08:41:31 +12:00
Leif Singer dc88812e90
Update stable tag to 7.6.1 (#38006) 2023-04-26 17:44:55 +02:00
Corey McKrill ddc94fc59f
Fix/36785 Clear floats after Product Summary in 2023 theme (#37877)
Ensures that sections like related products and upsells don't wrap around the product image if there's no product description.

Fixes #36785
2023-04-26 06:28:55 -07:00
Tomek Wytrębowicz c924b21c84 Remove `$rest_base` from `…\API\Reports\Controller` as it is defined in its parent `WC_REST_Controller` 2023-04-26 14:44:20 +02:00
Matt Sherman e81f8ae88f
Update AdvancedFilters to use createInterpolateElement instead of interpolateComponents (#37967) 2023-04-26 06:58:14 -04:00
Joel Thiessen 6f7eeeaf49
Refactoring LayoutContext and implementing with product editor (#37720) 2023-04-25 15:17:33 -07:00
Ron Rennick e849ff002f
Fix #36664 (#37916) 2023-04-25 18:57:13 -03:00
Christopher Allford c99a1eb633
Fixed Beta Tester TSConfig (#37841)
All of our TS projects need this to avoid pulling conflict types
from higher `node_modules` directories.
2023-04-25 13:20:04 -07:00
Ron Rennick dec3e66410
Change from using a `figure` to using a `div` around the single product image (#37853) 2023-04-25 17:05:31 -03:00
Ron Rennick c7335b2070
Add changelog file 2023-04-25 17:01:40 -03:00
Jorge A. Torres 226af5017d
Fix "Out of stock threshold" when filed value is empty - Fix/issue 36960 (#37855) 2023-04-25 15:36:43 -03:00
Joshua T Flowers 48af8c1333
Add the product description block and callbacks for the IframeEditor (#37852)
* Add onChange and onClose callbacks to IframeEditor

* Add description block

* Add initial blocks to iframe editor

* Update button text when description already exists

* Remove unused editorStyle block property

* Debounce onChange callback

* Add changelog entry

* Handle PR feedback

* Fix up export after rebase
2023-04-25 11:05:25 -07:00
Ravinder Kumar f58ea73702
use of page.fill() in variable product e2e tests (#37854)
* tweeak: use locator to fill values

* chore: log change

* format: improve code formatting

* chore: remove locator refference from variable name

* Update create-variable-product.spec.js

Specify last element with selector

* Update create-variable-product.spec.js

Different selector

* Update create-variable-product.spec.js

Third time is a charm.

* Update create-variable-product.spec.js

.second doesn't exist.  User .nth

---------

Co-authored-by: Jonathan Lane <lanej0@users.noreply.github.com>
2023-04-25 09:45:33 +02:00
Sam Seay 7cbc3811d8
Update monorepo to pnpm 8 and Node to 16.14 (#37915) 2023-04-25 18:49:30 +12:00
Paul Sealock 99fd4a1e09
Delete changelog from cherry picked commit from 37890 (#37946)
remove changelog from cherry picked commit
2023-04-25 08:38:15 +12:00
Jorge A. Torres 4ae4e15777
Plugin installer version 2 (#37753) 2023-04-24 14:44:13 -03:00
Maikel David Pérez Gómez fb7e68a83d
Track stock quantity for this product should be disabled when Enable stock management within settings is disabled, and enabled otherwise (#37957)
* Track stock quantity for this product should be disabled when Enable stock management within settings is disabled, and enabled otherwise.

* Add changelog files
2023-04-24 13:42:45 -04:00
Denis Dvali d428a51606 Fix warnings "PHP Deprecated: Creation of dynamic property". 2023-04-24 21:12:53 +04:00
Matt Sherman 2ab11a7236
Analytics: Fix update_registered_customer when invalid user_registered value (#37907) 2023-04-24 10:12:48 -04:00
nigeljamesstevenson c038f22c6d
Fix URL and assertions in merchant/add-order perf tests (#37719) 2023-04-24 09:35:24 +01:00
Leif Singer 0fd5224f78
remove unused deasync dependency (#37821) 2023-04-24 09:37:40 +02:00
RJ f0109e89ac
add: new core profiler scaffolding in xstate (#37628)
* add: core profiler scaffolding using xstate

* address review feedback and questions

* changed path to use setup-wizard

* default new core-profiler feature flag to false
2023-04-24 10:08:24 +08:00
github-actions[bot] e60d251cd0
Delete changelog files based on PR 37927 (#37944)
Delete changelog files for 37927

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-04-24 11:19:36 +12:00
github-actions[bot] 5c98b1c7a8
Delete changelog files based on PR 37818 (#37826)
Delete changelog files for 37818

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-04-24 10:05:08 +12:00
github-actions[bot] ecc4588ffc
Delete changelog files based on PR 37827 (#37874)
Delete changelog files for 37827

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-04-24 10:04:58 +12:00
Joel Thiessen 3c5a96712a
Adding Stock status to inventory tab and toggle block (#37906) 2023-04-21 14:49:34 -07:00
Maikel David Pérez Gómez 1f2d735d0c
Update current block names to reflect use case and avoid conflicts (#37851)
* Change woocommerce/product-name to woocommerce/product-name-field

* Change woocommerce/product-summary to woocommerce/product-summary-field

* Change woocommerce/product-pricing to woocommerce/product-pricing-field

* Change woocommerce/product-radio to woocommerce/product-radio-field

* Change woocommerce/product-images to woocommerce/product-images-field

* Fix product name block invalid class name

* Move woocommerce/product-section to blocks folder

* Move woocommerce/product-tab to blocks folder

* Move woocommerce/product-collapsible to blocks folder

* Organize block registration, imports and styles

* Add changelog files

* Change woocommerce/product-category to woocommerce/product-category-field

* Change woocommerce/product-checkbox to woocommerce/product-checkbox-field

* Change woocommerce/product-inventory-email to woocommerce/product-inventory-email-field

* Change woocommerce/product-sku to woocommerce/product-sku-field

* Register woocommerce/product-schedule-sale-fields in server side

* Register woocommerce/product-track-inventory-fields in server side

* Fix invalid reference in tabs tests
2023-04-21 16:26:53 -04:00
Joel Thiessen 87da63eb3a
Moving section icon svgs to assets folder and loading by URL (#37869) 2023-04-21 11:53:06 -07:00
Barry Hughes afe226d573
Fix bulk sale price update (#37812) 2023-04-21 11:43:30 -07:00
louwie17 07fc512429
Fix/37785 cash on delivery not showing (#37927)
* Mkae sure the date_column_name default matches that of stats

* Add changelog

* Fix test
2023-04-21 14:44:58 -03:00
Barry Hughes bf8d19e35a
Create default pages in store locale language (#37795) 2023-04-21 10:35:53 -07:00
Gan Eng Chin b44eca1c59
Fix wrong file name in error message in `update-wp-env.php` (#37891) 2023-04-22 00:41:48 +08:00
TarekNabil 5d82365ec1 Fix #36664 2023-04-21 18:29:44 +02:00
“Chris e30983ef59 Add changelog 2023-04-21 19:07:32 +03:00
“Chris ddb399b4aa Add order-pagination button class 2023-04-21 19:03:28 +03:00
“Chris 43bd317797 Add no-downloads button class 2023-04-21 19:03:04 +03:00
“Chris 65bf73835d Add order-again button class 2023-04-21 19:02:48 +03:00
Ron Rennick 78fce9af35 more filter PHPDocs 2023-04-21 12:59:59 -03:00
Barry Hughes ab13304b4e
Adjust changelog. 2023-04-21 08:54:10 -07:00
Matt Sherman 8c5053a385
Hide stock status field if stock management is enabled (#37890) 2023-04-21 11:13:03 -04:00
Ron Rennick e524e959d6 add filter PHPDocs 2023-04-21 10:51:46 -03:00
faisal-alvi a4c88e90b1 templates version bump to 7.8.0 2023-04-21 14:05:15 +05:30
faisal-alvi 70cbbeebd4 updating the product name var 2023-04-21 14:02:35 +05:30
louwie17 e88152ff3c
Add category field block (#37295)
* Add initial category block

* Add changelogs

* Add label to font family for block editor and fix template

* Fix rebase conflict and add content role

* Some styling changes for the category field

* Move category block to blocks folder and fix merge conflict.

* Address some styling issues, and update keywords

* Fix css lint error
2023-04-21 05:10:35 -03:00
mujuonly 9cfd58ad15
Fix: variations are counted as products in import message of number of products imported (#37829)
Co-authored-by: mujuonly <muju.only@gmail.com>
Co-authored-by: barryhughes <3594411+barryhughes@users.noreply.github.com>
Co-authored-by: Nestor Soriano <konamiman@konamiman.com>
2023-04-21 08:22:08 +02:00
Tyler Paulson c19a42398b
Prevent PHP Error in Customers API Endpoint (#37860)
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2023-04-21 08:14:24 +02:00
TarekNabil e92b607081 Fix #36664 2023-04-21 08:06:06 +02:00
Paul Sealock 99c47835b6
Update php version requirement in readme to same as main file, 7.3 (#37780)
* fix PHP version in readme to same as main file. 7.3

* changelog
2023-04-21 09:52:18 +12:00
Darin Kotter 1fa28125e3
Add back figure CSS to support sites that may have overridden the single image template 2023-04-20 13:16:24 -06:00
“Chris 3a467bb6a0 Add changelog 2023-04-20 20:59:41 +03:00
Ron Rennick 7073fea067
Add REST API Products featured image (#37815) 2023-04-20 14:58:03 -03:00
“Chris e10fb35731 Fix tt3 attributes table 2023-04-20 20:57:24 +03:00
Ron Rennick 2ece044c6c
add/27803 add support for minlength in the template (#37840) 2023-04-20 14:09:04 -03:00
Gan Eng Chin 7a63646a0f
Add changelog. 2023-04-21 00:11:51 +08:00
Gan Eng Chin 1cadb3641a
Fix wrong file name in error message in update-wp-env.php. 2023-04-21 00:09:42 +08:00
Abdalsalaam Halawa eab77938c0 Add order note as a list of products 2023-04-20 17:29:35 +02:00
Shadi Manna 71fbc5fb59 Add PHPCS ignore missing hook comment 2023-04-20 15:50:02 +02:00
Shadi Manna f7bd95901b Remove white space 2023-04-20 15:34:58 +02:00
Shadi Manna 7ae2e66e58 Remove the default text in "Additional content" being sent for all emails when the field is empty for Admin New Order email 2023-04-20 15:13:28 +02:00
bartech 0da64a1eea Move filter to Option Sanitizer class 2023-04-20 11:12:48 +02:00
faisal-alvi bf83d61af9 add a changelog 2023-04-20 14:36:59 +05:30
faisal-alvi bfb1f08d2a translation hint for the product name 2023-04-20 14:21:18 +05:30
faisal-alvi 158748a6d4 escape the $product_name 2023-04-20 14:20:31 +05:30
Csaba Maulis 53276e786d
Fix CS 2023-04-20 16:38:00 +08:00
faisal-alvi 7d4a7ca883 update text: Remove %s from cart 2023-04-20 14:03:38 +05:30
Joel Thiessen 7023a80937
Adding global product block editor styles (#37805)
* Removing unecessary class

* Organizing editor styles

* Tweaking global fonts

* Correcting section spacing and adding divider

* Adding header styles

* Refactoring block editor styles

* Tweaks to spacing

* Adding changelogs

* Removing uneeded styles

* Fixing colors and link decoration

* Unifying error styles
2023-04-20 05:21:23 -03:00
Csaba Maulis 48d8bec2e3
Add CRUD tests 2023-04-20 15:48:23 +08:00
Csaba Maulis 46dceffece
Implement new featured field check
Internal logic:

- If the featured field is absent from all image objects in the request, set the first image in the array to featured.
- If the featured field is present in all image objects, we respect the value and set the featured image accordingly.
- If the featured field is absent from some image object, we set the featured image based on whether a true value exists; otherwise, we set the first image as featured.
- if multiple images have the featured field set to true, return a new 400 bad request response..
2023-04-20 15:48:07 +08:00
Siddharth Thevaril b1a87d0c16 update version number 2023-04-20 11:13:54 +05:30
Shojib khan ea85b1843c Add global variable to prevent error 2023-04-20 11:35:42 +06:00
Csaba Maulis 135d6f2b27
Add featured field to the schema with tests 2023-04-20 13:14:02 +08:00
Alexandre Lara 9a17d284c8
Reduce padding within notices for smaller screens in the Twenty Twenty One theme (#37862) 2023-04-20 00:39:17 -03:00
Darin Kotter 5620b39b44
Make selector more specific to avoid use of important. Use existing variables for padding calculations 2023-04-19 19:47:56 -06:00
Ravinder Kumar 2239270edd
Fix: Use `waitUntil` instead of `waitForLoadState` in page.goto() (#37831)
* fix: use correct argument in playwright test

use waitUntil instead of waitForLoadState.

* chore: add log for change

* chore: revert changes in e2e test

* Update analytics-overview.spec.js

Remove waits, failing on CI

---------

Co-authored-by: Jonathan Lane <lanej0@users.noreply.github.com>
2023-04-19 16:24:25 -07:00
Abdalsalaam Halawa 70c782fa63 fix notes array 2023-04-20 01:10:16 +02:00
Abdalsalaam Halawa 1109f7147a Add comment to the translatable string 2023-04-20 00:55:56 +02:00
Abdalsalaam Halawa 3b9be84659 products held stock notes variable rename 2023-04-20 00:55:04 +02:00
barryhughes 710bc8a8af Relocate changelog file. 2023-04-19 15:38:45 -07:00
Darin Kotter 924c87173a
Bump template version number. Remove a few lines of CSS that aren't needed anymore 2023-04-19 16:21:39 -06:00
Barry Hughes 83e6b55642
Ensure the remove icon shows properly on smaller screens when using the Twenty Twenty One theme (#37859) 2023-04-19 15:06:52 -07:00
Darin Kotter 67eb555265
Add changelog file 2023-04-19 15:27:51 -06:00
Darin Kotter 472a6aa7e1
Modify styles slightly for notices on smaller screens 2023-04-19 15:26:58 -06:00
Darin Kotter 3c681b9f27
Add changelog file 2023-04-19 14:25:37 -06:00
Darin Kotter 74350a12e7
Fix an issue on the Twenty Twenty One theme where the remove button doesn't show up properly when more than one product is in the cart 2023-04-19 14:24:41 -06:00
Alejandro Iglesias 1a9439f7db add changelog 2023-04-19 16:37:16 -03:00
Alejandro Iglesias aaf089168f Do not call login if user is already logged in 2023-04-19 16:37:16 -03:00
bartech d32d08619b Change cast from absint to int for product stock quantity 2023-04-19 20:42:02 +02:00
Corey McKrill 8ac3c29937
[HPOS] Fix regression in supporting nested date query arguments (#37827) 2023-04-19 11:15:18 -07:00
bartech dda5fe9b1d Cast woocommerce_notify_no_stock_amount value to absint on save 2023-04-19 20:12:28 +02:00
bartech 224284051b Add changelog entry 2023-04-19 19:53:55 +02:00
bartech c4d1e55126 Fix notify_no_stock_amount param type in tests 2023-04-19 19:40:44 +02:00
bartech d2aaa39645 Cast stock qty and no stock amount to int before comparing 2023-04-19 19:39:51 +02:00
Barry Hughes 4cfb41e7e7
Fix decimal points for SEK, HUF and CZK currencies (#37834) 2023-04-19 10:30:59 -07:00
Corey McKrill c772d8ac9e
fix/35860: Adds missing aria-label and tabindex HTML attributes to the Help tip element. (#37808)
Fixes #35860
2023-04-19 10:12:03 -07:00
Darin Kotter be56376571
Add changelog file 2023-04-19 10:51:03 -06:00
Darin Kotter ea22a5fb78
Change from using a figure tag to using a div tag to wrap the single product image. Adjust styles to account for this change 2023-04-19 10:46:41 -06:00
Shadi Manna 230ff742bf Remove the default text in "Additional content" being sent for all emails when the field is empty 2023-04-19 18:27:27 +02:00
Jorge A. Torres 9aa4fd6bd2
fix/28214 Backorders have a wrong availability on application/ld+json (#37837) 2023-04-19 10:41:39 -05:00
Luthfi Bintoro e0049fe1d2
Fix/issue 36668: Shows warning only when the variation price is empty (#37817)
* #36668 - no warning shown for zero price

* add changelog
2023-04-19 11:27:36 -04:00
Christopher Allford 1cfd8a1b53
Enforce LF Line Endings (#37843)
Since it's possible that people may be cloning the repository in
Windows, we need to enforce consistent line endings.
2023-04-19 08:26:19 -07:00
bao 4dd38a4bad improve 2023-04-19 21:35:22 +07:00
Faisal Alvi da0d28ed24
Update plugins/woocommerce/changelog/fix-37599
Co-authored-by: Thomas Roberts <5656702+opr@users.noreply.github.com>
2023-04-19 19:37:30 +05:30
bao f2bc9b6d29 add support for minlenght in the template 2023-04-19 20:28:55 +07:00
Ahmed e5654f62b2 change more occurences of num_decimals 2023-04-19 13:25:59 +00:00
Matt Sherman 1dd8e05a68
Fix checkbox label styling on product page tabs (#37791)
* Do not switch description to block if used for an input

* Changelog
2023-04-19 10:19:48 -03:00
bao c5285ec2d8 fix code style 2023-04-19 20:15:57 +07:00
faisal-alvi 32aaf1ca97 Clear floats after Product Summary in 2023 2023-04-19 18:37:51 +05:30
Abdalsalaam Halawa 66dcd19f0d change note message 2023-04-19 14:46:40 +02:00
bao 4f59b717d4 fix stock status is not correct in JSON structure data if product is onbackorder 2023-04-19 19:36:38 +07:00
Ahmed a8522ffa85 add changelog of changes 2023-04-19 12:30:40 +00:00
Ahmed ef58a55b7d Fix decimal points in tests for SEK, HUF, and CZK 2023-04-19 12:26:26 +00:00
Ahmed b4bea41361 Fix decimal points for SEK, HUF, and CZK 2023-04-19 12:26:09 +00:00
Abdalsalaam Halawa 45ec163aa7 add changelog 2023-04-19 14:24:20 +02:00
Jorge A. Torres e20e1ca143
Fix/37600 Remove `aria-disabled` from `Update Cart` button (#37820) 2023-04-19 07:19:51 -05:00
nigeljamesstevenson cbc188ce84
Fix Playwright E2E tests documentation as some steps to set up the local environment and run E2E tests were not accurate (#37823) 2023-04-19 13:10:58 +01:00
Abdalsalaam Halawa dbac9ff4d0 Add order note to display held stock inventory to provide more visibility to merchants. 2023-04-19 14:03:57 +02:00
Siddharth Thevaril f3eded792f
fix/33389: add `refunded_payment` property in the create refund response (#37816) 2023-04-19 14:03:05 +02:00
Alex López 625567370d Add suggestions from PR review to the E2E Playwright tests documentation. 2023-04-19 13:26:30 +02:00
nigeljamesstevenson 950bf937d7
Skip the `review-testing-instructions` workflow on PR's from community contributors (#37813) 2023-04-19 12:19:54 +01:00
nigeljamesstevenson 9260e81f3d
Fix broken link to WSL setup instructions (#37819) 2023-04-19 12:18:41 +01:00
faisal-alvi 4696721e8c adding changelog 2023-04-19 16:22:29 +05:30
faisal-alvi edb54536b1 Fix/37599 Add Product Name in the `aria-label` 2023-04-19 16:21:20 +05:30
Vedanshu Jain 26e827eb3e Add null protection. 2023-04-19 16:04:34 +05:30
Faisal Alvi e5c306db3d
Update fix-37600 2023-04-19 15:48:02 +05:30
Vedanshu Jain f58016e7d7 Add changelog. 2023-04-19 15:44:09 +05:30
Albert Juhé Lluveras 25dd44aa06
Update WC Blocks to 10.0.2 (#37818) 2023-04-19 12:08:14 +02:00
Vedanshu Jain 3233bb2232 Fix regression in supporting nested date query arguments. 2023-04-19 15:36:08 +05:30
Alex López f792e71662 Fix E2E Playwright documentation as some steps to set up the local environment and run E2E tests were not accurate. 2023-04-19 11:46:33 +02:00
faisal-alvi cb1baac1c5 adding a changelog 2023-04-19 14:38:27 +05:30
faisal-alvi f33283306e Remove `aria-disabled` from `Update Cart` button 2023-04-19 14:30:23 +05:30
rodelgc a9bac53282 Fix link back to the main readme 2023-04-19 16:56:13 +08:00
rodelgc 7cba955617 Include Ubuntu 22.04 2023-04-19 16:46:00 +08:00
Csaba Maulis 7c9ae871c3
Add changelog entry 2023-04-19 15:52:54 +08:00
Siddharth Thevaril 410490e035
Update plugins/woocommerce/client/legacy/js/admin/meta-boxes-product.js
Co-authored-by: Chi-Hsuan Huang <chihsuan.tw@gmail.com>
2023-04-19 13:19:17 +05:30
Csaba Maulis 0ae48c647b
Add `featured` field to the images array for Product REST API 2023-04-19 15:48:32 +08:00
rodelgc f1d72977c1 Add if condition 2023-04-19 15:32:52 +08:00
louwie17 b42da82e50
Update/34885 category field in product editor (#36869)
* Add initial custom meta box for product categories

* Make use of TreeSelectControl

* Update classnames

* Display selected items and sync with most used tab

* Always show placeholder and remove checklist container

* Reactify category metabox tabs

* Add create new category logic

* Remove unused markup

* Fix saving of empty category list

* Add callback when input is cleared as well

* Some small cleanup and refactoring.

* Add changelog

* Fix tree creation and style enqueue

* Auto fix lint errors

* Fix linting errors

* Fix css lint errors

* Add 100 limit, and address some PR feedback

* Fix some styling and warnings

* Remove unused code

* Address PR feedback

* Fix lint error

* Fix lint errors

* Address PR feedback

* Fix lint error

* Minor fixes and add tracking

* Add debounce

* Fix lint error

* Allow custom min filter amount and fix menu not showing after escaping input

* Allow single item to be cleared out of select control

* Fix bug where typed values did not show up

* Fix some styling issues

* Allow parents to be individually selected

* Address PR feedback and add error message

* Add changelogs

* Fix saving issue

* Add client side sorting and stop clearing field upon selection

* Update changelog

* Create feature flag for async product categories dropdown

* Fix lint errors

* Fix linting
2023-04-19 04:28:18 -03:00
Siddharth Thevaril 938295093a add changelog 2023-04-19 12:29:54 +05:30
Siddharth Thevaril 4c7b858268 replace title html attribute with aria-label 2023-04-19 12:28:40 +05:30
Akshaya Rane 51805cd565 Added numberic check for Regular price 2023-04-19 12:19:07 +05:30
Siddharth Thevaril a3a2b35253 add changelog 2023-04-19 10:59:03 +05:30
rodelgc 70d50e3336 Add changelog 2023-04-19 13:23:36 +08:00
rodelgc 3b17621e97 Initial changes 2023-04-19 13:21:54 +08:00
Siddharth Thevaril 6c06aaa5fa add arial0label and tab-index to help tip 2023-04-19 10:38:44 +05:30
github-actions[bot] ad68685b79
Delete changelog files based on PR 37790 (#37801)
Delete changelog files for 37790

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-04-19 11:35:47 +12:00
github-actions[bot] f6df417ca2
Delete changelog files based on PR 37738 (#37803)
Delete changelog files for 37738

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-04-19 11:35:37 +12:00
github-actions[bot] ffa482a921
Delete changelog files based on PR 37662 (#37788)
Delete changelog files for 37662

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2023-04-19 11:35:25 +12:00
Barry Hughes 4ec741f7b8
Increase PHPUnit Test Environment Resiliency (#37792) 2023-04-18 13:04:37 -07:00
Nathan Silveira 7c6e6a67dc
Re-add woocommerce_after_product_attribute_settings hook (#37738) 2023-04-18 16:33:35 -03:00
Corey McKrill 1650489480
Replace hardcoded notices with the correct wp_print_notice function (#37514)
Switches hardcoded notices over to the correct functions and makes it possible to modify the notices via template overrides. Additionally, a small modification to `wp_print_notice` was added so that the notice could be returned as a string instead of rendered. This makes it more flexible.
2023-04-18 12:07:23 -07:00
Shojib khan fd9b709de4 Add changelog 2023-04-18 23:56:21 +06:00
Fernando Marichal 2d87da87de
Fix disabled "Save attributes" button when editing a product (#37790)
* Fix disabled save button

* Add changelog
2023-04-18 14:53:16 -03:00
Joshua T Flowers ebe879d5dd
Add IframeEditor component to product editor (#37570)
* Add initial modal editor

* Add in iframe editor styles

* Convert components to TS

* Sync dependencies

* Remove unused components and props

* Set min height to avoid jumpiness during resize

* Fix up private APIs dependency version

* Update ModalEditor name to IframeEditor

* Add changelog entry

* Remove IframeEditor from details block

* Update frozen lock file

* Add support for missing gutenberg assets function

* Fix lock file after rebase

* Use default editor settings when none are provided

* Remove currently unused editor styles

* Remove unused private apis package

* Fix php lint errors

* Remove unused import

* Pin keycodes version

* Remove another unused import from testing

* Add WC changelog entry
2023-04-18 10:52:28 -07:00
Shojib khan 76d7c356c1 Create default pages in store locale language 2023-04-18 23:49:28 +06:00
Christopher Allford 38e91e2406 Style Fixes 2023-04-18 10:19:45 -07:00
Christopher Allford 5ca9c47563 Fixed Broken Cache Test When Path Tokenized
Since the template path is tokenized, it's possible that in different
testing environments the contents of the cache will be different
than the template file path on the filesystem. We can make sure
they are the same by untokenizing the cached path before the
assertion.
2023-04-18 10:13:17 -07:00
Christopher Allford c5cec0fe30 Revert "Added WIP `wp-env` Script"
This reverts commit 096dfc6ebc.
2023-04-18 09:59:40 -07:00
Christopher Allford 94f0ffa654 Fixed Incorrect Decorated Property In Tests
For some reason this was causing failures in `wp-env` but not CI.
2023-04-18 09:59:24 -07:00
Mike Jolley e8fcfbb82c Bump templates to 7.8.0 2023-04-18 17:10:19 +01:00
Christopher Allford 096dfc6ebc Added WIP `wp-env` Script
This should be removed before the PR is reviewed!
2023-04-18 09:04:01 -07:00
Christopher Allford 2f3ffa1ced Changelog 2023-04-18 09:03:02 -07:00
Christopher Allford ec92b4c119 Isolated Email Logger Tests 2023-04-18 09:00:55 -07:00
nigeljamesstevenson 4a6b5ac0cd
skip k6 api order RUD tests on non-existant order when C test fails (#37739) 2023-04-18 16:58:44 +01:00
Barry Hughes 4504c5a8a1
Add links to the main project README.md and DEVELOPMENT.md guides. (#37682) 2023-04-18 07:36:07 -07:00
Denis Dvali 56b63ada60 Changelog. 2023-04-18 18:04:50 +04:00
Denis Dvali a5b417b448 Linting. 2023-04-18 17:56:09 +04:00
Thomas Roberts e9c400c7b6
Update WooCommerce Blocks package to 10.0.1 (#37662)
* Update WC Blocks to 10.0.0

* Update WC Blocks to 10.0.0

---------

Co-authored-by: Luigi <gigitux@gmail.com>
2023-04-18 15:21:00 +02:00
Mike Jolley 22c5dbb89d phpcs rules 2023-04-18 14:16:48 +01:00
Mike Jolley 5a7be6f3ae Append cart-empty class to notice div 2023-04-18 14:11:02 +01:00
Denis Dvali 26410aef0a Linting. 2023-04-18 16:42:56 +04:00
Mike Jolley b800a429b8 Target inner div within notices in tests 2023-04-18 12:22:10 +01:00
Mike Jolley 73fd1a5bda Update cart empty selector 2023-04-18 12:22:10 +01:00
Mike Jolley 2cbbbbbaba Fix indents for phpcs 2023-04-18 12:22:10 +01:00
Mike Jolley 93665bd41e phpcs fixes 2023-04-18 12:22:10 +01:00