From c9f8eb94233a2e85f0324309a44b08ee5202bd21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Thu, 2 Jul 2026 00:00:38 +0200 Subject: [PATCH] fix(ui): replace native date pickers and tokenize caution colors Swap the remaining native date inputs (allergy onset, environment travel/backfill ranges, inbound-document dates) for the app DateField so they no longer render in the browser's locale order. Route the medication caution amber and the document info banner through the warning/info tokens so they adapt to the theme. --- .../documents/inbound-documents-view.tsx | 30 +++++++------------ .../medication-card-next-due.test.tsx | 2 +- .../medications/glp1-medication-card.tsx | 2 +- .../medications/intake-edit-dialog.tsx | 2 +- .../medications/medication-card.tsx | 2 +- .../medications/medication-table.tsx | 2 +- src/components/records/allergy-form.tsx | 6 ++-- .../settings/environment-section.tsx | 21 ++++++------- src/components/settings/export-section.tsx | 2 +- .../settings/integrations/fitbit-card.tsx | 2 +- 10 files changed, 30 insertions(+), 41 deletions(-) diff --git a/src/components/documents/inbound-documents-view.tsx b/src/components/documents/inbound-documents-view.tsx index 330c742ec..e5f233c82 100644 --- a/src/components/documents/inbound-documents-view.tsx +++ b/src/components/documents/inbound-documents-view.tsx @@ -62,6 +62,7 @@ import { DialogHeader, DialogTitle, } from "@/components/ui/dialog"; +import { DateField } from "@/components/ui/date-field"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { NativeSelect } from "@/components/ui/native-select"; @@ -309,11 +310,10 @@ export function InboundDocumentsView() { - setUploadDate(e.target.value)} + onChange={setUploadDate} disabled={upload.isPending} /> @@ -398,22 +398,20 @@ export function InboundDocumentsView() {
- setFromDate(e.target.value)} + onChange={setFromDate} />
- setToDate(e.target.value)} + onChange={setToDate} />
@@ -920,7 +918,7 @@ function InlineNote({ slot, children }: { slot: string; children: string }) {
@@ -1007,12 +1005,7 @@ export function DocumentMetaEditForm({
- setDate(e.target.value)} - /> +