Commit Graph

50188 Commits

Author SHA1 Message Date
Nima 1687416413 Add MarketingCampaignType class
This allows defining campaign types for each marketing channel.
2023-01-03 14:54:03 +00:00
Nima 20efcfb804 Change API access permission 2023-01-03 14:05:27 +00:00
Nima 264c92a52f Change API access denied authorization code 2023-01-03 11:27:31 +00:00
Nima 4d6ef8ece3 Unregister all channels on test tear down 2022-12-28 21:05:27 +00:00
Nima 130b2a94c6 Add `unregister_all` method
To allow unregistering all marketing channels.
2022-12-28 21:05:09 +00:00
Nima 5913a4f489 Merge branch 'feature/34548-multichannel-marketing-backend' into feature/34556-marketing-api 2022-12-28 17:29:31 +00:00
Nima Karimi 3fb90016dc
Multichannel Marketing - Changes to the marketing classes (#36012)
* Rename `get_errors_no` to `get_errors_count`

* Remove the validation for marketing channel slugs

Do not check if the marketing channel's slug exists in the list returned by WooCommerce.com Recommendation API. This allows any third-party extension to register as a marketing channel.

* Revert InstalledExtensions

The InstalledExtensions class will be used by the previous generation of the Marketing dashboard (if the user has not enabled the new "Marketing" feature); therefore, it's best to restore it to the original code.

* Fix code style

* Translate Exception message

* Remove doc references to a predetermined list of marketing channels

Co-authored-by: Nima <nima.karimi@automattic.com>
2022-12-28 20:25:37 +03:00
Nima 4ef2d5781f Merge branch 'feature/35956-mcm-library-changes' into feature/34556-marketing-api 2022-12-28 13:41:17 +00:00
Nima 4e192e71b7 Merge branch 'feature/34548-multichannel-marketing-backend' into feature/35956-mcm-library-changes 2022-12-28 13:40:31 +00:00
Nima a9e8dd0e1c Merge branch 'trunk' into feature/34548-multichannel-marketing-backend 2022-12-28 13:39:42 +00:00
Nima f7be32dc9b Remove doc references to predetermined list of marketing channels 2022-12-28 13:30:48 +00:00
Nima 44042634e6 Translate Exception message 2022-12-28 13:28:43 +00:00
Nima e82feb21da Add unit tests for `marketing/campaigns` API 2022-12-28 13:27:19 +00:00
Nima 817ca2a96f Add `marketing/campaigns` API 2022-12-28 13:27:10 +00:00
Nima 200156d735 Add unit tests for `marketing/channels` API 2022-12-28 13:26:52 +00:00
Nima a1468ec739 Add `marketing/channels` API 2022-12-28 13:26:40 +00:00
Nima 086ce8f48a Add unit tests for `marketing/recommendations` API 2022-12-28 13:26:04 +00:00
Nima 677416fcf2 Add `marketing/recommendations` API 2022-12-28 13:25:51 +00:00
Nima 7dcdbd871e Add methods to filter the recommended marketing channels and extensions 2022-12-28 13:23:42 +00:00
Nima 6415f3f911 Add channel property to MarketingCampaign 2022-12-28 13:23:26 +00:00
rodelgc 3daeac9a69
Migrate E2E daily shopper tests (#35873)
Enable shopper E2E tests on Daily smoke test workflow
2022-12-28 18:28:17 +08:00
Chi-Hsuan Huang 8c3f06c452
Fix "Save changes?" modal saves the options after selecting the 'Discard' option (#36160)
* Tweak save change modal padding

* Fix obw save change and add e2e tests

* Add changelog

* Fix product_types step
2022-12-28 16:23:16 +08:00
Chi-Hsuan Huang 9f0d718a33
Cleanup product task experiment (#35950)
* Cleanup product task experiment

* Rename experimental-products -> products

* Add changelog

* Clean up product task experiment in woo/onboarding

Remove product variant

* Rename experimental-import-products -> import-products

* Clean up OnboardingTasks.php

* Add changelog

* Remove experimental-products-task feature flag
2022-12-28 16:08:54 +08:00
Miguel Pérez Pellicer b133ad98c7
Add noDataLabel into Table component allowing to customise No Data Label message. (#36124)
* Add noDataLabel property to allow No Data Message customization

* Adding changelog

* Update variable name

* Add story book use case
2022-12-28 12:31:35 +07:00
Fernando Marichal f5e23c329c
Fix edit attribute modal terms list (#36186)
* Fix `EditAttributeModalProps` terms list

* Add changelog

* Fix `AttributeField` continuos hydration

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-12-27 15:38:08 -03:00
Maikel David Pérez Gómez 8fc2818e28
Add edit button to variations list items (#36079)
* Add edit button to variations list items

* Add comment feedbacks
2022-12-27 15:22:52 -03:00
Joshua T Flowers 5137973d91
Add product variation header actions and persistence (#36155)
* Fix up updateItem query in CRUD data store

* Add product variation form header

* Fix gaps for variation and parent product actions

* Hide preview button on mobile for product variations

* Add changelog entry

* Add data package changelog entry

* Fix lint errors
2022-12-27 10:21:32 -08:00
nigeljamesstevenson 7d32d553cf
update/api-core-tests guide for writing tests (#35978)
* api-core-tests guide for writing tests

* Update plugins/woocommerce/tests/api-core-tests/README.md

Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>

* Update plugins/woocommerce/tests/api-core-tests/README.md

Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>

* Update plugins/woocommerce/tests/api-core-tests/README.md

Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>

* Update plugins/woocommerce/tests/api-core-tests/README.md

Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>

* Update plugins/woocommerce/tests/api-core-tests/README.md

Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>

* Update plugins/woocommerce/tests/api-core-tests/README.md

Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>

* updates after PR review

* updates after review

* updates after review

* updates after review

* readme update

* add reference to authentication in the quick start guide

Co-authored-by: Greg <71906536+zhongruige@users.noreply.github.com>
2022-12-27 09:27:39 +01:00
Roy Ho d0e143a8bc
Dev/create woo extension/php cleanup (#36017)
* Clean up

* Add changelog
2022-12-26 07:07:11 -08:00
Gan Eng Chin 6382b4997c
Make `Table` component accept `className` prop (#36151) 2022-12-26 20:31:40 +08:00
Ilyas Foo 61ee3eb46a
Remove redundant Pinterest listing from marketing task (#36158)
* Remove redundant pinterest plugin shown in marketing task
2022-12-26 12:17:04 +08:00
Matt Sherman a9b46d51b5
Add Options section to new product experience (#35910)
* Support passing in filter and new attribute properties to AttributeField

* Changelog

* Pass addButtonLabel as prop

* Add OptionsSection to options tab

* Refactor more to create Attributes and Options fields

* Refactor a couple of things

* Refactor globalAttributeHelperMessage

* Remove `Used for filters` checkbox

* Remove `hydrationComplete`

* Add subtitle to empty state component

* Fix 'Add option' button

* Fix tests

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
2022-12-23 11:57:28 -08:00
Maikel David Pérez Gómez 5b3b5dab59
Truncate attribute option name to a max of 32 chars in variations list (#36134)
* Truncate attribute option name to a max of 32 chars in variations list

* Use PRODUCT_VARIATION_TITLE_LIMIT to truncate attribute option names

* Fix up lint error

Co-authored-by: Joshua Flowers <joshuatf@gmail.com>
2022-12-23 11:29:44 -08:00
github-actions[bot] 8c2180e144
Delete changelog files based on PR 36125 (#36169)
Delete changelog files for 36125

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-12-24 07:56:48 +13:00
Paul Sealock 88280f2a5c
Update requires at least 5.9 in readme to same as woocommerce.php (#36170)
* requires at least to 5.9

* changelog
2022-12-24 07:56:22 +13:00
Maikel David Pérez Gómez dd94bb78ee
Add product variation image (#36133)
* Convert getCheckboxTracks into generic function because of a type mismatch

* Add image to product variation and export types

* Add single image field

* Integrate SingleImageField in variation details section

* Add changelog file

* Add comment suggestions

* Fix set image onFileUploadChange
2022-12-23 10:28:44 -08:00
Luigi Teschio ed6b0c841b
Update WooCommerce Blocks to 9.1.3 (#36125)
* Update WooCommerce Blocks to 9.1.2

* Update WooCommerce Blocks to 9.1.3

* add results of composer update

* use assertNotSame

* Pin sebastian/comparator to 3.0.3

* Revert "add results of composer update"

This reverts commit 1be3a0fcec.

Co-authored-by: Paul Sealock <psealock@gmail.com>
2022-12-24 07:22:29 +13:00
Moon 52640de58a
Update country select control regex (#36159)
* Update regex to match country name or " - region "

* Add changelog

* Fix style
2022-12-22 21:30:50 -08:00
Maikel David Pérez Gómez bfa2d4f3a7
Product variation order should be persisted on save (#36109)
* Persist product variation order on product save

* Add batchUpdate to product variations datastore

* Add useVariationOrders hook to manage the ordering logic

* Add local ordering logic to variations field

* Persist variation orders on product save

* Add changelog file

* Add comments suggestions

* Add more comment seggestions
2022-12-22 16:01:51 -03:00
Joshua T Flowers 4b4fe7c227
Add product variation title to page header (#36085)
* Add method to get product variation title from data

* Conditionally add variation to page header

* Fix CRUD data store id query on selector

* Make getProductVariation calls and data types consistent to prevent multiple calls

* Add changelog entries

* Update product link type to avoid page refresh

* Expose function to truncate title to 32 character limit
2022-12-22 09:23:44 -08:00
github-actions[bot] 80ee44c45d
Update changelog.txt from release 7.2.2 (#36137)
* Prep trunk post release 7.2.2

* Update changelog.txt

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
Co-authored-by: jonathansadowski <jonathansadowski@users.noreply.github.com>
2022-12-22 10:43:58 -06:00
louwie17 60f2ced82b
Fix no email report on product filter (#35971)
* Make sure order total count uses distinct for order ids

* Add unit test for order count bug

* Add changelog

* Fix lint errors

* Fix lint errors
2022-12-22 10:13:44 -04:00
Fernando Marichal a9986fe75e
Product variations - Set fixed height for card (#36053)
* Add className prop to Sortable

* Add styles

* Add `rows` class

* Add changelogs

* Remove `row-#` class

* Fix min-height

* Set task list item min height

Co-authored-by: Fernando Marichal <contacto@fernandomarichal.com>
Co-authored-by: Joshua T Flowers <joshuatf@gmail.com>
2022-12-22 09:03:07 -03:00
Vedanshu Jain 34ac47969c
Add cherry-pick support for git merge strategy. (#35927)
* Add changelog.

* Add merge strategy support to cherry-picker tool.
2022-12-22 09:26:14 +05:30
github-actions[bot] 9ee2948954
Delete changelog files based on PR 36119 (#36127)
Delete changelog files for 36119

Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
2022-12-21 12:41:22 -06:00
Maikel David Pérez Gómez 1ab7a851cb
Reset variation form if a new variation is given (#36078) 2022-12-21 15:00:35 -03:00
Maikel David Pérez Gómez c7c0322163
Persist active tab on refresh (#36112) 2022-12-21 14:47:13 -03:00
louwie17 1e815be516
Fix product table dropdown on mobile (#36046)
* Only add top when product row is expanded.

* Add changelog
2022-12-21 04:11:40 -04:00
louwie17 309ed6303f
Make sure attribute term dropdown adheres to sort order setting (#36047)
* Make sure attribute term dropdown adheres to sort order setting of attribute

* Fix spacing

* Fix lint errors
2022-12-21 04:11:12 -04:00
Barry Hughes 679fac1bfa
Re-run the 7.2.1 state migrations when merchants update to 7.2.2. (#36119)
The wc_update_721_* functions were not guaranteed to succeed, because of a hardcoded prefix. We also could not depend on the async migration tasks persisting through to the 7.2.2 update.
2022-12-21 13:00:46 +05:30