Gan Eng Chin
c6a95ae9bf
Rename callback props in IntroductionBanner to make them clearer.
2023-03-19 21:10:22 +08:00
Gan Eng Chin
6b75b5db38
Rename variables to make them clearer.
2023-03-19 20:58:54 +08:00
Gan Eng Chin
155211d77a
Remove unneeded Icon component.
2023-03-19 20:56:00 +08:00
Gan Eng Chin
65523e36dd
Fix spacing for close button in IntroductionBanner.
2023-03-19 20:54:34 +08:00
Gan Eng Chin
1b65be0a53
Fix useSelect dependency in useIntroductionBanner.
2023-03-19 20:50:37 +08:00
Gan Eng Chin
99c6ebff15
Remove the use of isOptionsUpdating in useIntroductionBanner.
...
isOptionsUpdating will return true for any option update, not just our option here. This causes issue as shown in demo video in https://github.com/woocommerce/woocommerce/pull/37110#discussion_r1130531104 .
We can just depend on getOption. When we update an option, it will be updated immediately in wp.data store before making API request to update the option in database (see c5564a15c1/packages/js/data/src/options/actions.ts (L44)
).
2023-03-19 20:38:20 +08:00
Gan Eng Chin
162d790a7a
Update option name and value to make it more indicative.
2023-03-19 20:16:04 +08:00
Gan Eng Chin
49253425b2
Specify dependency for useSelect in useIntroductionBanner.
...
Co-authored-by: Eason <eason.su.tw@gmail.com>
2023-03-19 20:12:09 +08:00
Gan Eng Chin
7cc8e065f9
Merge branch 'trunk' into feature/34904-marketing-introduction-banner
2023-03-19 20:09:23 +08:00
louwie17
345ad58919
Add product pricing block ( #37211 )
...
* Adding initial pricing block
* Have price block render in form
* Make sure price is loaded correctly and fix template rendering
* Make pricing block abstract and add list and sale price to template
* Add changelogs
* Revert changes in wc/data package
* Fix lint issues
* Fix type error
* Add styling
* Fix styling lint issues
* Revert config change missed in rebase
* Make use of base control help text for field info
* Allow additional callbacks for onFocus and onKeyUp
2023-03-17 14:03:10 -03:00
Maikel David Pérez Gómez
e370f25c0c
Add a product header component to the blocks interface ( #37152 )
...
* Add button and saving logic
* Add comment suggestions
* Add changelog files
* Add comment suggestions
* Set header title to product name if the name field is dirty otherwise the default title value
* Navigate to EditProductPage after creating the product succesfully
* Add get-header-title util and expose edited product name from useSelect
2023-03-17 13:21:15 -03:00
Gan Eng Chin
8070f65ec7
Make sure expression before `&&` is always boolean in React rendering in marketing page ( #37227 )
2023-03-17 22:56:35 +08:00
Chi-Hsuan Huang
9ea8b630ee
Remove cart2cart option from product task ( #37285 )
...
* Remove cart2cart option from add product task
* Remove cart2cart link test
* Add changelog
* Fix unit test
* Fix lint
2023-03-17 20:15:31 +08:00
RJ
23b79428f7
add: payment transaction processor images to payment recommendations ( #37230 )
2023-03-17 13:49:50 +08:00
RJ
04f34e9636
fix: payments recommendations pane wrong image size ( #37259 )
2023-03-17 12:29:19 +08:00
Gan Eng Chin
f769a8c6f5
Merge branch 'trunk' into feature/34904-marketing-introduction-banner
...
Conflicts:
plugins/woocommerce-admin/client/marketing/overview-multichannel/MarketingOverviewMultichannel.tsx
2023-03-17 01:21:13 +08:00
Matt Sherman
9c5e9b57bf
Move CES data store to @woocommerce/customer-effort-score ( #37252 )
2023-03-16 10:22:33 -04:00
Ahmed
3985242547
Add onboarding support for new countries in WCPay ( #36906 )
...
* Add new countries to WCPay
* changelog
* add new countries code to woocommerce admin
* Add the new countries to onboarding wizard fallback config file
---------
Co-authored-by: Anurag Bhandari <anurag@automattic.com>
2023-03-16 20:48:45 +08:00
Joshua T Flowers
77937dd8cb
Move usePreventLeavingPage to navigation package ( #36752 )
...
* Move usePreventLeavingPage to navigation package
* Rename usePreventLeavingPage to useConfirmUnsavedChanges
* Move imports to external dependencies
* Fix up history push overrides
* Add changelog entries
* Fix up rebase issues
* Update i18n dependency to wp-6.0
* Fix up lock file
* Remove unused imports
* Update lock file
* Remove self import for navUtils
2023-03-16 05:33:22 -03:00
RJ
1c9b3a58fe
fix: mobile app connection owner bug ( #37170 )
2023-03-16 16:20:36 +08:00
Chi-Hsuan Huang
f50abc724f
Remove accordion from "Other payment providers" in WC Pay Task ( #37205 )
...
* Remove accordion from Other payment providers in WC Pay Task
* Add changelog
* Fix tests
* Update test
* Fix e2e test
2023-03-16 12:11:59 +08:00
louwie17
93506388e3
Update product rest config and template block usage ( #37206 )
...
* Update product post rest configs
* Update block usage
* Add changelogs
* Fix lint
* Make use of setupEditorState instead of setupEditor as we do not have a content block
* Simplify product condition
* Make use of core store only
2023-03-15 13:44:05 -03:00
Moon
16c7c58462
Update Avalara CTA copy in tax task ( #37224 )
...
* Change CTA to Download
* Add changelog
2023-03-14 22:37:07 -07:00
Gan Eng Chin
aef22190d2
Make sure expression before && is always boolean in React rendering in marketing page.
2023-03-15 08:24:00 +08:00
Gan Eng Chin
98dcb9bea4
Specify args for wp.data resolution in marketing page to support WP 5.9 ( #37198 )
2023-03-15 07:30:40 +08:00
Matt Sherman
4cabe5f6b5
Add Tracks events for product inventory tab ( #37202 )
2023-03-14 18:16:01 -04:00
Matt Sherman
b94d38458d
Add components to @woocommerce/customer-effort-score ( #37112 )
...
* Update src structure of @woocommerce/customer-effort-score
* Changelog
* Add dependencies to @woocommerce/customer-effort-score
* Move useCustomerEffortScoreExitPageTracker and utils to @woocommerce/customer-effort-score
* Fix up imports from @woocommerce/customer-effort-score
* Changelog
* Fix import of constant
* Mock @woocommerce/customer-effort-score in tests
* Move tests to @woocommerce/customer-effort-score
* Update lock file
* Update lock file from trunk
* Update lock file again... this time, tests pass
2023-03-14 12:16:19 -04:00
Gan Eng Chin
0316fbb265
Specify empty array as hasFinishedResolution args.
...
This is to make things consistent with invalidateResolution to make things work with WP 5.9.
2023-03-14 03:35:20 +08:00
Gan Eng Chin
5a58784a62
Specify empty array as invalidateResolution and hasFinishedResolution args.
...
This is to make things work with WP 5.9.
2023-03-14 03:32:54 +08:00
Joel Thiessen
4dff6db40f
Adding test name block with support for entity data store ( #37132 )
...
* Adding test name block with support for entity data store
* Adding changelog
* Changing block.ts to block.json and amending TS config to support
* Experiment in loading blocks from settings template
* Enable the use of templates with the block editor
* Fix dependency
* Add changelog
* Fix lint error and remove unused utils
* Fix tests by fixing mocks
---------
Co-authored-by: Lourens Schep <lourensschep@gmail.com>
2023-03-13 11:45:25 -03:00
Gan Eng Chin
0cf56774f5
Merge branch 'trunk' into feature/34909-marketing-create-campaign-modal
2023-03-13 12:51:24 +08:00
Gan Eng Chin
baf9408f69
Merge branch 'feature/34909-marketing-create-campaign-modal' into feature/34904-marketing-introduction-banner
...
Conflicts:
plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/Campaigns.test.tsx
plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/Campaigns.tsx
plugins/woocommerce-admin/client/marketing/overview-multichannel/MarketingOverviewMultichannel.tsx
2023-03-13 01:02:12 +08:00
louwie17
329b0cbd07
Hydrate product editor settings ( #37123 )
2023-03-10 12:21:22 -08:00
Gan Eng Chin
c6e6f8774d
Specify empty array dependency in useCampaignTypes.
...
This is to make it work with WP 5.9. See https://github.com/woocommerce/woocommerce/pull/37044#discussion_r1132062493 .
2023-03-11 00:42:09 +08:00
Gan Eng Chin
1fea0185fe
Don't throw error in getCampaignTypes.
...
In WP 5.9, if we throw error, there would be an uncaught promise, and it causes UI to break.
2023-03-11 00:31:23 +08:00
Matt Sherman
af24637439
Create @woocommerce/admin-layout package ( #37094 )
...
* Initial admin-layout package skeleton
* Changelog files
* Use createOrderedChildren and sortFillsByOrder from @woocommerce/components for WooFooterItem
* Move WooFooterItem to @woocommerce/admin-layout
* Use WooFooterItem from @woocommerce/admin-layout
* Suppress errant TS lint errors
* Exports for @woocommerce/admin-layout
* Fill updates and eslint suppression
* Changelogs
* Remove suppression of tslint errors
* Fix react and @types/react versions
* Load @woocommerce/admin-layout script and styles
* Move WooHeaderItem, WooHeaderNavigationItem, and WooHeaderPageTitle to @woocommerce/admin-layout
* Regenerate lock file post-rebase
* Remove duplicate import post-rebase
* Add wc-admin-layout to app style dependency
* Fix jest mock of @woocommerce/admin-layout
* Fix spacing.
* Export slot names
* Fix typo in .npmrc
* Update lock file
* Try updating lock file
* Update lock file
* Update lock file
* Update to latest lock file from trunk
* Update lock file
* Sync dependencies of @woocommerce/admin-layout
* Manually sync @wordpress dependencies
2023-03-10 09:58:02 -05:00
Joel Thiessen
970c1ef352
Hydrating product entity when creating or editing product with block editor ( #37064 )
2023-03-09 13:11:25 -08:00
Maikel David Pérez Gómez
2896a8cd13
Add the new feature to enable the new product editor blocks experience ( #37137 )
...
* Add the new feature to enable the new product editor blocks experience
* Add the type definition of the feature flag
* Add the feature to the beta_featues in Features.php file
* Keep the page routes when the feature is anabled
* Add the feature php class to manage page assets
* Add changelog file
2023-03-09 15:33:39 -03:00
Gan Eng Chin
0a58ec19f8
Remove unneeded div in CreateNewCampaignModal.
2023-03-10 02:14:35 +08:00
Gan Eng Chin
e4da8cba09
Display info message when there are no campaign types.
2023-03-10 02:13:05 +08:00
Gan Eng Chin
6446053784
Load campaign types in overview and refetch after installeing a channel.
2023-03-09 23:46:54 +08:00
Gan Eng Chin
8b6aad4138
Refetch campaign types after installing a channel in CreateNewCampaignModal.
2023-03-09 22:51:12 +08:00
Gan Eng Chin
29d67a3a21
Refactor test data in CreateNewCampaignModal tests.
2023-03-09 22:31:51 +08:00
Gan Eng Chin
9f0326b398
Remove unneeded return in CreateNewCampaignModal.
...
This helps us save indentation and make the code few lines shorter.
2023-03-09 22:26:06 +08:00
Gan Eng Chin
e15305b7c3
Remove unneeded CardDivider in CreateNewCampaignModal.
...
The code is copied from the Channels component, but in CreateNewCampaignModal, we don't need to display the divider, so we can just remove the divider code.
2023-03-09 22:23:27 +08:00
Gan Eng Chin
c6dcee426b
Make it clear that title and classname cannot be overwritten by props.
2023-03-09 22:17:03 +08:00
Gan Eng Chin
f5bb8490ea
Rename open and setOpen to isModalOpen and setModalOpen in Campaigns.
2023-03-09 22:11:53 +08:00
Gan Eng Chin
e831e89997
Make the mocked modal clearer.
...
The previous text "Create a new campaign" can be a bit confusing with the other text "Create new campaign" in the test.
2023-03-09 22:09:24 +08:00
Gan Eng Chin
551db21e9b
Remove unneeded getByText in Campaigns test.
2023-03-09 22:05:17 +08:00
Gan Eng Chin
f19969dacb
Change NewCampaignTypes to CampaignTypes.
2023-03-09 21:52:11 +08:00