From 2b75ef653844cf42859aaf78b42b79d516471f0f Mon Sep 17 00:00:00 2001 From: Mattsson <111893710+mattssonn@users.noreply.github.com> Date: Sat, 21 Mar 2026 01:19:53 +0100 Subject: [PATCH] Deadline validation error (#69) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * validation errors fixed * Deadline card design * Update components/deadlines/DeadlineCard.tsx Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * Update lib/api/schemas.ts Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * Update components/deadlines/DeadlineCard.tsx Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> * fix: restore truncated compact button in DeadlineCard The compact toggle button was missing its className arguments, closing bracket, content, and closing tag after a bad merge — causing a JSX parse error that broke the build. Co-Authored-By: Claude Opus 4.6 (1M context) --------- Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 (1M context) --- components/deadlines/DeadlineCard.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/components/deadlines/DeadlineCard.tsx b/components/deadlines/DeadlineCard.tsx index 844f264e..4918ef37 100644 --- a/components/deadlines/DeadlineCard.tsx +++ b/components/deadlines/DeadlineCard.tsx @@ -66,6 +66,16 @@ export function DeadlineCard({ aria-label={completed ? 'Markera som ej klar' : 'Markera som klar'} onClick={() => onToggle(deadline)} className={cn( + 'flex-shrink-0 h-[18px] w-[18px] rounded-full border transition-colors', + completed + ? 'bg-success border-success text-success-foreground' + : overdue + ? 'border-destructive/40 hover:border-destructive' + : 'border-border hover:border-foreground/30' + )} + > + {completed && } + {/* Compact date */}