Patricia Hillebrandt
5dd7713346
[Performance]: Replace `classnames` usage with `clsx` ( #47760 )
...
* Replace classnames with clsx within woocommerce-blocks.
* Undo unnecessary change to getClassnames const.
* Replace classnames with clsx within woocommerce-admin.
* Add changelog.
* Update the pnpm lock file
* Address lint.
* Address lint errors for the block-library.
2024-05-31 05:49:36 +02:00
Paul Sealock
619804cff3
Stylelint: Update config to double quotes ( #45607 )
...
* Add eslint override
* bump versions stylelint config
* re pnpm install
* fix config
* move to double quotes in scss
* Add changefile(s) from automation for the following project(s): woocommerce-blocks, woocommerce
* lint fix new scss files
---------
Co-authored-by: github-actions <github-actions@github.com>
2024-03-26 10:41:34 -03:00
Gan Eng Chin
de2aa280ef
Simplify boolean expression before && in Marketing page.
2023-03-27 21:55:42 +08:00
Gan Eng Chin
186f1fb850
Merge branch 'trunk' into feature/37127-marketing-reload-installed-extensions
2023-03-22 18:28:39 +08:00
Gan Eng Chin
7dd7994e01
Make scrollIntoView center on the "Add channels" button.
2023-03-20 17:46:54 +08:00
Gan Eng Chin
5455abcabb
Use useImperativeHandle instead of exposing button ref in Channels.
2023-03-20 01:00:19 +08:00
Gan Eng Chin
7cc8e065f9
Merge branch 'trunk' into feature/34904-marketing-introduction-banner
2023-03-19 20:09:23 +08:00
Gan Eng Chin
1aaa26e07d
Reload installed extensions data after installing recommended channels.
...
This is because the channel may not have registered itself as a marketing channel and it should show up in the Installed extensions card.
2023-03-18 00:47:54 +08: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
8fe3781266
Use ref instead of location hash to scroll to add channels section.
2023-03-08 02:06:06 +08:00
Gan Eng Chin
e700232415
Simplify Channels component.
2023-01-29 01:28:14 +08:00
Gan Eng Chin
15200103cc
Simplify Channels CSS.
2023-01-28 01:16:31 +08:00
Gan Eng Chin
0eb318c1f5
Simplify and remove RecommendedChannels and RecommendedChannelsList components.
2023-01-28 01:12:36 +08:00
Gan Eng Chin
14511ae4d6
Code refactor with SyncStatus and IssueStatus components.
2023-01-28 00:14:50 +08:00
Gan Eng Chin
316aad8b2e
Simplify RegisteredChannelCardBody CSS.
2023-01-27 21:15:40 +08:00
Gan Eng Chin
1af1524b83
Rename CSS installed-channel to registered-channel.
2023-01-21 02:38:00 +08:00
Gan Eng Chin
ef669d8ca2
Rename InstalledChannel to RegisteredChannel.
2023-01-21 02:36:39 +08:00
Gan Eng Chin
3cc568b4ed
Remove duplicated RecommendedChannel type.
2023-01-21 02:20:06 +08:00
Gan Eng Chin
cd0402a10c
Refetch registered channels after install and activate recommended channels.
2023-01-20 01:02:41 +08:00
Gan Eng Chin
2d7c8db2e5
Map product_listings_status to syncStatus.
2023-01-19 01:32:38 +08:00
Gan Eng Chin
52dd8845cc
Load registered and recommended channels in MarketingOverviewMultichannel.
...
The data will be used to conditionally display Campaigns card later.
2022-12-24 01:14:02 +08:00
Gan Eng Chin
e950417542
Move useRegisteredChannels and useRecommendedChannels into shared hooks directory.
2022-12-24 00:48:03 +08:00
Gan Eng Chin
7bd32ba638
Remove useChannels and use useRegisteredChannels and useRecommendedChannels directly.
2022-12-24 00:32:23 +08:00
Gan Eng Chin
9e0b71ff1c
Rename CollapsibleRecommendedChannels to RecommendedChannels.
2022-12-23 22:12:16 +08:00
Gan Eng Chin
af2f4eb904
CSS for "Add channels" button.
2022-12-23 22:08:50 +08:00
Gan Eng Chin
31b635b888
Code refactor: move CSS code to corresponding SCSS file.
2022-12-23 21:53:42 +08:00
Gan Eng Chin
06a303fc33
Types for useRegisteredChannels.
2022-12-23 21:21:52 +08:00
Gan Eng Chin
4fa4f802e9
Check for empty recommended channels.
2022-12-23 21:19:00 +08:00
Gan Eng Chin
2e8b5227e4
Move RecommendedChannel type.
2022-12-14 20:54:29 +08:00
Gan Eng Chin
6f4e05945b
Add dummy data for testing in useRecommendedChannels.
2022-12-14 20:19:20 +08:00
Gan Eng Chin
6c127d70c8
Add dummy data for testing.
2022-12-14 20:11:40 +08:00
Gan Eng Chin
6b80109754
Code refactor with RecommendedChannelsList.
2022-12-14 02:07:35 +08:00
Gan Eng Chin
4a2205bcd1
Display recommended channels in a collapsible list in Channels card.
2022-12-14 01:13:00 +08:00
Gan Eng Chin
9963fd07ab
Display description and button based on channel setup status in Channels card.
2022-12-13 23:23:13 +08:00
Gan Eng Chin
e6e6dc19ef
Display issue status in Channels card.
2022-12-13 22:47:16 +08:00
Gan Eng Chin
437ebb20a8
Display sync status in Channels card.
2022-12-13 21:36:09 +08:00
Gan Eng Chin
be621df8da
Add more data for testing.
2022-12-10 02:29:58 +08:00
Gan Eng Chin
a9010ffd68
Add InstalledChannelCardBody to Channels.
2022-12-10 02:29:58 +08:00
Gan Eng Chin
7852448a7a
Use SmartPluginCardBody in Channels component.
2022-12-10 02:29:58 +08:00
Gan Eng Chin
5cd1d0fe3f
Add CardHeaderDescription in Channels card.
2022-12-10 02:29:57 +08:00
Gan Eng Chin
a8c8be7c26
Use CenteredSpinner in Channels.
2022-12-10 02:29:57 +08:00
Gan Eng Chin
dc7a233cb1
Add Channels card into Marketing page.
2022-12-10 02:29:57 +08:00