mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-09 21:10:59 +00:00
Research Mode was the opt-in behind the estimated GLP-1 drug-level curve: turn it on, read a disclaimer, get the chart. The chart stopped consulting the flag several releases ago and has painted for every account since, so the switch on Settings → Advanced changed no screen in either position. An inert control that promises to hide a chart is worse than no control. The curve is simply part of the medication page now. Gone with the switch: the acknowledgment dialog, `/api/auth/me/research-mode`, the shared status DTO and its gate helper, the disclaimer-version stamp, the query key, and the three user columns the acknowledgment wrote (migration 0321). The Privacy page's second button pointed at the retired control and goes too. Settings → Advanced is now what it reads as: reset the data, delete the account.
9 lines
481 B
SQL
9 lines
481 B
SQL
-- Research Mode is gone: the estimated GLP-1 drug-level curve is part of the
|
|
-- medication page for everyone, so the opt-in flag and the two acknowledgment
|
|
-- stamps it kept have no reader and no writer left. The endpoint, the
|
|
-- acknowledgment dialog and the Settings switch went with them.
|
|
ALTER TABLE "users"
|
|
DROP COLUMN IF EXISTS "research_mode_enabled",
|
|
DROP COLUMN IF EXISTS "research_mode_acknowledged_at",
|
|
DROP COLUMN IF EXISTS "research_mode_acknowledged_version";
|