baldav/frontend
4aiman 9b5c9a204c Fix string weight causing 40k kcal, navigation, remove egg hardcode
Critical kcal fix:
- Profile weight is stored as string ("88"), not number
- "88" + 12 = "8812" (string concat) → mass 8812kg → 40000 kcal
- Fix: parseFloat(weightKg) at top of computeStats
- Also clamp gradient to +-50% to prevent NaN from GPS spikes

Navigation:
- Chart fullscreen on Today screen now has popstate handler
- Global popstate: collapse any visible .chart-full before skipping stale entries
- Both X button and back gesture properly collapse chart

Removed egg hardcode:
- product_units no longer auto-seeded with egg data
- User adds per-product unit mappings manually
- Eliminates slow LIKE query on 13000 products at every startup

Noted bike settings from user: weight 16kg, wheel 24", chainring 40, cog 18, mixed
2026-05-25 03:00:47 +03:00
..
css Alternative units, analytics charts, elevation smoothing, batch GPS update 2026-05-23 17:12:19 +03:00
data Clean up nutrients_guessed: removed 222 false positives 2026-05-23 18:10:00 +03:00
js Fix string weight causing 40k kcal, navigation, remove egg hardcode 2026-05-25 03:00:47 +03:00
lib Android support + Settings screen + Mobile UX fixes 2026-05-14 14:17:57 +03:00
index.html GPS point ordering + GPX export + chart zoom fixes 2026-05-16 21:21:13 +03:00