Gan Eng Chin
630bd0ab17
Merge branch 'feature/34906-marketing-channels-card' into feature/34905-marketing-campaigns-card
2023-02-01 00:52:48 +08:00
Gan Eng Chin
f050bb79b5
Rename Channel to RegisteredChannel.
...
This is for better clarity and consistency.
2023-02-01 00:52:35 +08:00
Gan Eng Chin
177fc59dea
Simplify rendering code in MarketingOverviewMultichannel.
2023-02-01 00:29:38 +08:00
Gan Eng Chin
3384ad576d
Remove unused import.
2023-02-01 00:20:04 +08:00
Gan Eng Chin
d69f7f00b7
Fix ids typescript error in Campaigns.
2023-02-01 00:18:53 +08:00
Gan Eng Chin
76102143ff
Merge branch 'feature/34906-marketing-channels-card' into feature/34905-marketing-campaigns-card
...
Conflicts:
plugins/woocommerce-admin/client/marketing/overview-multichannel/MarketingOverviewMultichannel.tsx
2023-01-31 23:50:03 +08:00
Gan Eng Chin
d59e7e5721
Edit and arrange imports in MarketingOverviewMultichannel.
2023-01-31 23:39:02 +08:00
Gan Eng Chin
449da4e91c
Merge branch 'trunk' into feature/34906-marketing-channels-card
2023-01-29 01:29:31 +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
49032b98db
Make data undefined on first load in useRecommendedChannels.
2023-01-27 21:38:38 +08:00
Gan Eng Chin
316aad8b2e
Simplify RegisteredChannelCardBody CSS.
2023-01-27 21:15:40 +08:00
Gan Eng Chin
c2aad26473
Simplify CardHeaderTitle CSS.
...
- Use `@include font-size ( 20 )` to generate relative size in rem.
- Use unitless number value for line-height; this is the preferred way according to MDN.
- `font-weight` and `letter-spacing` are not needed.
The UI looks the same before and after this change.
2023-01-27 01:26:37 +08:00
Gan Eng Chin
d70fb07f31
Modify PluginCardBody to accept className, and change description type.
2023-01-21 23:13:13 +08:00
Gan Eng Chin
6baa403071
Move and rename type Plugin to RecommendedPlugin.
2023-01-21 23:12:04 +08:00
Gan Eng Chin
d252922110
Rename file Plugin to InstalledPlugin.
...
(cherry picked from commit 0229354da0
)
2023-01-21 23:11:47 +08:00
Gan Eng Chin
8873252c45
Rename type Plugin to InstalledPlugin.
...
(cherry picked from commit 56dbf53a35
)
2023-01-21 23:11:36 +08:00
Gan Eng Chin
0fe028d8c2
Code refactor with CardHeaderTitle component.
...
This component will be used in other components later.
(cherry picked from commit 995fb7e02d
)
2023-01-21 23:10:31 +08:00
Gan Eng Chin
3f56382cf1
Code refactor with CenteredSpinner.
...
(cherry picked from commit 5216643465
)
2023-01-21 23:09:06 +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
8754003fb0
Add mapping for sync-failed product listings status.
2023-01-21 02:26:19 +08:00
Gan Eng Chin
2a15f09514
Remove TODO comments.
2023-01-21 02:22:30 +08:00
Gan Eng Chin
3cc568b4ed
Remove duplicated RecommendedChannel type.
2023-01-21 02:20:06 +08:00
Gan Eng Chin
0b1ab21836
Rename types.
2023-01-21 02:14:36 +08:00
Gan Eng Chin
d69f078fd5
Replace useIsPluginInstalled with useIsPluginInstalledNotActivated.
2023-01-20 01:36:39 +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
9fa6ea4a25
Display activate button for channels that are not yet activated.
2023-01-20 00:36:34 +08:00
Gan Eng Chin
223ea4d712
Filter recommended channels to get "not installed" or "not activated" channels.
2023-01-19 22:23:00 +08:00
Gan Eng Chin
cf4c62e707
Fix loading bug in useRecommendedChannels.
2023-01-19 19:50:56 +08:00
Gan Eng Chin
b708cc18ff
Get recommended channels from API.
2023-01-19 19:33:51 +08:00
Gan Eng Chin
2d7c8db2e5
Map product_listings_status to syncStatus.
2023-01-19 01:32:38 +08:00
Gan Eng Chin
0a36d7a4fe
Map errors_count to issueType and issueText.
2023-01-19 01:12:50 +08:00
Gan Eng Chin
f616d688d8
Call marketing channels API with wp.data.
2023-01-18 02:04:42 +08:00
Gan Eng Chin
1d7b663186
Remove the unneeded "Create new campaign" button for now.
2022-12-24 01:45:59 +08:00
Gan Eng Chin
8e39098256
Show Campaigns card only when there is at least one registered channel.
2022-12-24 01:43:09 +08:00
Gan Eng Chin
ee6fa9508e
Merge branch 'feature/34903-multichannel-marketing-frontend/34906-channels-card' into feature/34903-multichannel-marketing-frontend/34905-campaigns-card
...
Conflicts:
plugins/woocommerce-admin/client/marketing/overview-multichannel/MarketingOverviewMultichannel.tsx
2022-12-24 01:39:57 +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
558ddf2609
Use Campaign type in useCampaigns.
2022-12-19 20:54:01 +08:00
Gan Eng Chin
c67e479162
Add Campaign type.
2022-12-19 20:53:31 +08:00
Gan Eng Chin
cbc616a9f3
Set cost column as numeric in Campaigns card.
...
This makes the column right-aligned.
2022-12-18 20:38:07 +08:00