Repository navigation
Healthspan v2 (3/3): rebuilt Healthspan tab - #14
Merged
Merged
Conversation
- Hero: six-month Body Age vs calendar age with its ± band, and a 21-of-31-scored-days countdown until it unlocks. - Pace dial: −1…3× in four bands (reversing / slowing / steady / accelerating), the margin, and the projected Body Age in six months; "holding steady" whenever the margin covers 1×. - Biggest lever: the years reaching that driver's target would take off. - Drivers: value, target, a signed years chip and a 30-day-vs-6-month arrow; tapping opens the driver's hazard-ratio curve and its source. - Six-month Body Age and pace trend charts, HRV as unscored context, and a method-and-references sheet. - Every readout comes from one snapshot of the persisted rows for the newest day, so the chips, lever, dial and chart cannot disagree with the headline.
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.
PR 3 of 3 for Healthspan v2. Stacked on #13 (which is stacked on #12).
What changes
HealthspanViewis rebuilt on the v2 rows. It works on macOS and iOS (the view is shared).TrendChart).Every readout comes from one
HealthspanSnapshotof the persisted rows for the newest day, loaded once per refresh. The chips, lever, dial and chart's last point therefore cannot disagree with the headline. The Health hub's Vitality card overline changes from "Weekly" to "6 months", and the zone drivers are renamed "Zones 1–3 cardio" and "Zones 4–5 cardio".The Resilience section (sibling plan) is not part of this PR.
Verification
HealthspanReadoutTestscovers:Localizable.xcstringsin all nine shipped locales (de, es, fr, pt-PT, it, pl, ru, zh-Hans, zh-Hant). Format specifiers were checked against each key. Citations and references useText(verbatim:), since they are bibliographic.i18n_audit --ci mainanddoc_comment_lintare clean.xcodebuildsucceeds forStrand(macOS) andNOOPiOS.NOOPiOSwas built without the embedded watch app, because the watchOS runtime is not installed locally.