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.
This commit is contained in:
Marc-André Bombeck committed 2026-06-28 21:35:30 +02:00
1 parent 0c583323e0
commit c10eae2c4e
7 files changed
+9 -57

No files matched your search

+1 -5
View File
@@ -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",
+1 -5
View File
@@ -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",
+1 -5
View File
@@ -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",
+1 -5
View File
@@ -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",
+1 -5
View File
@@ -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",
+1 -5
View File
@@ -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",
@@ -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() {
</div>
</header>
{/* Non-diagnostic disclaimer — most prominent, always visible. */}
<Card className="border-amber-300 bg-amber-50 dark:border-amber-900/60 dark:bg-amber-950/30">
<CardHeader className="flex-row items-start gap-3 space-y-0">
<AlertTriangle
className="mt-0.5 h-5 w-5 shrink-0 text-amber-600 dark:text-amber-400"
aria-hidden
/>
<div>
<CardTitle className="text-base">
{t("documents.disclaimer.title")}
</CardTitle>
<CardDescription className="text-amber-900/80 dark:text-amber-200/80">
{t("documents.disclaimer.body")}
</CardDescription>
</div>
</CardHeader>
</Card>
{/* Upload */}
<Card>
<CardHeader>