mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 14:32:03 +00:00
Merge remote-tracking branch 'origin/main' into release/v1.47.5
# Conflicts: # src/__tests__/baselines/source-file-lines.json # src/__tests__/baselines/source-function-lines.json # src/__tests__/baselines/test-as-never.json # src/__tests__/baselines/version-stamp-comments.json # src/__tests__/sharing-surface-guard.test.ts
This commit is contained in:
commit
5ac998e4f0
112 files changed
+1816
-593
No files matched your search
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$comment": "Production files over 800 lines and their length. Maintained by src/__tests__/source-size-ratchet.test.ts.",
|
||||
"count": 84,
|
||||
"total": 93809,
|
||||
"total": 93815,
|
||||
"entries": {
|
||||
"app/medications/page-client.tsx": 839,
|
||||
"components/charts/mood-chart.tsx": 1166,
|
||||
@@ -82,7 +82,7 @@
|
||||
"lib/search/search-records.ts": 996,
|
||||
"lib/sharing/grants.ts": 806,
|
||||
"lib/support/report.ts": 903,
|
||||
"lib/telegram-webhook-handlers.ts": 1313,
|
||||
"lib/telegram-webhook-handlers.ts": 1319,
|
||||
"lib/validations/inbound-documents.ts": 1018,
|
||||
"lib/withings/sync-sleep.ts": 884,
|
||||
"lib/withings/sync.ts": 933,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$comment": "Production functions over 200 lines, keyed \"file :: name\", and their length. Maintained by src/__tests__/source-size-ratchet.test.ts.",
|
||||
"count": 336,
|
||||
"total": 109383,
|
||||
"total": 109357,
|
||||
"entries": {
|
||||
"app/achievements/page.tsx :: AchievementsPage": 206,
|
||||
"app/api/admin/backups/upload/route.ts :: apiHandler(arg)": 275,
|
||||
@@ -36,7 +36,7 @@
|
||||
"app/api/nutrients/batch/route.ts :: postBatch": 304,
|
||||
"app/api/onboarding/complete/route.ts :: completeNeedsFlow": 218,
|
||||
"app/api/record-settings/[family]/route.ts :: apiHandler(arg) #2": 262,
|
||||
"app/api/user/ai-provider/route.ts :: apiHandler(arg) #2": 250,
|
||||
"app/api/user/ai-provider/route.ts :: apiHandler(arg) #2": 224,
|
||||
"app/api/withings/callback/route.ts :: apiHandler(arg)": 247,
|
||||
"app/auth/login/page.tsx :: LoginPage": 567,
|
||||
"app/auth/register/page.tsx :: RegisterPage": 285,
|
||||
@@ -171,7 +171,7 @@
|
||||
"components/mood/mood-form.tsx :: MoodForm": 514,
|
||||
"components/mood/mood-list.tsx :: MoodList": 1109,
|
||||
"components/mood/mood-tag-picker.tsx :: MoodTagPicker": 257,
|
||||
"components/onboarding/confirm-screen.tsx :: ConfirmScreen": 255,
|
||||
"components/onboarding/confirm-screen.tsx :: ConfirmScreen": 251,
|
||||
"components/onboarding/getting-started-checklist.tsx :: GettingStartedChecklist": 423,
|
||||
"components/onboarding/tour.tsx :: OnboardingTour": 544,
|
||||
"components/practitioners/practitioner-list.tsx :: PractitionerList": 225,
|
||||
@@ -330,8 +330,8 @@
|
||||
"lib/record-activity/activity-verb.ts :: recordActivityVerbLine": 261,
|
||||
"lib/strava/sync.ts :: runStravaSync": 219,
|
||||
"lib/support/report.ts :: collectSupportReportFacts": 332,
|
||||
"lib/targets/build-response.ts :: buildTargetsResponse": 330,
|
||||
"lib/targets/vitals-builder.ts :: buildVitalTargets": 324,
|
||||
"lib/targets/build-response.ts :: buildTargetsResponse": 332,
|
||||
"lib/targets/vitals-builder.ts :: buildVitalTargets": 326,
|
||||
"lib/telegram-webhook-handlers.ts :: handleCallback": 582,
|
||||
"lib/telegram-webhook-handlers.ts :: handleTextMessage": 322,
|
||||
"lib/withings/sync-activity.ts :: syncUserActivity": 377,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$comment": "as never casts in tests, per test file under src/. Maintained by src/__tests__/test-realism-ratchet.test.ts.",
|
||||
"count": 523,
|
||||
"total": 5458,
|
||||
"total": 5456,
|
||||
"entries": {
|
||||
"__tests__/api/auth/login/mfa-branch.test.ts": 10,
|
||||
"__tests__/api/auth/mfa/verify.test.ts": 9,
|
||||
@@ -33,8 +33,8 @@
|
||||
"app/api/admin/settings/module-availability/__tests__/route.test.ts": 13,
|
||||
"app/api/admin/settings/web-push-vapid/generate/__tests__/route.test.ts": 4,
|
||||
"app/api/admin/status/__tests__/route.test.ts": 3,
|
||||
"app/api/admin/users/__tests__/route.test.ts": 3,
|
||||
"app/api/admin/users/[id]/__tests__/route.test.ts": 8,
|
||||
"app/api/admin/users/__tests__/route.test.ts": 3,
|
||||
"app/api/ai/test/__tests__/route.test.ts": 26,
|
||||
"app/api/analytics/__tests__/route.test.ts": 25,
|
||||
"app/api/auth/claim/__tests__/route.test.ts": 13,
|
||||
@@ -55,24 +55,24 @@
|
||||
"app/api/auth/passkey/login-verify/__tests__/native-token.test.ts": 7,
|
||||
"app/api/auth/passkey/login-verify/__tests__/oidc-only.test.ts": 4,
|
||||
"app/api/auth/passkey/login-verify/__tests__/refusals.test.ts": 6,
|
||||
"app/api/auth/passkeys/__tests__/route.test.ts": 3,
|
||||
"app/api/auth/passkeys/[id]/__tests__/route.test.ts": 17,
|
||||
"app/api/auth/passkeys/__tests__/route.test.ts": 3,
|
||||
"app/api/auth/password/__tests__/route.test.ts": 5,
|
||||
"app/api/auth/register/__tests__/route.test.ts": 25,
|
||||
"app/api/biomarkers/__tests__/error-contract.test.ts": 3,
|
||||
"app/api/biomarkers/[id]/__tests__/delete-record-auth.test.ts": 3,
|
||||
"app/api/biomarkers/[id]/__tests__/route.test.ts": 23,
|
||||
"app/api/biomarkers/__tests__/error-contract.test.ts": 3,
|
||||
"app/api/coach/plans/__tests__/route.test.ts": 23,
|
||||
"app/api/coach/reminders/__tests__/route.test.ts": 15,
|
||||
"app/api/coach/suggested-actions/__tests__/route.test.ts": 7,
|
||||
"app/api/consent/ai/__tests__/route.test.ts": 10,
|
||||
"app/api/consent/ai/latest/__tests__/route.test.ts": 42,
|
||||
"app/api/consent/ai/web/__tests__/route.test.ts": 6,
|
||||
"app/api/custom-metrics/__tests__/route.test.ts": 14,
|
||||
"app/api/custom-metrics/[id]/__tests__/route.test.ts": 23,
|
||||
"app/api/custom-metrics/[id]/entries/__tests__/note-encryption.test.ts": 13,
|
||||
"app/api/custom-metrics/[id]/entries/__tests__/route.test.ts": 12,
|
||||
"app/api/custom-metrics/[id]/entries/__tests__/soft-delete-restore.test.ts": 6,
|
||||
"app/api/custom-metrics/__tests__/route.test.ts": 14,
|
||||
"app/api/cycle/__tests__/external-id-floor.test.ts": 9,
|
||||
"app/api/cycle/calendar/__tests__/day-entries.test.ts": 9,
|
||||
"app/api/cycle/calendar/__tests__/verdict-round-trip.test.ts": 26,
|
||||
@@ -85,9 +85,8 @@
|
||||
"app/api/dashboard/summary/__tests__/module-gate.test.ts": 6,
|
||||
"app/api/dashboard/summary/__tests__/route.test.ts": 86,
|
||||
"app/api/dashboard/widgets/__tests__/route.test.ts": 49,
|
||||
"app/api/devices/__tests__/route.test.ts": 32,
|
||||
"app/api/devices/[id]/__tests__/route.test.ts": 10,
|
||||
"app/api/documents/inbound/__tests__/route.test.ts": 62,
|
||||
"app/api/devices/__tests__/route.test.ts": 32,
|
||||
"app/api/documents/inbound/[id]/__tests__/route.test.ts": 56,
|
||||
"app/api/documents/inbound/[id]/chat/__tests__/route.test.ts": 42,
|
||||
"app/api/documents/inbound/[id]/extract/__tests__/route.test.ts": 38,
|
||||
@@ -96,6 +95,7 @@
|
||||
"app/api/documents/inbound/[id]/suggest/__tests__/route.test.ts": 12,
|
||||
"app/api/documents/inbound/[id]/summary/__tests__/route.test.ts": 31,
|
||||
"app/api/documents/inbound/[id]/thumbnail/__tests__/route.test.ts": 5,
|
||||
"app/api/documents/inbound/__tests__/route.test.ts": 62,
|
||||
"app/api/documents/inbound/layout/__tests__/route.test.ts": 11,
|
||||
"app/api/documents/inbound/reindex/__tests__/route.test.ts": 9,
|
||||
"app/api/export/__tests__/measurement-streaming.test.ts": 9,
|
||||
@@ -118,8 +118,8 @@
|
||||
"app/api/illness/episodes/[id]/day-logs/__tests__/route.test.ts": 8,
|
||||
"app/api/illness/episodes/[id]/restore/__tests__/route.test.ts": 9,
|
||||
"app/api/import/__tests__/route.test.ts": 47,
|
||||
"app/api/import/apple-health-export/__tests__/route.test.ts": 8,
|
||||
"app/api/import/apple-health-export/[jobId]/status/__tests__/route.test.ts": 4,
|
||||
"app/api/import/apple-health-export/__tests__/route.test.ts": 8,
|
||||
"app/api/import/csv/__tests__/route.test.ts": 4,
|
||||
"app/api/import/health-connect-export/__tests__/route.test.ts": 2,
|
||||
"app/api/ingest/medication/__tests__/route.test.ts": 28,
|
||||
@@ -134,14 +134,14 @@
|
||||
"app/api/insights/correlations/__tests__/route.test.ts": 12,
|
||||
"app/api/insights/derived/__tests__/route.test.ts": 12,
|
||||
"app/api/insights/derived/batch/__tests__/route.test.ts": 21,
|
||||
"app/api/insights/ecg/__tests__/route.test.ts": 5,
|
||||
"app/api/insights/ecg/[id]/__tests__/route.test.ts": 5,
|
||||
"app/api/insights/ecg/__tests__/route.test.ts": 5,
|
||||
"app/api/insights/generate/__tests__/route.test.ts": 54,
|
||||
"app/api/insights/layout/__tests__/route.test.ts": 23,
|
||||
"app/api/insights/metric-status/__tests__/route.test.ts": 7,
|
||||
"app/api/insights/mood-status/__tests__/route.test.ts": 10,
|
||||
"app/api/insights/patterns/__tests__/route.test.ts": 1,
|
||||
"app/api/insights/patterns/[id]/__tests__/route.test.ts": 4,
|
||||
"app/api/insights/patterns/__tests__/route.test.ts": 1,
|
||||
"app/api/insights/pregenerate/__tests__/route.test.ts": 4,
|
||||
"app/api/insights/provider-chain/__tests__/put.test.ts": 4,
|
||||
"app/api/insights/provider-chain/__tests__/route.test.ts": 13,
|
||||
@@ -163,12 +163,12 @@
|
||||
"app/api/mcp/oauth/__tests__/token.test.ts": 14,
|
||||
"app/api/mcp/tokens/__tests__/route.test.ts": 3,
|
||||
"app/api/measurement-categories/__tests__/route.test.ts": 3,
|
||||
"app/api/measurements/[id]/__tests__/route.test.ts": 8,
|
||||
"app/api/measurements/__tests__/arrival-wiring.test.ts": 7,
|
||||
"app/api/measurements/__tests__/group-by-day.test.ts": 10,
|
||||
"app/api/measurements/__tests__/put-duplicate-timestamp.test.ts": 9,
|
||||
"app/api/measurements/__tests__/range-aggregation-route.test.ts": 10,
|
||||
"app/api/measurements/__tests__/zod-multi-issue.test.ts": 2,
|
||||
"app/api/measurements/[id]/__tests__/route.test.ts": 8,
|
||||
"app/api/measurements/batch/__tests__/aggregated-hr-wire.test.ts": 9,
|
||||
"app/api/measurements/batch/__tests__/duplicate-prefilter.test.ts": 1,
|
||||
"app/api/measurements/batch/__tests__/hr-bucket-observability.test.ts": 3,
|
||||
@@ -185,16 +185,16 @@
|
||||
"app/api/measurements/series-batch/__tests__/route.test.ts": 10,
|
||||
"app/api/measurements/series/__tests__/route.test.ts": 96,
|
||||
"app/api/measurements/series/__tests__/unknown-query-param-open.test.ts": 6,
|
||||
"app/api/medications/__tests__/route.test.ts": 43,
|
||||
"app/api/medications/[id]/__tests__/route.test.ts": 52,
|
||||
"app/api/medications/[id]/compliance/__tests__/route.test.ts": 18,
|
||||
"app/api/medications/[id]/dose-history/__tests__/route.test.ts": 15,
|
||||
"app/api/medications/[id]/glp1/__tests__/route.test.ts": 47,
|
||||
"app/api/medications/[id]/intake/[eventId]/__tests__/route.test.ts": 63,
|
||||
"app/api/medications/[id]/intake/__tests__/route.test.ts": 45,
|
||||
"app/api/medications/[id]/intake/__tests__/source-provenance.test.ts": 12,
|
||||
"app/api/medications/[id]/intake/[eventId]/__tests__/route.test.ts": 63,
|
||||
"app/api/medications/[id]/intake/import/__tests__/route.test.ts": 9,
|
||||
"app/api/medications/[id]/schedule-revisions/__tests__/route.test.ts": 24,
|
||||
"app/api/medications/__tests__/route.test.ts": 43,
|
||||
"app/api/medications/compliance/__tests__/route.test.ts": 10,
|
||||
"app/api/medications/extract/__tests__/route.test.ts": 37,
|
||||
"app/api/medications/intake/__tests__/route.test.ts": 59,
|
||||
@@ -202,14 +202,14 @@
|
||||
"app/api/medications/intake/bulk/__tests__/route.test.ts": 68,
|
||||
"app/api/medications/intake/dose-history-import/__tests__/route.test.ts": 7,
|
||||
"app/api/medications/layout/__tests__/route.test.ts": 17,
|
||||
"app/api/mental-health/assessments/__tests__/route.test.ts": 12,
|
||||
"app/api/mental-health/assessments/[id]/__tests__/route.test.ts": 7,
|
||||
"app/api/mental-health/assessments/__tests__/route.test.ts": 12,
|
||||
"app/api/meta/capabilities/__tests__/route.test.ts": 1,
|
||||
"app/api/monitoring/glitchtip/__tests__/route.test.ts": 2,
|
||||
"app/api/monitoring/umami-script/__tests__/route.test.ts": 2,
|
||||
"app/api/monitoring/umami/[...path]/__tests__/route.test.ts": 4,
|
||||
"app/api/mood-entries/__tests__/route.test.ts": 6,
|
||||
"app/api/mood-entries/[id]/__tests__/route.test.ts": 8,
|
||||
"app/api/mood-entries/__tests__/route.test.ts": 6,
|
||||
"app/api/mood-entries/bulk-delete/__tests__/route.test.ts": 10,
|
||||
"app/api/mood-entries/bulk/__tests__/route.test.ts": 17,
|
||||
"app/api/mood-entries/restore/__tests__/route.test.ts": 11,
|
||||
@@ -236,14 +236,14 @@
|
||||
"app/api/sleep/rhythm/__tests__/route.test.ts": 6,
|
||||
"app/api/sync/changes/__tests__/module-gate.test.ts": 7,
|
||||
"app/api/sync/state/__tests__/route.test.ts": 8,
|
||||
"app/api/telegram/webhook/__tests__/route.test.ts": 43,
|
||||
"app/api/telegram/webhook/__tests__/route.test.ts": 41,
|
||||
"app/api/tokens/documents/__tests__/route.test.ts": 25,
|
||||
"app/api/tokens/measurements/__tests__/route.test.ts": 25,
|
||||
"app/api/tokens/workouts/__tests__/route.test.ts": 25,
|
||||
"app/api/user/ai-provider/__tests__/legacy-private-host.test.ts": 2,
|
||||
"app/api/user/ai-provider/__tests__/route.test.ts": 12,
|
||||
"app/api/user/avatar/__tests__/route.test.ts": 13,
|
||||
"app/api/user/avatar/[id]/__tests__/route.test.ts": 5,
|
||||
"app/api/user/avatar/__tests__/route.test.ts": 13,
|
||||
"app/api/user/profile/__tests__/route.test.ts": 29,
|
||||
"app/api/user/thresholds/__tests__/route.test.ts": 7,
|
||||
"app/api/whoop/callback/__tests__/route.test.ts": 2,
|
||||
@@ -251,8 +251,8 @@
|
||||
"app/api/withings/callback/__tests__/route.test.ts": 9,
|
||||
"app/api/withings/connect/__tests__/route.test.ts": 4,
|
||||
"app/api/withings/credentials/__tests__/route.test.ts": 4,
|
||||
"app/api/withings/webhook/__tests__/route.test.ts": 26,
|
||||
"app/api/withings/webhook/[token]/__tests__/route.test.ts": 8,
|
||||
"app/api/withings/webhook/__tests__/route.test.ts": 26,
|
||||
"app/api/workouts/__tests__/batch-create.test.ts": 13,
|
||||
"app/api/workouts/__tests__/canonical-dedup.test.ts": 20,
|
||||
"app/api/workouts/batch/__tests__/unstable-external-id.test.ts": 4,
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"$comment": "Comment lines that open with a release version, per file under src/. Maintained by src/__tests__/version-stamp-ratchet.test.ts.",
|
||||
"count": 2872,
|
||||
"total": 9153,
|
||||
"total": 9152,
|
||||
"entries": {
|
||||
"__tests__/account-payload-consumer-guard.test.ts": 2,
|
||||
"__tests__/acting-account-boundary-guard.test.ts": 7,
|
||||
@@ -172,9 +172,9 @@
|
||||
"app/api/auth/refresh/route.ts": 2,
|
||||
"app/api/auth/register/__tests__/route.test.ts": 5,
|
||||
"app/api/auth/register/route.ts": 10,
|
||||
"app/api/biomarkers/__tests__/error-contract.test.ts": 1,
|
||||
"app/api/biomarkers/[id]/__tests__/route.test.ts": 2,
|
||||
"app/api/biomarkers/[id]/route.ts": 6,
|
||||
"app/api/biomarkers/__tests__/error-contract.test.ts": 1,
|
||||
"app/api/biomarkers/route.ts": 4,
|
||||
"app/api/c/[token]/unlock/__tests__/route.test.ts": 1,
|
||||
"app/api/c/[token]/unlock/route.ts": 1,
|
||||
@@ -184,12 +184,12 @@
|
||||
"app/api/coach/about-me/questions/__tests__/route-module-gate.test.ts": 1,
|
||||
"app/api/coach/about-me/questions/route.ts": 3,
|
||||
"app/api/coach/about-me/route.ts": 4,
|
||||
"app/api/coach/plans/__tests__/route.test.ts": 1,
|
||||
"app/api/coach/plans/[id]/route.ts": 2,
|
||||
"app/api/coach/plans/__tests__/route.test.ts": 1,
|
||||
"app/api/coach/plans/route.ts": 1,
|
||||
"app/api/coach/reminder-suggestions/route.ts": 1,
|
||||
"app/api/coach/reminders/__tests__/route.test.ts": 1,
|
||||
"app/api/coach/reminders/[id]/route.ts": 1,
|
||||
"app/api/coach/reminders/__tests__/route.test.ts": 1,
|
||||
"app/api/coach/reminders/route.ts": 1,
|
||||
"app/api/coach/suggested-actions/__tests__/route.test.ts": 1,
|
||||
"app/api/coach/suggested-actions/route.ts": 1,
|
||||
@@ -197,9 +197,9 @@
|
||||
"app/api/consent/ai/latest/__tests__/route.test.ts": 3,
|
||||
"app/api/consent/ai/latest/route.ts": 3,
|
||||
"app/api/consent/ai/route.ts": 3,
|
||||
"app/api/custom-metrics/[id]/entries/[entryId]/route.ts": 2,
|
||||
"app/api/custom-metrics/[id]/entries/__tests__/note-encryption.test.ts": 1,
|
||||
"app/api/custom-metrics/[id]/entries/__tests__/soft-delete-restore.test.ts": 1,
|
||||
"app/api/custom-metrics/[id]/entries/[entryId]/route.ts": 2,
|
||||
"app/api/custom-metrics/[id]/entries/route.ts": 4,
|
||||
"app/api/custom-metrics/[id]/route.ts": 1,
|
||||
"app/api/custom-metrics/route.ts": 1,
|
||||
@@ -209,8 +209,8 @@
|
||||
"app/api/cycle/day-logs/[id]/route.ts": 4,
|
||||
"app/api/cycle/day-logs/route.ts": 1,
|
||||
"app/api/cycle/period/route.ts": 4,
|
||||
"app/api/cycle/symptoms/custom/__tests__/custom-crud.test.ts": 1,
|
||||
"app/api/cycle/symptoms/custom/[key]/route.ts": 1,
|
||||
"app/api/cycle/symptoms/custom/__tests__/custom-crud.test.ts": 1,
|
||||
"app/api/cycle/symptoms/custom/route.ts": 3,
|
||||
"app/api/dashboard/chart-overlay-prefs/__tests__/route.test.ts": 1,
|
||||
"app/api/dashboard/chart-overlay-prefs/route.ts": 2,
|
||||
@@ -220,11 +220,10 @@
|
||||
"app/api/dashboard/summary/route.ts": 5,
|
||||
"app/api/dashboard/widgets/__tests__/route.test.ts": 4,
|
||||
"app/api/dashboard/widgets/route.ts": 14,
|
||||
"app/api/devices/__tests__/route.test.ts": 1,
|
||||
"app/api/devices/[id]/__tests__/route.test.ts": 1,
|
||||
"app/api/devices/[id]/route.ts": 1,
|
||||
"app/api/devices/__tests__/route.test.ts": 1,
|
||||
"app/api/devices/route.ts": 4,
|
||||
"app/api/documents/inbound/__tests__/route.test.ts": 1,
|
||||
"app/api/documents/inbound/[id]/__tests__/route.test.ts": 1,
|
||||
"app/api/documents/inbound/[id]/chat/__tests__/route.test.ts": 2,
|
||||
"app/api/documents/inbound/[id]/chat/route.ts": 1,
|
||||
@@ -239,6 +238,7 @@
|
||||
"app/api/documents/inbound/[id]/suggest/route.ts": 2,
|
||||
"app/api/documents/inbound/[id]/summary/route.ts": 2,
|
||||
"app/api/documents/inbound/[id]/thumbnail/route.ts": 1,
|
||||
"app/api/documents/inbound/__tests__/route.test.ts": 1,
|
||||
"app/api/documents/inbound/reindex/route.ts": 1,
|
||||
"app/api/documents/inbound/route.ts": 2,
|
||||
"app/api/documents/inbound/usage/route.ts": 1,
|
||||
@@ -257,10 +257,10 @@
|
||||
"app/api/export/mood/route.ts": 2,
|
||||
"app/api/family-history/[id]/route.ts": 2,
|
||||
"app/api/family-history/route.ts": 1,
|
||||
"app/api/fhir/Patient/$everything/route.ts": 1,
|
||||
"app/api/fhir/__tests__/observation-series.test.ts": 1,
|
||||
"app/api/fhir/__tests__/route.test.ts": 1,
|
||||
"app/api/fhir/metadata/route.ts": 1,
|
||||
"app/api/fhir/Patient/$everything/route.ts": 1,
|
||||
"app/api/fitbit/callback/route.ts": 1,
|
||||
"app/api/fitbit/connect/route.ts": 1,
|
||||
"app/api/fitbit/credentials/route.ts": 1,
|
||||
@@ -289,6 +289,11 @@
|
||||
"app/api/insights/breathing-screening/route.ts": 2,
|
||||
"app/api/insights/cards/__tests__/route.test.ts": 2,
|
||||
"app/api/insights/cards/route.ts": 8,
|
||||
"app/api/insights/chat/[id]/attachments/[documentId]/route.ts": 1,
|
||||
"app/api/insights/chat/[id]/attachments/__tests__/route.test.ts": 1,
|
||||
"app/api/insights/chat/[id]/attachments/route.ts": 1,
|
||||
"app/api/insights/chat/[id]/messages/[messageId]/trail/__tests__/route.test.ts": 1,
|
||||
"app/api/insights/chat/[id]/route.ts": 1,
|
||||
"app/api/insights/chat/__tests__/dialog-harness.ts": 1,
|
||||
"app/api/insights/chat/__tests__/golden-transcripts.test.ts": 1,
|
||||
"app/api/insights/chat/__tests__/route-activity.test.ts": 1,
|
||||
@@ -300,19 +305,14 @@
|
||||
"app/api/insights/chat/__tests__/route-snapshot-once.test.ts": 2,
|
||||
"app/api/insights/chat/__tests__/route-tool-mode.test.ts": 4,
|
||||
"app/api/insights/chat/__tests__/route-workout-scope.test.ts": 1,
|
||||
"app/api/insights/chat/[id]/attachments/__tests__/route.test.ts": 1,
|
||||
"app/api/insights/chat/[id]/attachments/[documentId]/route.ts": 1,
|
||||
"app/api/insights/chat/[id]/attachments/route.ts": 1,
|
||||
"app/api/insights/chat/[id]/messages/[messageId]/trail/__tests__/route.test.ts": 1,
|
||||
"app/api/insights/chat/[id]/route.ts": 1,
|
||||
"app/api/insights/chat/fenced/__tests__/route.test.ts": 1,
|
||||
"app/api/insights/chat/fenced/route.ts": 1,
|
||||
"app/api/insights/chat/messages/[id]/feedback/route.ts": 3,
|
||||
"app/api/insights/chat/route.ts": 9,
|
||||
"app/api/insights/coach-read/route.ts": 2,
|
||||
"app/api/insights/coach/facts/[id]/route.ts": 2,
|
||||
"app/api/insights/coach/facts/__tests__/route-memory.test.ts": 1,
|
||||
"app/api/insights/coach/facts/__tests__/route.test.ts": 1,
|
||||
"app/api/insights/coach/facts/[id]/route.ts": 2,
|
||||
"app/api/insights/coach/facts/route.ts": 1,
|
||||
"app/api/insights/coach/nudge-status/route.ts": 1,
|
||||
"app/api/insights/coach/seen/route.ts": 1,
|
||||
@@ -323,9 +323,9 @@
|
||||
"app/api/insights/derived/batch/__tests__/route.test.ts": 3,
|
||||
"app/api/insights/derived/batch/route.ts": 6,
|
||||
"app/api/insights/derived/route.ts": 5,
|
||||
"app/api/insights/ecg/__tests__/route.test.ts": 1,
|
||||
"app/api/insights/ecg/[id]/__tests__/route.test.ts": 1,
|
||||
"app/api/insights/ecg/[id]/route.ts": 2,
|
||||
"app/api/insights/ecg/__tests__/route.test.ts": 1,
|
||||
"app/api/insights/ecg/route.ts": 1,
|
||||
"app/api/insights/feedback/route.ts": 2,
|
||||
"app/api/insights/generate/__tests__/route.test.ts": 11,
|
||||
@@ -352,7 +352,7 @@
|
||||
"app/api/insights/rhythm-events/route.ts": 2,
|
||||
"app/api/insights/settings/route.ts": 1,
|
||||
"app/api/insights/targets/__tests__/route.test.ts": 1,
|
||||
"app/api/insights/targets/route.ts": 2,
|
||||
"app/api/insights/targets/route.ts": 1,
|
||||
"app/api/insights/weight-status/route.ts": 2,
|
||||
"app/api/integrations/healthkit/__tests__/route.test.ts": 4,
|
||||
"app/api/integrations/healthkit/route.ts": 3,
|
||||
@@ -364,8 +364,8 @@
|
||||
"app/api/internal/deploy-webhook/route.ts": 1,
|
||||
"app/api/internal/web-vitals/__tests__/route.test.ts": 1,
|
||||
"app/api/internal/web-vitals/route.ts": 1,
|
||||
"app/api/labs/__tests__/error-contract.test.ts": 1,
|
||||
"app/api/labs/[id]/route.ts": 7,
|
||||
"app/api/labs/__tests__/error-contract.test.ts": 1,
|
||||
"app/api/labs/ocr/capability/route.ts": 1,
|
||||
"app/api/labs/ocr/commit/__tests__/route.test.ts": 2,
|
||||
"app/api/labs/ocr/commit/route.ts": 4,
|
||||
@@ -385,13 +385,13 @@
|
||||
"app/api/measurement-reminders/[id]/skip/route.ts": 1,
|
||||
"app/api/measurement-reminders/[id]/snooze/route.ts": 1,
|
||||
"app/api/measurement-reminders/route.ts": 3,
|
||||
"app/api/measurements/[id]/__tests__/route.test.ts": 2,
|
||||
"app/api/measurements/[id]/route.ts": 16,
|
||||
"app/api/measurements/__tests__/arrival-wiring.test.ts": 1,
|
||||
"app/api/measurements/__tests__/group-by-day.test.ts": 8,
|
||||
"app/api/measurements/__tests__/put-duplicate-timestamp.test.ts": 1,
|
||||
"app/api/measurements/__tests__/range-aggregation-route.test.ts": 3,
|
||||
"app/api/measurements/__tests__/zod-multi-issue.test.ts": 4,
|
||||
"app/api/measurements/[id]/__tests__/route.test.ts": 2,
|
||||
"app/api/measurements/[id]/route.ts": 16,
|
||||
"app/api/measurements/batch/__tests__/aggregated-hr-wire.test.ts": 1,
|
||||
"app/api/measurements/batch/__tests__/duplicate-prefilter.test.ts": 2,
|
||||
"app/api/measurements/batch/__tests__/hr-bucket-observability.test.ts": 1,
|
||||
@@ -408,7 +408,6 @@
|
||||
"app/api/measurements/series-batch/route.ts": 1,
|
||||
"app/api/measurements/series/__tests__/route.test.ts": 5,
|
||||
"app/api/measurements/series/route.ts": 6,
|
||||
"app/api/medications/__tests__/route.test.ts": 10,
|
||||
"app/api/medications/[id]/__tests__/route.test.ts": 8,
|
||||
"app/api/medications/[id]/api-endpoint/route.ts": 2,
|
||||
"app/api/medications/[id]/cadence/route.ts": 10,
|
||||
@@ -420,10 +419,10 @@
|
||||
"app/api/medications/[id]/dose-history/route.ts": 14,
|
||||
"app/api/medications/[id]/glp1/__tests__/route.test.ts": 3,
|
||||
"app/api/medications/[id]/glp1/route.ts": 8,
|
||||
"app/api/medications/[id]/intake/__tests__/route.test.ts": 11,
|
||||
"app/api/medications/[id]/intake/__tests__/source-provenance.test.ts": 1,
|
||||
"app/api/medications/[id]/intake/[eventId]/__tests__/route.test.ts": 9,
|
||||
"app/api/medications/[id]/intake/[eventId]/route.ts": 4,
|
||||
"app/api/medications/[id]/intake/__tests__/route.test.ts": 11,
|
||||
"app/api/medications/[id]/intake/__tests__/source-provenance.test.ts": 1,
|
||||
"app/api/medications/[id]/intake/bulk-delete/route.ts": 7,
|
||||
"app/api/medications/[id]/intake/import/__tests__/route.test.ts": 2,
|
||||
"app/api/medications/[id]/intake/import/route.ts": 6,
|
||||
@@ -431,11 +430,12 @@
|
||||
"app/api/medications/[id]/inventory/[itemId]/route.ts": 8,
|
||||
"app/api/medications/[id]/inventory/route.ts": 4,
|
||||
"app/api/medications/[id]/phase-config/route.ts": 4,
|
||||
"app/api/medications/[id]/schedule-revisions/__tests__/route.test.ts": 1,
|
||||
"app/api/medications/[id]/schedule-revisions/[revisionId]/route.ts": 9,
|
||||
"app/api/medications/[id]/schedule-revisions/__tests__/route.test.ts": 1,
|
||||
"app/api/medications/[id]/schedule-revisions/route.ts": 3,
|
||||
"app/api/medications/[id]/side-effects/[logId]/route.ts": 2,
|
||||
"app/api/medications/[id]/side-effects/route.ts": 5,
|
||||
"app/api/medications/__tests__/route.test.ts": 10,
|
||||
"app/api/medications/categories/[key]/route.ts": 1,
|
||||
"app/api/medications/categories/route.ts": 1,
|
||||
"app/api/medications/compliance/__tests__/route.test.ts": 2,
|
||||
@@ -452,9 +452,9 @@
|
||||
"app/api/medications/route.ts": 2,
|
||||
"app/api/mental-health/assessments/__tests__/route.test.ts": 2,
|
||||
"app/api/mental-health/assessments/route.ts": 6,
|
||||
"app/api/mood-entries/__tests__/route.test.ts": 7,
|
||||
"app/api/mood-entries/[id]/__tests__/route.test.ts": 4,
|
||||
"app/api/mood-entries/[id]/route.ts": 22,
|
||||
"app/api/mood-entries/__tests__/route.test.ts": 7,
|
||||
"app/api/mood-entries/bulk-delete/__tests__/route.test.ts": 1,
|
||||
"app/api/mood-entries/bulk-delete/route.ts": 4,
|
||||
"app/api/mood-entries/bulk/__tests__/route.test.ts": 5,
|
||||
@@ -544,12 +544,12 @@
|
||||
"app/api/withings/connect/__tests__/route.test.ts": 1,
|
||||
"app/api/withings/connect/route.ts": 3,
|
||||
"app/api/withings/status/route.ts": 1,
|
||||
"app/api/withings/webhook/__tests__/route.test.ts": 1,
|
||||
"app/api/withings/webhook/[token]/__tests__/route.test.ts": 1,
|
||||
"app/api/withings/webhook/__tests__/route.test.ts": 1,
|
||||
"app/api/withings/webhook/route.ts": 2,
|
||||
"app/api/workouts/[id]/route.ts": 2,
|
||||
"app/api/workouts/__tests__/batch-create.test.ts": 3,
|
||||
"app/api/workouts/__tests__/canonical-dedup.test.ts": 3,
|
||||
"app/api/workouts/[id]/route.ts": 2,
|
||||
"app/api/workouts/batch/route.ts": 3,
|
||||
"app/api/workouts/route.ts": 2,
|
||||
"app/auth/claim/page.tsx": 1,
|
||||
@@ -651,19 +651,19 @@
|
||||
"app/loading.tsx": 2,
|
||||
"app/mcp/__tests__/route.test.ts": 5,
|
||||
"app/measurements/page.tsx": 5,
|
||||
"app/medications/[id]/history/page.tsx": 1,
|
||||
"app/medications/[id]/page.tsx": 2,
|
||||
"app/medications/__tests__/category-filter.test.tsx": 2,
|
||||
"app/medications/__tests__/list-view-toggle.test.tsx": 5,
|
||||
"app/medications/__tests__/page-prefetch.test.tsx": 1,
|
||||
"app/medications/__tests__/take-all-due-affordance.test.tsx": 1,
|
||||
"app/medications/[id]/history/page.tsx": 1,
|
||||
"app/medications/[id]/page.tsx": 2,
|
||||
"app/medications/new/page.tsx": 1,
|
||||
"app/medications/page-client.tsx": 50,
|
||||
"app/mental-wellbeing/page.tsx": 1,
|
||||
"app/mood/page-client.tsx": 2,
|
||||
"app/not-found.tsx": 2,
|
||||
"app/onboarding/__tests__/page.test.tsx": 1,
|
||||
"app/onboarding/[step]/page.tsx": 1,
|
||||
"app/onboarding/__tests__/page.test.tsx": 1,
|
||||
"app/onboarding/handover/page.tsx": 1,
|
||||
"app/onboarding/page.tsx": 2,
|
||||
"app/privacy/__tests__/page.test.tsx": 1,
|
||||
|
||||
@@ -469,17 +469,15 @@ const REGISTRY: DestructiveEntry[] = [
|
||||
destroys:
|
||||
"a visit with its reason, outcome and the links it collected — and, for a booked one, the appointment reminder that would have nudged about it",
|
||||
triggers: ["components/encounters/encounter-sheet.tsx"],
|
||||
// The route soft-deletes and a restore route exists, but nothing in the
|
||||
// product reaches it yet, so from a person's side the visit is gone. This
|
||||
// becomes "restorable" the day a surface offers the undo, not before.
|
||||
recovery: "tombstoned-no-restore",
|
||||
// The delete toast offers the Undo that calls the restore route.
|
||||
recovery: "restorable",
|
||||
confirm: ["AlertDialog"],
|
||||
},
|
||||
{
|
||||
file: "hooks/use-practitioners.ts",
|
||||
destroys: "one address-book entry",
|
||||
triggers: ["components/practitioners/practitioner-list.tsx"],
|
||||
recovery: "tombstoned-no-restore",
|
||||
recovery: "restorable",
|
||||
confirm: ["AlertDialog"],
|
||||
},
|
||||
{
|
||||
@@ -487,9 +485,8 @@ const REGISTRY: DestructiveEntry[] = [
|
||||
destroys:
|
||||
"one logged dose with its lot, site and the document links it collected — the booster reminder it once satisfied is deliberately not rewound",
|
||||
triggers: ["components/vaccinations/vaccination-sheet.tsx"],
|
||||
// The route soft-deletes and a restore route exists, but no surface offers
|
||||
// the undo yet, so from a person's side the dose is gone.
|
||||
recovery: "tombstoned-no-restore",
|
||||
// The delete toast offers the Undo that calls the restore route.
|
||||
recovery: "restorable",
|
||||
confirm: ["AlertDialog"],
|
||||
},
|
||||
|
||||
|
||||
@@ -45,7 +45,7 @@ const REGISTRY = "lib/measurements/display-transform.ts";
|
||||
/**
|
||||
* The one module allowed to import the unrounded escape hatch. The target
|
||||
* adapter needs the unrounded pound edge of a canonical guardrail so it can
|
||||
* round it INWARD — rounding to the nearest tenth first can put the pound
|
||||
* round it INWARD: rounding to the nearest tenth first can put the pound
|
||||
* edge outside the kilogram window, and the server rejects what converts
|
||||
* back from it.
|
||||
*/
|
||||
|
||||
@@ -1557,7 +1557,7 @@ const DELEGABLE_ROUTES: Record<string, DelegableEntry> = {
|
||||
},
|
||||
"app/api/insights/targets/route.ts": {
|
||||
domain: "record",
|
||||
why: "The record's resolved targets. Reached only through this module's MANAGE arm; the argument for admitting it is the manage literal's reason line, and the entry here is what leg (a) freezes and leg (f) checks the section against.",
|
||||
why: "The record's resolved targets: the bands and reference ranges the dashboard snapshot already paints on the whole-record grant, read the same way, with no provider on the path. GET only; nothing is written here.",
|
||||
},
|
||||
"app/api/insights/ecg/route.ts": {
|
||||
domain: "record",
|
||||
@@ -2108,11 +2108,6 @@ const DELEGABLE_MANAGE_ROUTES: Record<string, ManageEntry> = {
|
||||
conditions: [],
|
||||
why: "A score's daily course, read from the same rows the score pages and the day view read. Deterministic, no provider, nothing enqueued.",
|
||||
},
|
||||
"app/api/insights/targets/route.ts": {
|
||||
domain: "record",
|
||||
conditions: [],
|
||||
why: "The record's resolved targets.",
|
||||
},
|
||||
"app/api/insights/ecg/route.ts": {
|
||||
domain: "record",
|
||||
conditions: [],
|
||||
@@ -2315,9 +2310,9 @@ const ACTOR_ROUTES: Record<string, string> = {
|
||||
* 276 -> 278.
|
||||
*
|
||||
* The Insights presence read joins the record list and the manage literal:
|
||||
* the tab strip's gate over the overview, counts and flags only. 278 -> 280.
|
||||
* the tab strip's gate over the overview, counts and flags only. 277 -> 279.
|
||||
*/
|
||||
const FROZEN_ENTRY_COUNT = 280;
|
||||
const FROZEN_ENTRY_COUNT = 279;
|
||||
|
||||
/**
|
||||
* The two surfaces that authenticate a Bearer token outside `requireAuth` —
|
||||
|
||||
Reference in new issue
Block a user