mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-16 15:23:29 +00:00
The bulk measurement reads behind the insight features, the Coach snapshot timelines, the mood cross-metric pairing, the correlation windows and the weight and blood pressure status cards read newest-first across all their types under a single row cap. On an account with a wearable heart rate stream the cap filled within hours, and every weight, blood pressure or other sparse reading fell out of the read, so blocks reported no data for metrics with years of it. All of them now go through one read that descends the live partial index once per type, each type stopping at its own cap. The feature extraction and the Coach snapshot cap each type at 6000, so a block built from one type's read equals the block the full read builds (worst case 72,000 rows for the twelve feature types). The mood, correlation and status reads keep their old totals and share them fairly: each type keeps at least its share, a sparse one all of its window. The feature context's data span now comes from index probes over every type in the window rather than from the capped rows, and its measurement count is the readings the blocks were built from. Refs #1398
92 lines
3.9 KiB
JSON
92 lines
3.9 KiB
JSON
{
|
|
"$comment": "Production files over 800 lines and their length. Maintained by src/__tests__/source-size-ratchet.test.ts.",
|
|
"count": 84,
|
|
"total": 93816,
|
|
"entries": {
|
|
"app/medications/page-client.tsx": 842,
|
|
"components/charts/mood-chart.tsx": 1166,
|
|
"components/cycle/log-day-sheet.tsx": 1646,
|
|
"components/insights/coach-panel/chat-bubble.tsx": 821,
|
|
"components/insights/coach-panel/coach-conversation.tsx": 1278,
|
|
"components/insights/coach-panel/use-coach.ts": 1486,
|
|
"components/insights/derived/vitals-dashboard.tsx": 1033,
|
|
"components/insights/health-score-card.tsx": 1023,
|
|
"components/insights/insights-tab-strip.tsx": 1084,
|
|
"components/measurements/measurement-form.tsx": 815,
|
|
"components/medications/detail/medication-detail-tabs.tsx": 1133,
|
|
"components/medications/medication-table.tsx": 853,
|
|
"components/medications/wizard/wizard-payload.ts": 1431,
|
|
"components/mood/mood-list.tsx": 1408,
|
|
"components/records/life-circumstances-manager.tsx": 828,
|
|
"components/timeline/timeline-chart.tsx": 1093,
|
|
"components/timeline/timeline-geometry.ts": 1288,
|
|
"lib/ai/anthropic-client.ts": 804,
|
|
"lib/ai/coach/about-me.ts": 1012,
|
|
"lib/ai/coach/coach-prose-grounding.ts": 1091,
|
|
"lib/ai/coach/persistence.ts": 1218,
|
|
"lib/ai/coach/results/metric-table-tool.ts": 1102,
|
|
"lib/ai/coach/snapshot.ts": 1331,
|
|
"lib/ai/coach/stream-events.ts": 811,
|
|
"lib/ai/coach/types.ts": 1008,
|
|
"lib/ai/codex-client.ts": 907,
|
|
"lib/ai/prompts/insight-generator.ts": 1115,
|
|
"lib/ai/provider.ts": 1497,
|
|
"lib/analytics/score/reader.ts": 998,
|
|
"lib/analytics/sleep-night.ts": 1345,
|
|
"lib/analytics/summaries-slice.ts": 1178,
|
|
"lib/cache/server-cache.ts": 848,
|
|
"lib/cycle/prediction.ts": 883,
|
|
"lib/daily/digest.ts": 1317,
|
|
"lib/daily/load-digest.ts": 1000,
|
|
"lib/daily/today-overview.ts": 838,
|
|
"lib/dashboard-layout.ts": 977,
|
|
"lib/dashboard/snapshot.ts": 1550,
|
|
"lib/day/records.ts": 1172,
|
|
"lib/export/backup-plan.ts": 838,
|
|
"lib/export/coach-backup.ts": 1070,
|
|
"lib/export/profile-backup.ts": 1019,
|
|
"lib/fitbit/client.ts": 1262,
|
|
"lib/fitbit/sync-core.ts": 951,
|
|
"lib/gamification/achievements-result.ts": 1094,
|
|
"lib/gamification/achievements.ts": 913,
|
|
"lib/google-health/mappers.ts": 1295,
|
|
"lib/google-health/sync-core.ts": 1621,
|
|
"lib/idempotency.ts": 879,
|
|
"lib/illness/correlation.ts": 1059,
|
|
"lib/import/health-connect/import.ts": 1689,
|
|
"lib/import/unzip-export-xml.ts": 825,
|
|
"lib/insights/comprehensive-aggregator.ts": 868,
|
|
"lib/insights/comprehensive-generate.ts": 1670,
|
|
"lib/insights/correlation-channel-series.ts": 1330,
|
|
"lib/insights/correlation-discovery.ts": 1240,
|
|
"lib/insights/correlations.ts": 1026,
|
|
"lib/insights/features.ts": 1874,
|
|
"lib/insights/mood-aggregates.ts": 1036,
|
|
"lib/integrations/status.ts": 1448,
|
|
"lib/jobs/coach-nudge.ts": 1084,
|
|
"lib/jobs/insight-pregenerate.ts": 1192,
|
|
"lib/jobs/medication-intake-import.ts": 819,
|
|
"lib/jobs/offhost-backup.ts": 1094,
|
|
"lib/jobs/reaction-line.ts": 803,
|
|
"lib/managed-profiles/handover.ts": 986,
|
|
"lib/mcp/record-search.ts": 1397,
|
|
"lib/mcp/rich-reads.ts": 1471,
|
|
"lib/measurements/dense-intraday-retention.ts": 1016,
|
|
"lib/measurements/import-apple-health-export.ts": 1722,
|
|
"lib/medications/scheduling/cadence.ts": 976,
|
|
"lib/medications/scheduling/recurrence.ts": 1100,
|
|
"lib/medications/scheduling/slot-upsert.ts": 912,
|
|
"lib/notifications/senders/apns.ts": 1100,
|
|
"lib/oura/sync.ts": 900,
|
|
"lib/rollups/measurement-rollups.ts": 1302,
|
|
"lib/search/search-records.ts": 996,
|
|
"lib/sharing/grants.ts": 806,
|
|
"lib/support/report.ts": 903,
|
|
"lib/telegram-webhook-handlers.ts": 1319,
|
|
"lib/validations/inbound-documents.ts": 1018,
|
|
"lib/withings/sync-sleep.ts": 884,
|
|
"lib/withings/sync.ts": 933,
|
|
"proxy.ts": 846
|
|
}
|
|
}
|