github CodeWithCJ/SparkyFitness v1.13.0

45 minutes ago

💙 Support SparkyFitness

If SparkyFitness has been useful to you & your family, please consider sponsoring on GitHub or supporting via Ko-fi. Your support helps cover recurring costs such as AI coding tools, development infrastructure, and Apple & Google Developer memberships to keep the project actively maintained.


Important

💾 Upgrade Notice: Always remember to back up your database and environment before upgrading to a new version.

👍 Community Prioritization: Want to see a specific feature or fix in the next release? Add a 👍 reaction to open Issues to help us prioritize what to build next!

This release is considered as one of the big release(Enhancements:86; Fixes:143; Total: 237 ) with various new features. So have caution


🚀 Key Highlights

  • Redesigned workout flow: a new live workout focus view with rest and hold screens, a plate calculator and a summary. It also adds workout plan management, failure deloads and an AMRAP bonus for weight progression, and a training calendar with planned vs completed work and training load per sport.
  • Offline entries: log workouts, water and food without a connection. Entries are saved on the phone and uploaded when you're back online.
  • Client certificate (mTLS) support (experimental): connect the mobile app to servers behind mutual TLS.
  • AI coaches: proactive check-ins from built-in or custom coaches. Off by default; turn them on in Settings → Features.
  • Apple Watch and Wear OS: a new workout view with countdown cues, exercise demo and plate calculator. Also custom complications, and on Wear OS, Material 3 tiles with hydration, weight and medication check-off.
  • Challenges and group leaderboards(experimental): new on web and mobile, with a dashboard card.
  • Write-back to Apple Health and Health Connect: logged workouts and body measurements can be written back.
  • Amazfit / Zepp (ZeppBridge, experimental): pull sleep, workouts and daily metrics from a ZeppBridge server you run yourself. SparkyFitness never contacts Zepp or sees your Zepp login.

What's Changed

Security

  • security: update frontend nginx to 1.30.7 (NGINX2Root) and fix non-root pid path by @zeusal in #3674
  • security: fix path traversal in image routes and resolve Dependabot/code-scanning alerts by @CodeWithCJ in #3764

