mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-14 22:50:51 +00:00
feat(modules): illness defaults on (remove born-gated mechanism)
This commit is contained in:
commit
6ba2d435c9
10 files changed
+37
-72
No files matched your search
@@ -78,12 +78,12 @@ const MODULE_ROUTE_TREES: ReadonlyArray<string> = [
|
||||
"src/app/api/biomarkers",
|
||||
"src/app/api/cycle",
|
||||
// v1.18.1 (W-B) — the illness/condition journal. Every `/api/illness/*`
|
||||
// route gates on the born-gated `illness` module via the thin
|
||||
// route gates on the `illness` module via the thin
|
||||
// `requireIllnessEnabled(...)` wrapper (which re-stamps the
|
||||
// illness-specific errorCode over `requireModuleEnabled("illness")`),
|
||||
// recognised below as a delegated gate. Walking the tree means a NEW
|
||||
// ungated illness route fails this test BY NAME rather than leaking the
|
||||
// surface over a Bearer token when the account never opted in.
|
||||
// surface over a Bearer token when the account turned the module off.
|
||||
"src/app/api/illness",
|
||||
"src/app/api/gamification",
|
||||
// v1.18.1 (D3) — medications graduated from CORE to a toggleable module.
|
||||
|
||||
@@ -26,7 +26,7 @@ import { createBiomarkerSchema } from "@/lib/validations/biomarkers";
|
||||
* The Labs module toggle is a UX-only nav preference; the data is owner-scoped
|
||||
* and read by cross-feature surfaces (Vorsorge reminder resolution, the
|
||||
* doctor-report PDF) regardless of the toggle. Deliberate opt-out, in contrast
|
||||
* to the born-gated `/api/illness/*` routes.
|
||||
* to the gated `/api/illness/*` routes.
|
||||
*
|
||||
* The catalog is the Labs feature's primary object: a marker is defined ONCE
|
||||
* (name, unit, reference bounds, optional context) and every later reading
|
||||
|
||||
@@ -28,7 +28,7 @@ import {
|
||||
/**
|
||||
* v1.17.1 — structured lab-result store (`/api/labs`).
|
||||
*
|
||||
* Module gate: unlike `/api/illness/*` (born-gated, every route 403s when the
|
||||
* Module gate: unlike `/api/illness/*` (gated, every route 403s when the
|
||||
* module is off), Labs is intentionally NOT server-gated. The Labs module
|
||||
* toggle is a UX-only nav/visibility preference — the data is always
|
||||
* owner-scoped and safe to read/write, and the Vorsorge lab-panel reminder
|
||||
|
||||
Reference in new issue
Block a user