From 6b825e959899a3cffd7d4d45435b350e0d45d519 Mon Sep 17 00:00:00 2001 From: tnagorra Date: Fri, 6 Sep 2024 23:18:00 +0545 Subject: [PATCH] Use remainingDaysToStart for upcoming events --- src/utils/types.ts | 1 - .../DailyJournal/DayView/styles.module.css | 2 +- src/views/DailyJournal/index.tsx | 36 +++++++++---------- src/views/DailyJournal/styles.module.css | 24 +++++-------- .../GeneralEvent/index.tsx | 0 .../GeneralEvent/styles.module.css | 0 .../DailyStandup/DeadlineSection/index.tsx | 26 ++++---------- .../index.tsx | 20 ++--------- .../styles.module.css | 2 +- src/views/DailyStandup/index.tsx | 4 +-- 10 files changed, 38 insertions(+), 77 deletions(-) rename src/views/DailyStandup/{ => DeadlineSection}/GeneralEvent/index.tsx (100%) rename src/views/DailyStandup/{ => DeadlineSection}/GeneralEvent/styles.module.css (100%) rename src/views/DailyStandup/{ProjectStandup => ProjectSection}/index.tsx (86%) rename src/views/DailyStandup/{ProjectStandup => ProjectSection}/styles.module.css (95%) diff --git a/src/utils/types.ts b/src/utils/types.ts index f9f0a07..ac969f7 100644 --- a/src/utils/types.ts +++ b/src/utils/types.ts @@ -52,7 +52,6 @@ export interface GeneralEvent { typeDisplay: string; icon: React.ReactNode; name: string; - date: string; remainingDays: number; } diff --git a/src/views/DailyJournal/DayView/styles.module.css b/src/views/DailyJournal/DayView/styles.module.css index aafdf35..ab0e2fc 100644 --- a/src/views/DailyJournal/DayView/styles.module.css +++ b/src/views/DailyJournal/DayView/styles.module.css @@ -75,7 +75,7 @@ .joined-heading { display: flex; align-items: center; - gap: var(--spacing-md); + gap: var(--spacing-sm); color: var(--color-text-light); font-weight: var(--font-weight-semibold); diff --git a/src/views/DailyJournal/index.tsx b/src/views/DailyJournal/index.tsx index 24d8188..282b39c 100644 --- a/src/views/DailyJournal/index.tsx +++ b/src/views/DailyJournal/index.tsx @@ -660,6 +660,22 @@ export function Component() { > + {entriesWithoutTask > 0 && ( +
+ + + {`${entriesWithoutTask} uncategorized`} + +
+ )} + {entriesWithoutHours > 0 && ( +
+ + + {`${entriesWithoutHours} untracked`} + +
+ )}