Features

  • feat(zepp): add Zepp OAuth callback Worker at zepp-auth.sparkyfitness.com by @CodeWithCJ in #3530
  • feat(web): let people show or hide the main tabs. by @zeusal in #3503
  • feat: server-backed workout session lifecycle (phase 1 of #1995) by @Dragonk in #3510
  • feat: push daily nutrition totals to Intervals.icu by @cailloux in #3514
  • feat(exercise): store when a set was started by @DUC750 in #3535
  • feat(mobile): add a setting to use planned values as live workout placeholders by @DUC750 in #3536
  • feat(mobile): support iPhone Duo vertical bars by @elemated in #3526
  • feat(mealie): import recipes as editable ingredient meals by @Bl4nk24 in #3396
  • feat(mobile): allow ingredient adjustments before logging saved meals by @CodeWithCJ in #3553
  • feat(server): store optional feature choices per platform by @zeusal in #3555
  • feat(preferences): add DD.MM.YYYY date format by @CodeWithCJ in #3566
  • feat(skills): add pr-bot-loop skill for monitoring and resolving PR review rounds by @CodeWithCJ in #3577
  • feat(chat): let chat use tools from an outside MCP server by @SisyphusMD in #3531
  • feat: mobile workout plan management with safe entry regeneration (phase 2 of #1995) by @Dragonk in #3568
  • feat(exercises): add exercise library schema, build tooling, and animated webp media pipeline by @CodeWithCJ in #3576
  • feat(mobile): see and set your stride, and correct a treadmill that reads long or short by @Jerrys-modz in #3572
  • feat(writeback): write logged workouts to Apple Health and Health Connect by @CodeWithCJ in #3574
  • fix(hevy): preserve synced workouts and allow calorie links by @Bl4nk24 in #3483
  • feat(mobile): add a setting to keep the keyboard closed when a rest ends by @DUC750 in #3596
  • feat(web): scan barcodes and nutrition labels from images by @jat255 in #3601
  • feat(csv-import): robust header matching, per-meal aggregate imports, and docs by @dbstraffin in #3593
  • feat(mobile & web): copy a logged food to Now, Today, Tomorrow or a picked date by @tonydarcy in #3528
  • feat: estimated blood alcohol curve from logged drinks by @Sese-Schneider in #3597
  • feat(web): show field descriptions in the CSV header-mapping dialog by @dbstraffin in #3611
  • feat(web): add Settings → Features, with cycle as the first feature by @zeusal in #3570
  • feat(mobile): client certificate (mTLS) support (experimental) by @CodeWithCJ in #3602
  • feat(diary): log a food by its cooked weight by @DUC750 in #3613
  • feat(wearos): add new workout view with countdown cues, exercise demo and plate calculator by @vcdx71 in #3625
  • feat(mobile): training calendar with planned vs completed work and training load per sport by @Jerrys-modz in #3626
  • feat(mobile): add Settings → Features with cycle as the first switch by @zeusal in #3631
  • feat(sleep-science): strain, training load and recovery score in the daily sleep need by @Jerrys-modz in #3627
  • feat(server): add challenges and group leaderboards (part of #3539) by @MegaIndian in #3585
  • feat(mobile): offline workouts by @CodeWithCJ in #3643
  • feat(mobile): lab results switch in Settings → Features on web and mobile by @zeusal in #3652
  • feat(mobile): write body measurements to Health Connect and Apple Health by @CodeWithCJ in #3680
  • feat(web): add the Challenges page and dashboard widget (part of #3539) by @MegaIndian in #3595
  • feat(mobile): add Copy from yesterday to the Add sheet by @dbstraffin in #3679
  • feat(ci): auto-close inactive draft PRs after 7 days with maintainer override by @CodeWithCJ in #3703
  • feat: add ZeppBridge integration for Amazfit / Zepp by @CodeWithCJ in #3706
  • feat(mobile): add Challenges screens, dashboard card and week-leader notification (part of #3539) by @MegaIndian in #3594
  • feat: Tabs, Dashboard settings and Quick Actions leave out features that are turned off by @zeusal in #3711
  • feat(offline): log water and food without a connection and upload later by @Jerrys-modz in #3718
  • feat(mobile & web): View Food Log in Timeline View by @tonydarcy in #3529
  • feat(reports): make all measurement and glucose charts customizable by @CodeWithCJ in #3740
  • feat: Settings → Features: medications switch on web and mobile by @zeusal in #3725
  • feat(mobile): progress chart on the exercise Summary tab by @MegaIndian in #3708
  • feat(wearos): add interactive Hydration & Weight tiles, inline meds check-off, and expanded complications by @vcdx71 in #3743
  • feat(mobile): Apple Watch calorie complications and custom complications by @Jerrys-modz in #3750
  • feat(mobile): add Mood to the Health Trends pager by @chaddy50 in #3749
  • feat(wearos): add custom complications and built-in styling by @vcdx71 in #3771
  • feat(ai): add sparky_get_day_status for today's calories and macros left by @Sapd in #3763
  • feat(mobile): the watches follow the Medications switch (#3487 step 5b) by @zeusal in #3762
  • feat(action-tags): add amount adjustment, custom timestamp, and advan… by @elias170105 in #3715
  • feat(norish): import worked-out nutrition and the other nutrients Norish knows by @zelphir in #3160
  • feat(mobile): support iPad with readable-width layouts by @tonydarcy in #3739
  • feat(ai): add AI coaches (#2013) by @CodeWithCJ in #3789
  • feat(wearos): Material 3 Expressive app & tiles, paginated hydration/meds, dual weight/BF trend, and direct server sync by @vcdx71 in #3793
  • feat: let a hydration entry carry a custom amount by @chaddy50 in #3768
  • feat: add bulk actions to the mobile diary by @Bl4nk24 in #3820
  • feat(medications): support multi-dose schedules throughout the day by @CodeWithCJ in #3829
  • feat(mobile): quantity field math parity + operator chips by @dbstraffin in #3831
  • feat(medications): display total medication quantity and live form calculations (#1930) by @CodeWithCJ in #3838
  • feat: turn oral care on or off in Settings → Features (#3487 step 8) by @zeusal in #3791
  • feat: turn on cycle tracking for people who finish onboarding as Female (#3487 step 7) by @zeusal in #3860
  • feat(charts): Charts Quick Select - Add years 2/3/5 by @Silver-Golden in #3853
  • feat(mobile): add food and repeat meals from diary sections by @Sinthos in #3852
  • feat(mobile): What's New cards for offline and client certificates by @CodeWithCJ in #3867
  • feat(ai): log a whole workout in one MCP call by @Sapd in #3865
  • feat(workouts): failure deloads and AMRAP bonus for weight progression by @zane-lazare in #3857

Fixes

  • fix(mobile): make the release workflow's submit jobs work on the free plan by @CodeWithCJ in #3520
  • fix(chat): follow the Profile Switcher into a family member's account by @SisyphusMD in #3493
  • Fix(mobile): handle medication reminder buttons natively on iOS by @Jerrys-modz in #3498
  • fix(mobile): use configured work duration for interval/HIIT timer by @Jerrys-modz in #3519
  • fix: stabilize adaptive calorie estimates around weight shifts by @Bl4nk24 in #3486
  • fix(reports): export body measurements in the user's units by @jayhemnani9910 in #3509
  • fix(mobile): give cardio in a live workout a start time by @MegaIndian in #3525
  • fix(mobile): keep meditation timer running while the screen is off by @Jerrys-modz in #3523
  • fix(exercise): offer synced strength sessions when linking a workout by @Jerrys-modz in #3538
  • fix(ci): handle empty release PR output in release-please workflow by @CodeWithCJ in #3547
  • fix(web): don't show the previous account's data to the next one by @zeusal in #3549
  • fix(web): don't open the player for a resume someone else took over by @zeusal in #3554
  • fix: don't trap a family member in someone else's onboarding wizard by @zeusal in #3565
  • fix(workouts): keep preset equipment in web workout playback by @simonwjackson in #3567
  • fix(workouts): skip warm-ups when web playback progresses working sets by @simonwjackson in #3569
  • fix(docker): accept IPv6 connections in the frontend by @kquinsland01 in #3575
  • fix(helm): use database-aware server readiness probe by @kquinsland01 in #3583
  • fix: write corrected treadmill distance to Apple Health by @Jerrys-modz in #3573
  • fix(mobile): save a fitness test only when it has a result by @zeusal in #3571
  • fix(mobile): register symptom nudge actions with titles and handle them by @zeusal in #3580
  • fix(mobile): allow label scans when adjusting search and barcode results by @Bl4nk24 in #3589
  • fix(mobile): add goal weight setting and save steps goal as a whole number by @Jerrys-modz in #3598
  • fix: pick the Oxford BMR equation by age by @jayhemnani9910 in #3582
  • fix(mobile): keep workout chrome and date buttons clear of the Duo status strip by @elemated in #3606
  • fix(data-import): only confirm closing import dialogs when there are unsaved changes by @dbstraffin in #3607
  • fix(server): rank food search results by name prefix and word start by @cpruijsen in #3608
  • fix(mobile): reload the macro watch complications when nutrition changes by @Jerrys-modz in #3642
  • fix(health-data): keep the day's Active Calories summary when workouts re-sync by @sheepdogs in #3623
  • fix(frontend): align diary entry nutrients when some entries have images by @stoamandl in #3638
  • fix(frontend): stop meal total labels from overlapping by @stoamandl in #3639
  • fix(mobile): reschedule medication reminders when device timezone changes by @vcdx71 in #3647
  • fix(usda): tell the AI to quote a USDA food name that holds search syntax by @benjamin-m-holden in #3664
  • fix(liftosaur): use Liftosaur's measurement keys for limb measurements by @marcleibold in #3669
  • fix(liftosaur): use the Liftosaur workout duration for exercise minutes by @marcleibold in #3671
  • fix(liftosaur): update Liftosaur workouts in place on re-sync by @marcleibold in #3672
  • fix(liftosaur): import only completed Liftosaur sets by @marcleibold in #3670
  • fix(liftosaur): sync Liftosaur exercise muscles from program-stats by @marcleibold in #3668
  • fix(liftosaur): keep the workout duration on the entry that held it by @marcleibold in #3683
  • fix(mobile): save a run with no GPS fix and delete its entry on discard by @zeusal in #3635
  • fix(mobile): send cycle settings writes to the account they were made on by @zeusal in #3673
  • fix(mobile): finish large health uploads on slower servers by @marcleibold in #3681
  • fix: recover native chat turns after a background disconnect by @mrepetto94 in #3688
  • fix(health): synchronize deleted water intake samples from Apple Health and Health Connect by @CodeWithCJ in #3695
  • fix(auth): alter verification id column from uuid to text by @CodeWithCJ in #3696
  • fix(calories): explain Dynamic goal with an Adaptive target and show its activity level by @CodeWithCJ in #3699
  • fix(wearos): bridge phone media controls and now-playing metadata by @vcdx71 in #3698
  • fix(deps): update shell-quote, Garmin FastAPI and same-major dependencies by @CodeWithCJ in #3716
  • fix(mobile): do not write a workout to Apple Health twice by @Jerrys-modz in #3719
  • fix(mobile): draw finished-route previews on OpenStreetMap on Android by @Jerrys-modz in #3717
  • fix(server): convert logged amounts when updating existing food entries by @tonydarcy in #3610
  • fix(garmin): ignore None entries in Body Battery fallback by @aloneangel45 in #3722
  • fix(zeppbridge): map only hrv_rmssd to RMSSD and add official sync note by @CodeWithCJ in #3736
  • fix(shoes): link synced runs to the default pair of shoes by @marcleibold in #3729
  • fix(reports): export exercise set weights in the user's unit and escape quotes by @jayhemnani9910 in #3742
  • fix(mcp): allow Gemini to connect through Remote MCP OAuth by @tonydarcy in #3727
  • fix(ai): keep exercise diary tool results valid JSON when truncated by @sheepdogs in #3751
  • fix: copy Fitbit, Oura, Google Health and Withings VO2 max into the daily health summary by @Jerrys-modz in #3757
  • fix(ai): say whether food diary nutrients are scaled to the amount eaten by @Sapd in #3754
  • fix(ai): average nutrition per day and stop counting Active Calories as workouts by @Sapd in #3752
  • fix(ai): accept cross-action keys in sleep science and exercise stats tools by @Sapd in #3753
  • fix(server): load only the server's own variables from *_FILE secrets by @marcleibold in #3761
  • fix: write the VO2 max unit as ml/kg/min everywhere by @Jerrys-modz in #3765
  • fix(openfoodfacts): stop naming search fields the public index no longer has by @sheepdogs in #3767
  • fix(server): store the logged time for synced nutrition entries by @MrAirHD in #3773
  • fix(mobile): give Android notifications their own icon instead of a system circle by @chaddy50 in #3777
  • fix(ai): don't call the default calorie direction a minimum floor by @Sapd in #3780
  • fix(ai): stop truncation notes suggesting limit/offset on tools without them by @Sapd in #3778
  • fix(ai): store the target weight from set_goals by @Sapd in #3785
  • fix(food): decode HTML entities and drop impossible sodium in OpenFoodFacts imports by @Sapd in #3783
  • fix(mobile): Remove autofocus lock for ios by @apedley in #3797
  • fix(ai): tool description fixes for diary, goals, exercise progress and symptoms by @Sapd in #3784
  • fix(liftosaur): import assisted sets and skip only a workout that fails by @marcleibold in #3781
  • fix(food): stop blocking food save on provider image download by @CodeWithCJ in #3804
  • fix(mobile): send proxy headers during onboarding and passkey management by @CodeWithCJ in #3805
  • fix(ai): keep the steps goal in set_goals and show all set goals in get_goals by @Sapd in #3807
  • fix(ai): let create_food take the food's serving apart from the amount logged by @Sapd in #3810
  • fix(ai): round nutrition values and space serving units in food tool output by @Sapd in #3809
  • fix(ai): align food serving test with formatted output by @Bl4nk24 in #3818
  • fix(ai): clarify MCP tool texts for estimates, timezone, run programs and variant updates by @Sapd in #3811
  • fix(ai): add top set, e1RM and working volume to get_exercise_progress; round list_exercise_diary numbers by @Sapd in #3812
  • fix(fasting): make POST /api/fasting/start idempotent with client_id by @vcdx71 in #3814
  • fix: chart tooltips unreadable in dark mode by @Jerrys-modz in #3825
  • fix(db): only grant functions the owner may grant by @DrummyFloyd in #3826
  • fix(ai): close matches for food names, update_food rename, estimates in create_food by @Sapd in #3830
  • fix(ai): read string flags for update_existing_entries, resolve symptom from/to day keywords by @Sapd in #3836
  • fix(mobile): return to meal view after logging food from it by @dbstraffin in #3841
  • fix(mobile): re-anchor the diary date to today on foreground return by @dbstraffin in #3843
  • fix(reports): surface Zepp workouts in exercise activity telemetry logs by @CodeWithCJ in #3851
  • fix(exercise): return shoe_id in exercise history and by-date entries by @DUC750 in #3858
  • fix(mobile): keep 100 g/ml references selectable beside portions by @thorethy1 in #3861
  • fix: keep systolic and diastolic blood pressure from Withings and Garmin by @CodeWithCJ in #3866
  • fix(medications): keep a queued reminder press on the account it was made for by @CodeWithCJ in #3875
  • fix(mobile): schedule Android reminders again after a force stop by @CodeWithCJ in #3877

Documentation

  • docs: add simulator-testing skill by @CodeWithCJ in #3660
  • docs(review): harden PR review checklist and skill for supply-chain and cross-platform checks by @CodeWithCJ in #3850
  • docs(readme): sync translated READMEs with the root README by @zeusal in #3863

Other Changes

  • chore(helm): update chart version to v1.12.1 by @sparkyfitness-sync[bot] in #3507
  • chore(umbrel): update app package to v1.12.1 by @sparkyfitness-sync[bot] in #3508
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3542
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3543
  • chore(i18n): sync translations from Weblate by @sparkyfitness-sync[bot] in #3506
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3546
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3551
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3562
  • chore(i18n): sync translations from Weblate by @sparkyfitness-sync[bot] in #3552
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3584
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3603
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3609
  • chore(i18n): sync translations from Weblate by @sparkyfitness-sync[bot] in #3588
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3622
  • chore(i18n): sync translations from Weblate by @sparkyfitness-sync[bot] in #3628
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3644
  • chore(i18n): sync translations from Weblate by @sparkyfitness-sync[bot] in #3645
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3659
  • chore(nix): update pnpm deps hashes by @sparkyfitness-sync[bot] in #3662
  • chore(i18n): sync translations from Weblate by @sparkyfitness-sync[bot] in #3663
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3697
  • chore(i18n): sync translations from Weblate by @sparkyfitness-sync[bot] in #3700
  • chore(i18n): sync translations from Weblate by @sparkyfitness-sync[bot] in #3709
  • chore(nix): update pnpm deps hashes by @sparkyfitness-sync[bot] in #3720
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3721
  • chore(nix): update pnpm deps hashes by @sparkyfitness-sync[bot] in #3724
  • chore(i18n): sync translations from Weblate by @sparkyfitness-sync[bot] in #3744
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3759
  • chore(nix): update pnpm deps hashes by @sparkyfitness-sync[bot] in #3766
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3798
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3802
  • chore(i18n): sync translations from Weblate by @sparkyfitness-sync[bot] in #3790
  • chore(i18n): sync translations from Weblate by @sparkyfitness-sync[bot] in #3816
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3822
  • chore(i18n): sync translations from Weblate by @sparkyfitness-sync[bot] in #3833
  • chore(i18n): sync translations from Weblate by @sparkyfitness-sync[bot] in #3855
  • chore: sync db_schema_backup.sql with migrations by @sparkyfitness-sync[bot] in #3872

New Contributors

Full Changelog: v1.12.1...v1.13.0

Don't miss a new SparkyFitness release

NewReleases is sending notifications on new releases.