From 9a7e694d5a35a369a4dedb3938cbd1de98e800ed Mon Sep 17 00:00:00 2001 From: Khalid Abdi Date: Mon, 1 Jun 2026 19:42:30 +0300 Subject: [PATCH] Redesign patient cards: 7 focused cards + sparklines; lighten input - Split the overloaded card into 7 single-topic cards (Summary, Vitals, Labs, Medications, Problems, Allergies & alerts, Visits) so the equal-height row is evenly filled instead of stretched-and-empty. - Add a dependency-free inline-SVG shaded-area Sparkline; Vitals shows a heart-rate trend and Labs a headline-lab trend, fed by new vitalsTrend/ labTrend series in the fixture. - Lighten the chat input's two surfaces so it reads as a raised layer above the new (lighter) page background. Co-Authored-By: Claude Opus 4.8 --- frontend/components/chat/chat-input.tsx | 4 +- frontend/components/chat/patient-cards.tsx | 315 ++++++++++++++------- frontend/components/chat/sparkline.tsx | 68 +++++ frontend/lib/patients.ts | 40 +++ 4 files changed, 315 insertions(+), 112 deletions(-) create mode 100644 frontend/components/chat/sparkline.tsx diff --git a/frontend/components/chat/chat-input.tsx b/frontend/components/chat/chat-input.tsx index 46a39b5..e0a43da 100644 --- a/frontend/components/chat/chat-input.tsx +++ b/frontend/components/chat/chat-input.tsx @@ -192,10 +192,10 @@ export function ChatInput({ onSubmit, status, onStop }: ChatInputProps) { event.preventDefault(); submit(); }} - className="w-full overflow-hidden rounded-[28px] border border-border/60 bg-[oklch(0.172_0.006_277)] shadow-sm" + className="w-full overflow-hidden rounded-[28px] border border-border/60 bg-[oklch(0.195_0.006_277)] shadow-sm" > {/* Top (lighter) card: textarea + toolbar, with a slightly smaller bottom radius */} -
+