Gan Eng Chin
418e4fba02
Fix build error after merging.
2023-02-27 23:49:50 +08:00
Gan Eng Chin
f420a0ed9e
Merge branch 'feature/34905-marketing-campaigns-card' into feature/34909-marketing-create-campaign-modal
...
Conflicts:
plugins/woocommerce-admin/client/marketing/components/RecommendedChannelsList.tsx
plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/Campaigns.scss
plugins/woocommerce-admin/client/marketing/overview-multichannel/Campaigns/Campaigns.tsx
plugins/woocommerce-admin/client/marketing/overview-multichannel/Channels/Channels.tsx
plugins/woocommerce-admin/client/marketing/overview-multichannel/Channels/RecommendedChannels.tsx
2023-02-27 23:46:30 +08:00
Gan Eng Chin
e57181b987
Add tests for Campaigns component.
2023-02-27 02:23:11 +08:00
Gan Eng Chin
3513ef51a1
Merge branch 'trunk' into feature/34905-marketing-campaigns-card
2023-02-25 00:39:37 +08:00
Gan Eng Chin
f62b44ae2f
Set numberOfRows for TablePlaceholder in Campaigns card.
2023-02-24 23:48:04 +08:00
Gan Eng Chin
f7a1ef2123
Code refactor with getTotalFromResponse in getCampaigns.
2023-02-24 23:45:10 +08:00
Gan Eng Chin
a4e11924fd
Change meta.total to optional in receiveCampaignsSuccess.
2023-02-24 23:44:47 +08:00
Gan Eng Chin
f5ba6d94ac
Remove unused fetchWithHeaders control.
2023-02-24 23:35:40 +08:00
Gan Eng Chin
a982b7be21
Error handling in getCampaigns.
2023-02-24 18:32:33 +08:00
Gan Eng Chin
92762ca9b0
Better pagination with TablePlaceholder in Campaigns card.
2023-02-24 17:09:42 +08:00
Gan Eng Chin
cc5345db4e
Campaigns pagination UI logic.
2023-02-24 02:13:20 +08:00
Gan Eng Chin
60d815c582
wp.data for campaigns data pagination.
2023-02-24 02:10:37 +08:00
Gan Eng Chin
20ae504be0
Add controls with fetchWithHeaders.
2023-02-24 02:08:59 +08:00
Chi-Hsuan Huang
dcba4456cf
Add SlotFill for marketing overview screen ( #36828 )
...
* Add slot for marketing overview section slotfill
* Add changelog
* Remove unneed changes
* Add changelog
2023-02-17 09:46:52 +08:00
Gan Eng Chin
c9214abe1f
Merge branch 'feature/34906-marketing-channels-card' into feature/34905-marketing-campaigns-card
2023-02-03 00:54:51 +08:00
Gan Eng Chin
7bb042fcd2
Simplify CSS for CardHeaderDescription.
2023-02-02 21:50:36 +08:00
Gan Eng Chin
048906ad80
Change Campaigns CSS to use @include font-size().
2023-02-02 19:06:17 +08:00
Gan Eng Chin
7b068bf908
Code refactor for Campaigns card CSS.
2023-02-02 17:52:22 +08:00
Gan Eng Chin
c17f336acc
Code refactor for Campaigns card.
2023-02-02 17:47:42 +08:00
Gan Eng Chin
0abe368962
Display error state in Campaigns card.
2023-02-02 17:17:29 +08:00
Gan Eng Chin
743c0e5085
Set per_page to 100 for getCampaigns.
...
100 is the maximum limit allowed by the API.
We do this because the API does not return total number of rows, so we use 100 to get "all" rows, to support pagination in the UI.
2023-02-02 01:03:15 +08:00
Gan Eng Chin
183fc48132
Show CardFooter and Pagination only when it is needed.
...
This means when total is more than perPage.
2023-02-01 20:29:32 +08:00
Gan Eng Chin
eda6f194b9
Use perPage constant instead of literal 5.
2023-02-01 20:27:07 +08:00
Gan Eng Chin
274ea3dd60
Use Link component in Campaigns.
...
This allows fast client-side navigation.
2023-02-01 20:23:14 +08:00
Gan Eng Chin
29154425cb
Check description before rendering FlexItem.
...
This is to eliminate the unneeded flex gap when there is no description.
2023-02-01 20:17:53 +08:00
Gan Eng Chin
c342cbb98d
Change to color variable in Campaigns CSS.
2023-02-01 20:09:17 +08:00
Gan Eng Chin
cd7b5f2c96
Fetch and display campaigns with wp.data.
2023-02-01 19:02:03 +08:00
Gan Eng Chin
46adb0dc25
Rename Channels to RegisteredChannels.
2023-02-01 02:58:49 +08:00
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