mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-17 15:42:24 +00:00
Enforce the reminder nag cap, compare the disclaimer version, drop the unread analytics columns
- The daily Coach sweep now charges each ignored day against surfaceCount and auto-dismisses at three — the cap the schema comment promised since v1.22 but nothing enforced. - The welcome gate compares the stored disclaimer acknowledgment version against the current one, so revised disclaimer text re-prompts; /api/auth/me carries the version for the client. - slope90 and anomalyCount leave the analytics wire: slope90 had no reader anywhere (computed on every request, in SQL twice), and the slim path could never compute anomalyCount (it always reported 0). anomalyCount stays as an in-process field on summarize() for the insights feature builder, which is its only real consumer.
This commit is contained in:
1 parent
6b3a5a4182
commit
3b1314d1b0
29 files changed
+214
-104
No files matched your search
@@ -89,6 +89,13 @@ export interface AuthUser {
|
||||
* rather than failing the shape.
|
||||
*/
|
||||
disclaimerAcknowledgedAt?: string | null;
|
||||
/**
|
||||
* The disclaimer version that acknowledgment was given for. The welcome
|
||||
* gate compares it against the current `DISCLAIMER_VERSION` so a revised
|
||||
* disclaimer re-prompts instead of riding an old acknowledgment. Optional
|
||||
* for the same stale-payload reason as the timestamp above.
|
||||
*/
|
||||
disclaimerAcknowledgedVersion?: string | null;
|
||||
/**
|
||||
* v1.5.5 — relative URL of the user's self-hosted avatar, served
|
||||
* from `/api/user/avatar/{id}?v={updatedAtMs}`. Replaces the
|
||||
|
||||
Reference in new issue
Block a user