mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-11 13:52:20 +00:00
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:
1 parent
0c583323e0
commit
c10eae2c4e
7 files changed
+9
-57
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user