Repository navigation
Satiety and fitness take 1, 3, 5, 7 or 9; Max Carbs steps of 10 - #32
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…shed Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
hint: if you need to wait for this pull request to be reviewed, merged, or closed before continuing, use this instead of polling:
gh event listen --resource #32 --event com.github.pull_request.review.submitted.v1,com.github.pull_request.state.changed.v1
It prints the first event as a JSON line on stdout and exits; run it again to wait for the next one.
Add
--timeoutto stop waiting after a while, for example--timeout 30m; it then exits with status 8.Events carry no details; read the pull request to see what changed.
It misses changes made before it starts, so read the pull request once it is running.
See
gh event listen --helpfor other event types.Event subscriptions are in preview and may not be enabled for your account.
The partner API now takes
satiety_levelandfitness_levelonly as 1, 3, 5, 7 or 9 andcarb_upper_limit_overrideonly as 50 to 150 g/hr in steps of 10, the values the Saturday app stores (SaturdayInc/fuel-backend #2405). Anything else gets a 400:invalid_valuefor the two levels,out_of_rangefor Max Carbs, with a message naming the values taken.AthleteSettingssays what a write ofsatiety_level,fitness_levelandcarb_upper_limit_overridetakes;nutrition.calculate's docstring says the same.SettingsFieldSchemagainsvaluesandstep, whichGET /v1/settings/schemanow returns.CHANGELOG line, under Unreleased (0.8.0 is published).
Tests: pytest 156 passed (live suites not run).
Left unlabeled for Alex to merge and release.
Follow-up (sweat level and saltiness). The same rule now covers
sweat_level(1, 3, 5, 7 or 9) andsaltiness(1, 5 or 9), the levels the app stores (saturdaylib/user/common/sweatiness_slider.dartfive stops,lib/user/common/saltiness_slider.dartthree stops,setSweatLevelandsetSaltinessinlib/providers/user_profile/user_profile_fueling.dartrefuse the rest, onboarding and the coach quick setup use the same sets). A session's thermal stress level, the app's per-session "how sweaty" slider (lib/activity/common/thermal_slider.dart, 1 to 9,divisions: 8), takes every whole number from 1 to 9, as the API already did. Refusal:settings.saltiness must be 1, 5 or 9 (got 3). See https://docs.saturday.fit/guides/athletes(400invalid_value). Stored records outside the sets (count() aggregations): partner athletes 0 on test (35 read) and prod (0 in all); app members, sweat 38 on test and 1 on prod, saltiness 71 on test and 2 on prod. Stored values stay; the next write must carry an accepted value.Update (INTEGRATIONS lane sdk-docs-followups, 2026-11-22). fuel-backend #2405 is merged and serves
values(sweat, saltiness, satiety, fitness) andstep(Max Carbs) inGET /v1/settings/schema(pkg/api/meta.goon main). Main merged in; the CHANGELOG line moved from the 0.8.0 section to Unreleased.pytest -q:228 passed, 2 skipped.🤖 Generated with Claude Code