mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 23:33:29 +00:00
Merge branch 'feat/v144-settings' into release/v1.44.0
# Conflicts: # src/components/settings/privacy-section.tsx
This commit is contained in:
commit
e1b70537cc
129 files changed
+5138
-3169
No files matched your search
@@ -0,0 +1,17 @@
|
||||
-- Two per-user preference columns for Settings.
|
||||
--
|
||||
-- module_list_layout_json: the card/list view, manual order and labs sort for
|
||||
-- the labs, illness and checkups lists. These lived in the browser until now,
|
||||
-- so they did not follow a person to another device. The client copies a value
|
||||
-- it still holds in the browser up once, when the server has none for that list.
|
||||
--
|
||||
-- preview_features_json: the per-user opt-in to preview features, one boolean
|
||||
-- per flag, all off by default.
|
||||
--
|
||||
-- Nullable, no default, no backfill: null reads as the defaults.
|
||||
--
|
||||
-- Reversibility: dropping the columns returns every list to its default
|
||||
-- presentation and switches every preview feature off.
|
||||
|
||||
ALTER TABLE "users" ADD COLUMN "module_list_layout_json" JSONB;
|
||||
ALTER TABLE "users" ADD COLUMN "preview_features_json" JSONB;
|
||||
@@ -367,6 +367,19 @@ model User {
|
||||
// Shape: { "groupOrder": ["<categoryKey>", ...],
|
||||
// "placements": { "<categoryKey>": ["<tagKey>", ...] } }
|
||||
moodTagLayoutJson Json? @map("mood_tag_layout_json")
|
||||
// Per-user list presentation for the labs, illness and checkups lists:
|
||||
// card/list view, manual order, and (labs only) the sort. One blob keyed by
|
||||
// list, resolved field by field on read (`src/lib/settings/module-list-layout.ts`),
|
||||
// preserve-when-absent PUT on `/api/settings/module-list-layout`. Null = the
|
||||
// defaults. Earlier releases kept the same choices in the browser; the client
|
||||
// copies a stored browser value up once when the server has none for that list.
|
||||
// Shape: { "version": 1, "labs": { "view": "list", "order": ["<id>"], "sortDir": "manual" }, ... }
|
||||
moduleListLayoutJson Json? @map("module_list_layout_json")
|
||||
/// Per-user opt-in to preview features, one boolean per flag, all off by
|
||||
/// default (`src/lib/settings/preview-features.ts`). Read and written by
|
||||
/// Settings > System through `/api/settings/preview-features`.
|
||||
/// @pending-consumer(topics preview) the `topics` flag is stored and shown, but no surface reads it yet; the topic overview pages will.
|
||||
previewFeaturesJson Json? @map("preview_features_json")
|
||||
// Blood-glucose display unit preference. Canonical storage is mg/dL.
|
||||
glucoseUnit String? @map("glucose_unit") // "mg/dL" | "mmol/L" | null = default "mg/dL"
|
||||
// v1.18.6 — explicit "I have diabetes / clinician glucose targets" opt-in.
|
||||
|
||||
Reference in new issue
Block a user