UI fixes to campaign table

This commit is contained in:
Chris Anderson 2023-02-25 23:16:38 -06:00
parent ab49fb78e5
commit 57690523ca
2 changed files with 5 additions and 2 deletions

View file

@ -24,7 +24,7 @@ export const pagedCampaigns = async (params: SearchParams, projectId: number) =>
params,
['name'],
b => {
b.where({ project_id: projectId })
b.where({ project_id: projectId }).orderBy('id', 'desc')
params?.tags?.length && b.whereIn('id', createTagSubquery(Campaign, projectId, params.tags))
return b
},

View file

@ -69,7 +69,10 @@ export default function Campaigns() {
key: 'delivery',
cell: ({ item }) => `${item.delivery?.sent ?? 0} / ${item.delivery?.total ?? 0}`,
},
{ key: 'launched_at' },
{
key: 'send_at',
title: 'Launched At',
},
{ key: 'updated_at' },
{
key: 'options',