From c10eae2c4e0344af88180b2db320602077f35f3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sun, 28 Jun 2026 21:35:30 +0200 Subject: [PATCH] fix(documents): fold the inbound-document disclaimer into the page subtitle Remove the standalone amber disclaimer card from the inbound-documents review screen. The non-diagnostic essence now reads as the plain muted subtitle line under the page title: upload a clinical document and review the extracted details. Drop the now-unused disclaimer.title / disclaimer.body keys across all six locales and the AlertTriangle / CardDescription imports left orphaned by the removal. --- messages/de.json | 6 +--- messages/en.json | 6 +--- messages/es.json | 6 +--- messages/fr.json | 6 +--- messages/it.json | 6 +--- messages/pl.json | 6 +--- .../documents/inbound-documents-view.tsx | 30 ++----------------- 7 files changed, 9 insertions(+), 57 deletions(-) diff --git a/messages/de.json b/messages/de.json index a90fecd6a..fd66e6011 100644 --- a/messages/de.json +++ b/messages/de.json @@ -7789,11 +7789,7 @@ }, "documents": { "title": "Eingehende Dokumente", - "subtitle": "Lade ein klinisches Dokument hoch und prüfe die Angaben, die wir daraus gelesen haben.", - "disclaimer": { - "title": "Wir lesen, wir deuten nicht", - "body": "Wir übernehmen nur das, was dein Dokument angibt — Werte, Codes und Daten — und stellen keine Diagnose, deuten nichts und bewerten nichts. Nichts wird gespeichert, bevor du es geprüft und bestätigt hast. Nur deine Ärztin oder dein Arzt kann diese Ergebnisse beurteilen." - }, + "subtitle": "Lade ein klinisches Dokument hoch und prüfe die ausgelesenen Angaben.", "upload": { "label": "Dokument hochladen", "kindLabel": "Dokumenttyp", diff --git a/messages/en.json b/messages/en.json index 511493b1c..35066fd8e 100644 --- a/messages/en.json +++ b/messages/en.json @@ -7789,11 +7789,7 @@ }, "documents": { "title": "Inbound documents", - "subtitle": "Upload a clinical document and review the facts we read from it.", - "disclaimer": { - "title": "We read, we don't interpret", - "body": "We only transcribe what your document states — values, codes, and dates — and never diagnose, interpret, or flag anything. Nothing is saved until you review and approve it. Only your clinician can interpret these results." - }, + "subtitle": "Upload a clinical document and review the extracted details.", "upload": { "label": "Upload a document", "kindLabel": "Document type", diff --git a/messages/es.json b/messages/es.json index 298329f0c..b6dfcdd3b 100644 --- a/messages/es.json +++ b/messages/es.json @@ -7789,11 +7789,7 @@ }, "documents": { "title": "Documentos entrantes", - "subtitle": "Sube un documento clínico y revisa los datos que hemos leído.", - "disclaimer": { - "title": "Leemos, no interpretamos", - "body": "Solo transcribimos lo que indica tu documento — valores, códigos y fechas — y nunca diagnosticamos, interpretamos ni marcamos nada. No se guarda nada hasta que lo revises y lo apruebes. Solo tu profesional sanitario puede interpretar estos resultados." - }, + "subtitle": "Sube un documento clínico y revisa los datos extraídos.", "upload": { "label": "Subir un documento", "kindLabel": "Tipo de documento", diff --git a/messages/fr.json b/messages/fr.json index ae54eb4e2..edcd2301c 100644 --- a/messages/fr.json +++ b/messages/fr.json @@ -7789,11 +7789,7 @@ }, "documents": { "title": "Documents entrants", - "subtitle": "Importez un document clinique et vérifiez les données que nous y avons lues.", - "disclaimer": { - "title": "Nous lisons, nous n'interprétons pas", - "body": "Nous transcrivons uniquement ce qu'indique votre document — valeurs, codes et dates — et nous ne posons aucun diagnostic, n'interprétons et ne signalons rien. Rien n'est enregistré tant que vous ne l'avez pas vérifié et approuvé. Seul votre professionnel de santé peut interpréter ces résultats." - }, + "subtitle": "Importez un document clinique et vérifiez les données extraites.", "upload": { "label": "Importer un document", "kindLabel": "Type de document", diff --git a/messages/it.json b/messages/it.json index 7d47c79f9..53ebd76f4 100644 --- a/messages/it.json +++ b/messages/it.json @@ -7789,11 +7789,7 @@ }, "documents": { "title": "Documenti in entrata", - "subtitle": "Carica un documento clinico e rivedi i dati che abbiamo letto.", - "disclaimer": { - "title": "Leggiamo, non interpretiamo", - "body": "Trascriviamo solo ciò che il documento indica — valori, codici e date — e non formuliamo diagnosi, non interpretiamo e non segnaliamo nulla. Niente viene salvato finché non lo verifichi e lo approvi. Solo il tuo medico può interpretare questi risultati." - }, + "subtitle": "Carica un documento clinico e controlla i dati estratti.", "upload": { "label": "Carica un documento", "kindLabel": "Tipo di documento", diff --git a/messages/pl.json b/messages/pl.json index 6e0a5ce53..f32c8c7ed 100644 --- a/messages/pl.json +++ b/messages/pl.json @@ -7789,11 +7789,7 @@ }, "documents": { "title": "Dokumenty przychodzące", - "subtitle": "Prześlij dokument kliniczny i sprawdź dane, które z niego odczytaliśmy.", - "disclaimer": { - "title": "Odczytujemy, nie interpretujemy", - "body": "Przepisujemy tylko to, co podaje dokument — wartości, kody i daty — i nigdy nie stawiamy diagnozy, nie interpretujemy ani niczego nie oznaczamy. Nic nie zostaje zapisane, dopóki tego nie sprawdzisz i nie zatwierdzisz. Tylko lekarz może zinterpretować te wyniki." - }, + "subtitle": "Prześlij dokument kliniczny i sprawdź wyodrębnione dane.", "upload": { "label": "Prześlij dokument", "kindLabel": "Typ dokumentu", diff --git a/src/components/documents/inbound-documents-view.tsx b/src/components/documents/inbound-documents-view.tsx index 83a300b1a..4a8b47180 100644 --- a/src/components/documents/inbound-documents-view.tsx +++ b/src/components/documents/inbound-documents-view.tsx @@ -7,22 +7,16 @@ * the OCR/vision provider transcribed before any of them reaches the * structured stores. The screen reproduces what the document stated — it never * interprets. A low-confidence fact fails closed: it cannot be approved until - * the user edits it. The non-diagnostic disclaimer is shown prominently. + * the user edits it. */ import { useRef, useState } from "react"; import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query"; import { toast } from "sonner"; -import { AlertTriangle, FileScan, Loader2, Upload } from "lucide-react"; +import { FileScan, Loader2, Upload } from "lucide-react"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; -import { - Card, - CardContent, - CardDescription, - CardHeader, - CardTitle, -} from "@/components/ui/card"; +import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { Input } from "@/components/ui/input"; import { Label } from "@/components/ui/label"; import { NativeSelect } from "@/components/ui/native-select"; @@ -90,24 +84,6 @@ export function InboundDocumentsView() { - {/* Non-diagnostic disclaimer — most prominent, always visible. */} - - - -
- - {t("documents.disclaimer.title")} - - - {t("documents.disclaimer.body")} - -
-
-
- {/* Upload */}