Chart patches across the time they're worn #14

Merged
brian merged 1 commit from chart-patch-wear into master 2026-10-27 15:48:40 +00:00
Owner

Port of the server repo's intake chart fix to the app:

  • A patch's ingredient amount is its daily release rate (or the period its
    label gives, e.g. "25mcg/hr"). The chart now spreads each patch over its
    wear time - until it runs out, is replaced, or now - instead of counting
    everything when it went on, so a 5mg/day patch shows 5 every full day.
  • The chart fetches 14 days before the window to catch patches still worn
    inside it; totals and averages count only what falls in the window.
  • History entries (and queued offline doses) carry frequency_hours; amount
    parsing takes the unit from the numerator of rates like "21 mg/24 hr".

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com

Port of the server repo's intake chart fix to the app: - A patch's ingredient amount is its daily release rate (or the period its label gives, e.g. "25mcg/hr"). The chart now spreads each patch over its wear time - until it runs out, is replaced, or now - instead of counting everything when it went on, so a 5mg/day patch shows 5 every full day. - The chart fetches 14 days before the window to catch patches still worn inside it; totals and averages count only what falls in the window. - History entries (and queued offline doses) carry frequency_hours; amount parsing takes the unit from the numerator of rates like "21 mg/24 hr". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Chart patches across the time they're worn
All checks were successful
Build Android APK / build-apk (push) Successful in 4m16s
f8f2078414
Port of the server repo's intake chart fix to the app:

- A patch's ingredient amount is its daily release rate (or the period its
  label gives, e.g. "25mcg/hr"). The chart now spreads each patch over its
  wear time - until it runs out, is replaced, or now - instead of counting
  everything when it went on, so a 5mg/day patch shows 5 every full day.
- The chart fetches 14 days before the window to catch patches still worn
  inside it; totals and averages count only what falls in the window.
- History entries (and queued offline doses) carry frequency_hours; amount
  parsing takes the unit from the numerator of rates like "21 mg/24 hr".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
brian merged commit 34a06bcba1 into master 2026-10-27 15:48:40 +00:00
brian deleted branch chart-patch-wear 2026-10-27 15:48:40 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
brian/medsync!14
No description provided.