From 0bde6545b6bb2ffdb34197c17d4e8ff1fa676b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Bombeck?= Date: Sat, 27 Jun 2026 12:49:00 +0200 Subject: [PATCH] fix(labs): shared primitives in lab views, drop value Learn link Replace the hand-rolled native scan dropzone button with the shared Button primitive, swap the inline-style chart height for a height class, and remove the Learn link from the biomarker value view where it does not belong. --- src/components/labs/lab-biomarker-chart.tsx | 3 +-- src/components/labs/lab-biomarker-detail.tsx | 3 --- src/components/labs/ocr-review-dialog.tsx | 7 ++++--- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/components/labs/lab-biomarker-chart.tsx b/src/components/labs/lab-biomarker-chart.tsx index c1a5521e7..dca2f95f7 100644 --- a/src/components/labs/lab-biomarker-chart.tsx +++ b/src/components/labs/lab-biomarker-chart.tsx @@ -14,7 +14,6 @@ import { } from "recharts"; import { Button } from "@/components/ui/button"; -import { CHART_HEIGHT_PX } from "@/lib/charts/constants"; import { prefersReducedMotion } from "@/lib/charts/reduced-motion"; import { formatDateShort } from "@/lib/format"; import { formatLabValue } from "@/lib/labs/format-value"; @@ -128,7 +127,7 @@ export function LabBiomarkerChart({ {t("labs.chart.empty")}

) : ( -
+
{marker.context}

) : null} - - {isLoading ? ( diff --git a/src/components/labs/ocr-review-dialog.tsx b/src/components/labs/ocr-review-dialog.tsx index ff7e8d49d..842bd959f 100644 --- a/src/components/labs/ocr-review-dialog.tsx +++ b/src/components/labs/ocr-review-dialog.tsx @@ -220,11 +220,12 @@ export function OcrReviewDialog({ if (file) onFilePicked(file); }} /> - +
) : (