-
+
@@ -122,21 +296,33 @@ export function ChatInput({ onSubmit, status, onStop }: ChatInputProps) {
{/* Bottom (darker) card peeking out below, more rounded: context selectors */}
-
-
-
+ }
+ onValueChange={setSpecialty}
+ options={SPECIALTY_OPTIONS}
+ triggerClassName={contextPill}
+ value={specialty}
+ />
+ }
+ onValueChange={setFacility}
+ options={FACILITY_OPTIONS}
+ triggerClassName={contextPill}
+ value={facility}
+ />
+ }
+ onValueChange={setTimeRange}
+ options={TIME_OPTIONS}
+ triggerClassName={contextPill}
+ value={timeRange}
+ />
);
diff --git a/frontend/components/chat/patient-cards.tsx b/frontend/components/chat/patient-cards.tsx
index ae6ac98..70c837b 100644
--- a/frontend/components/chat/patient-cards.tsx
+++ b/frontend/components/chat/patient-cards.tsx
@@ -42,6 +42,9 @@ const statusVariant: Record
= {
const sexLabel: Record = { F: "Female", M: "Male" };
+// Fixed width so the cards sit in a horizontal scroll row instead of squashing.
+const rowCard = "w-80 shrink-0 snap-start";
+
function SectionLabel({ children }: { children: string }) {
return (
@@ -52,7 +55,7 @@ function SectionLabel({ children }: { children: string }) {
function SummaryCard({ patient }: { patient: Patient }) {
return (
-
+
@@ -79,7 +82,7 @@ function SummaryCard({ patient }: { patient: Patient }) {
function AllergiesCard({ patient }: { patient: Patient }) {
return (
-
+
Allergies & alerts
@@ -127,7 +130,7 @@ function AllergiesCard({ patient }: { patient: Patient }) {
function MedicationsCard({ patient }: { patient: Patient }) {
return (
-
+
Medications & problems
@@ -171,7 +174,7 @@ function VitalsCard({ patient }: { patient: Patient }) {
];
return (
-
+
Vitals, labs & visits
Vitals taken {vitals.takenAt}
@@ -222,7 +225,7 @@ function VitalsCard({ patient }: { patient: Patient }) {
function LoadingCards() {
return (
<>
-
+
@@ -234,7 +237,7 @@ function LoadingCards() {
{[0, 1, 2].map((card) => (
-
+
@@ -263,7 +266,7 @@ export function PatientResult({ status, fileNumber, patient }: PatientResultProp
}
return (
-
+
{status === "loading" || !patient ? (
) : (