mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-14 22:50:51 +00:00
chore: remove leftovers of the deleted onboarding AI offer and badge
The end-to-end setup still seeded the shared-provider offer's account and captured its session, although the journey that used it is gone. Three comments still pointed at what was removed: the tour launcher cited the deleted personal-record badge as its model, the personal record worker said the badge still renders, and the morning briefing push said a concerning reading goes out as an anomaly notification, which nothing sends.
This commit is contained in:
1 parent
aacf06b7b3
commit
ce377ef56d
4 files changed
+6
-28
No files matched your search
@@ -244,8 +244,7 @@ export function TourLauncher({ ready = true }: TourLauncherProps) {
|
||||
// v1.4.47 — clock reading for the 24 h auto-launch gate. The
|
||||
// useState lazy-initialiser runs once at mount; subsequent re-renders
|
||||
// reuse the same value. This keeps the render path pure (React's
|
||||
// purity linter rejects a bare `Date.now()` reference in render) and
|
||||
// matches the established pattern in `personal-record-badge.tsx`:
|
||||
// purity linter rejects a bare `Date.now()` reference in render):
|
||||
// capture the clock at a stable boundary, then derive freshness from
|
||||
// it. The launcher only consults this value once per (user, flag)
|
||||
// tuple via the `decidedFor` guard, so a mount that takes ten
|
||||
|
||||
@@ -22,9 +22,9 @@
|
||||
* signal's headline without a figure in it, "your score is ready", or the
|
||||
* honest all-clear — never a reading, a dose or the score itself, since the
|
||||
* push lands on a locked phone). It is dispatched NON-URGENT, so it never escalates to a
|
||||
* Focus-bypassing / time-sensitive delivery — a concerning reading always stays
|
||||
* on `MEASUREMENT_ANOMALY`, never here. It fires ONLY inside a local morning
|
||||
* window, which is the quiet-hours guarantee for this nudge.
|
||||
* Focus-bypassing / time-sensitive delivery, and a concerning reading is never
|
||||
* pushed through it. It fires ONLY inside a local morning window, which is the
|
||||
* quiet-hours guarantee for this nudge.
|
||||
*/
|
||||
import { SESSION_USER_SELECT, type SessionUser } from "@/lib/auth/session-user";
|
||||
import type { PrismaClient } from "@/generated/prisma/client";
|
||||
|
||||
@@ -79,8 +79,8 @@ export interface DetectPersonalRecordsOptions {
|
||||
* Set when a batch ingest crosses the historical-backfill threshold
|
||||
* — a multi-year Apple Health import shouldn't fire hundreds of
|
||||
* pushes during initial sync. The flag rides through to the
|
||||
* dispatcher; the row is still written, the badge still renders, the
|
||||
* doctor report still picks it up.
|
||||
* dispatcher; the row is still written and the doctor report still
|
||||
* picks it up.
|
||||
*/
|
||||
silent?: boolean;
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user