mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-18 16:12:11 +00:00
fix(ui): drop the repeated inline disclaimers from medication, insights, and labs
The layered self-description standard already carries the canonical intended-purpose line, the Coach standing note, the emergency note and the data-posture note. The medication, insights and labs surfaces each repeated a further context-specific disclaimer footer that added noise without adding meaning. Remove the three rendered footers and retire the now-unused `insights` / `labs` / `medications` disclaimer variants from the shared component (type, key map and doc). Drop the orphaned selfDescription keys from all six locale bundles so call-site and reverse i18n coverage stay in parity.
This commit is contained in:
1 parent
0c583323e0
commit
adb7892b97
10 files changed
+1
-53
No files matched your search
@@ -18,9 +18,6 @@ import { useTranslations } from "@/lib/i18n/context";
|
||||
* - `intendedPurpose` — the canonical "what this is / is not, not a medical
|
||||
* device" line. Reuse verbatim; do not paraphrase per surface.
|
||||
* - `coach` — the Coach standing line (works from your data, not a doctor).
|
||||
* - `insights` — descriptive-patterns framing for insights + the briefing.
|
||||
* - `labs` — your own records, ranges vary, only a clinician interprets.
|
||||
* - `medications` — tracks what you log, not dosing/interaction advice.
|
||||
* - `emergency` — the red-flag interstitial note (contact emergency services).
|
||||
* - `dataPosture` — self-hosted, data stays on your instance, BYOK / local AI.
|
||||
*
|
||||
@@ -29,20 +26,11 @@ import { useTranslations } from "@/lib/i18n/context";
|
||||
* floor; these notes are the gentle, in-context layer above it.
|
||||
*/
|
||||
export type DisclaimerVariant =
|
||||
| "intendedPurpose"
|
||||
| "coach"
|
||||
| "insights"
|
||||
| "labs"
|
||||
| "medications"
|
||||
| "emergency"
|
||||
| "dataPosture";
|
||||
"intendedPurpose" | "coach" | "emergency" | "dataPosture";
|
||||
|
||||
const VARIANT_KEY: Record<DisclaimerVariant, string> = {
|
||||
intendedPurpose: "selfDescription.intendedPurpose",
|
||||
coach: "selfDescription.coach",
|
||||
insights: "selfDescription.insights",
|
||||
labs: "selfDescription.labs",
|
||||
medications: "selfDescription.medications",
|
||||
emergency: "selfDescription.emergency",
|
||||
dataPosture: "selfDescription.dataPosture",
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user