Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

Feat(crm): Add tomorrow list for dashboard

Anthony Rimet55be896579da
diff --git a/src/dashboard/TasksList.tsx b/src/dashboard/TasksList.tsx
index df7194a2..1b3fe832 100644
--- a/src/dashboard/TasksList.tsx
+++ b/src/dashboard/TasksList.tsx
@@ -20,6 +20,11 @@ const taskFilters = {
'due_date@gte': startOfTodayDateISO,
'due_date@lte': endOfTodayDateISO,
},
+ tomorrow: {
+ 'done_date@is': null,
+ 'due_date@gte': endOfTodayDateISO,
+ 'due_date@lt': startOfWeekDateISO,
+ },
thisWeek: {
'done_date@is': null,
'due_date@gte': startOfWeekDateISO,
@@ -74,6 +79,11 @@ export const TasksList = () => {
filter={taskFilters.today}
contacts={contacts}
/>
+ <TasksListFilter
+ title="Tomorrow"
+ filter={taskFilters.tomorrow}
+ contacts={contacts}
+ />
<TasksListFilter
title="This week"
filter={taskFilters.thisWeek}