Skip to content

fix(app): smooth history chart joins - #44

Merged
frahlg merged 1 commit into
mainfrom
fix/smooth-history-chart
Aug 12, 2026
Merged

fix(app): smooth history chart joins#44
frahlg merged 1 commit into
mainfrom
fix/smooth-history-chart

Conversation

@frahlg

@frahlg frahlg commented Aug 12, 2026

Copy link
Copy Markdown
Member

What changed

  • draw history traces with shape-preserving cubic curves
  • keep every measured point, extrema, data gap, and finger readout intact
  • apply the same bounded smoothing to reduced long-range mean lines
  • add regression coverage and a patch changeset

Why

The 24-hour history view joins 288 five-minute readings with straight segments. Frequent small direction changes therefore appeared as sharp corners on a phone.

User impact

History traces look smoother while real steps and spikes remain visible. The chart does not interpolate across missing data or overshoot measured values.

Validation

  • npm run verify
  • 864 tests passed; 1 skipped
  • Svelte check: 0 errors and 0 warnings
  • production Vite build
  • before/after visual comparison at 390 px mobile width against the same deterministic simulated home

@frahlg
frahlg marked this pull request as ready for review August 12, 2026 09:43
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
ftw-webapp 2acb7c3 Commit Preview URL

Branch Preview URL
Aug 12 2026, 09:43 AM

@frahlg
frahlg merged commit 77a7c21 into main Aug 12, 2026
3 checks passed
@frahlg
frahlg deleted the fix/smooth-history-chart branch August 12, 2026 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant