Gan Eng Chin
|
e13112875b
|
Move useNewCampaignTypes to shared hooks directory.
|
2023-03-03 01:05:14 +08:00 |
Gan Eng Chin
|
2443bfd7a0
|
Merge branch 'feature/34905-marketing-campaigns-card' into feature/34909-marketing-create-campaign-modal
Conflicts:
plugins/woocommerce-admin/client/marketing/data-multichannel/action-types.ts
plugins/woocommerce-admin/client/marketing/data-multichannel/actions.ts
plugins/woocommerce-admin/client/marketing/data-multichannel/resolvers.ts
|
2023-03-03 00:11:35 +08:00 |
Gan Eng Chin
|
4b87f0a4ed
|
Add JSDOC.
|
2023-03-02 03:15:38 +08:00 |
Gan Eng Chin
|
8e9f344478
|
Test code refactor with createTestCampaign.
|
2023-03-02 00:59:22 +08:00 |
Gan Eng Chin
|
d111370d1e
|
Make UI work with wp.data new campaign types.
|
2023-02-28 00:51:34 +08:00 |
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
|
f62b44ae2f
|
Set numberOfRows for TablePlaceholder in Campaigns card.
|
2023-02-24 23:48:04 +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
|
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
|
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
|
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
|
1d7b663186
|
Remove the unneeded "Create new campaign" button for now.
|
2022-12-24 01:45:59 +08:00 |
Gan Eng Chin
|
d0de1b5c21
|
Add border and change padding for recommended channels in create campaign modal.
|
2022-12-23 02:00:45 +08:00 |
Gan Eng Chin
|
07894d42e3
|
Code refactor for Campaigns component, remove unneeded CampaignsCardHeader.
|
2022-12-22 01:52:24 +08:00 |
Gan Eng Chin
|
a3c8680789
|
Use perPage variable instead of duplicated number.
|
2022-12-22 01:34:46 +08:00 |
Gan Eng Chin
|
321145eb2e
|
Better code clarity with woocommerce-marketing-campaigns-table class name.
|
2022-12-21 23:12:10 +08:00 |
Gan Eng Chin
|
894b77dc96
|
Code refactor with CreateNewCampaignModal.
|
2022-12-21 22:56:22 +08:00 |
Gan Eng Chin
|
5caffb6c63
|
Make create campaign button open in new tab depending on createUrl origin.
|
2022-12-21 21:26:57 +08:00 |
Gan Eng Chin
|
6b3fbdf16b
|
Display new campaign types in create campaign modal.
|
2022-12-21 02:38:56 +08:00 |
Gan Eng Chin
|
24d59f7316
|
Hide the recommended channels section if it is empty.
|
2022-12-20 22:39:00 +08:00 |
Gan Eng Chin
|
17f2072d9f
|
Display recommended channels in create campaign modal.
|
2022-12-20 02:37:02 +08:00 |
Gan Eng Chin
|
08661353eb
|
Add CampaignsCardHeader component with modal.
|
2022-12-20 01:17:30 +08:00 |
Gan Eng Chin
|
558ddf2609
|
Use Campaign type in useCampaigns.
|
2022-12-19 20:54:01 +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 |
Gan Eng Chin
|
32cf8d1341
|
Add pagination to Campaigns card.
|
2022-12-18 20:37:25 +08:00 |
Gan Eng Chin
|
c444dbd126
|
CSS for campaign rows in Campaigns card.
|
2022-12-18 20:08:21 +08:00 |
Gan Eng Chin
|
f5799c8721
|
Display campaign data in table in Campaigns card.
|
2022-12-18 19:34:16 +08:00 |
Gan Eng Chin
|
af4f79ab28
|
Add loading state for Campaigns card.
|
2022-12-17 21:08:14 +08:00 |
Gan Eng Chin
|
30d316886c
|
Add empty state Campaigns card.
|
2022-12-16 01:13:32 +08:00 |