mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 22:26:13 +00:00
feat(labs): add Lab-OCR scan and review screen
Add the Scan a report entry to the Labs page, gated on the capability probe. The review dialog uploads a photo or PDF, then shows each proposed reading for per-row confirm, edit, or discard with duplicate, new-biomarker, and low-confidence hints in the labs design language. Only confirmed rows commit. Add the OCR query key and the six-locale strings.
This commit is contained in:
1 parent
4d0856c56f
commit
ebfebe1fe3
12 files changed
+864
-7
No files matched your search
@@ -33,4 +33,8 @@ export const labKeys = {
|
||||
// the manager; both invalidate `biomarkers()` after a mutation.
|
||||
biomarkers: () => ["biomarkers"] as const,
|
||||
biomarkerDetail: (id: string) => ["biomarkers", "detail", id] as const,
|
||||
|
||||
// v1.18.9 — Lab-OCR capability probe (drives whether the "Scan a report"
|
||||
// affordance shows). Cheap GET; the dialog refetches it on open.
|
||||
ocrCapability: () => ["lab-ocr", "capability"] as const,
|
||||
};
|
||||
Reference in new issue
Block a user