mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-12 06:06:10 +00:00
Merge v1.25.1: drop the repeated inline disclaimers from medication, insights, and labs
This commit is contained in:
commit
d7fd3ea9b4
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",
|
||||
};
|
||||
|
||||
@@ -8,7 +8,6 @@ import { useMounted } from "@/hooks/use-mounted";
|
||||
import { useFeatureFlags } from "@/hooks/use-feature-flags";
|
||||
import { useWorkouts } from "@/hooks/use-workouts";
|
||||
import { InsightsTabStrip } from "@/components/insights/insights-tab-strip";
|
||||
import { MedicalDisclaimer } from "@/components/common/medical-disclaimer";
|
||||
import {
|
||||
nextAdvisorPollInterval,
|
||||
useInsightsAdvisorQuery,
|
||||
@@ -160,14 +159,6 @@ export function InsightsLayoutShell({ children }: { children: ReactNode }) {
|
||||
modules={user?.modules}
|
||||
/>
|
||||
{children}
|
||||
{/* v1.18.6 (DISC-01) — the page-level generic medical disclaimer was
|
||||
removed; the standing acknowledgment lives once at the start of
|
||||
onboarding and the legal text on the public privacy page.
|
||||
v1.25 — one calm, context-specific framing line for the whole
|
||||
Insights surface (the briefing, trends and correlations included):
|
||||
these are descriptive patterns from the user's own data, not a
|
||||
clinical assessment. Layered, not a wall of warnings. */}
|
||||
<MedicalDisclaimer variant="insights" className="px-1" />
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user