feat: Withings weight sync + dedicated Biometrics category UX#96
Open
marian001 wants to merge 1 commit intoelkimek:mainfrom
Open
feat: Withings weight sync + dedicated Biometrics category UX#96marian001 wants to merge 1 commit intoelkimek:mainfrom
marian001 wants to merge 1 commit intoelkimek:mainfrom
Conversation
|
@marian001 is attempting to deploy a commit to the elkimek's projects Team on Vercel. A member of the Team first needs to authorize it. |
Owner
|
Thanks for the PR Marian, I can't merge it right now as I'm in process of rewriting getbased to V2 (Tauri/TypeScript/Svetle) and these integration will need a proper system, can't be just glued into it. Will look into this ASAP once V2 is stable and released. |
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.
Summary
This PR adds a first wearable integration via Withings and introduces a dedicated Biometrics category UX for time-series biometrics.
It implements OAuth connection + sync from Withings, imports weight data into the existing biometrics structure, and surfaces biometrics as a first-class category in the sidebar with standard chart/detail interactions.
Closes the immediate use case discussed in #5 around wearables integration by shipping an initial, practical scope.
What was added/changed
1) Withings integration (initial scope: weight only)
js/withings-weight.jsuser.metricsscope)measure/getmeasimportedData.biometrics.weightlastupdatejs/main.js2) Settings UI for Withings
js/settings.js3) Biometrics as dedicated category + UX parity improvements
js/biometrics-view.jscreateLineChart(...)(axes/tooltips/grid), not mini custom sparkline charts1M / 3M / 9M / All) applied across all biometrics charts4) Navigation and routing updates
js/nav.jsjs/views.jsnavigate('biometrics') -> showBiometrics()How it works
Data model
state.importedData.biometricsstructure:weight[]with{ date, value, unit, source }bp[]with{ date, sys, dia, source }pulse[]with{ date, value, source }source: 'withings'rows for weightsource: 'manual'Sync behavior
lastupdate)How to use Withings integration
Optional:
Scope note / future extension
This PR intentionally ships weight-only import for now, even though Withings API exposes additional measurements. The integration path and UI scaffolding are now in place, so additional types (e.g., blood pressure, heart rate, body composition metrics) can be added incrementally in follow-up PRs.
Related issue
Files changed
js/main.jsjs/nav.jsjs/settings.jsjs/views.jsjs/withings-weight.js(new)js/biometrics-view.js(new)