Commit Graph

10161 Commits

Author SHA1 Message Date
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
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
“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
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
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
Siddharth Thevaril 9f277ad7f5 remove echo 2023-04-28 19:32:49 +05:30
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
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
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
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
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
Ron Rennick 7073fea067
Add REST API Products featured image (#37815) 2023-04-20 14:58:03 -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
Csaba Maulis 53276e786d
Fix CS 2023-04-20 16:38:00 +08:00
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