Skip to content

Fix RWFit activity imports and sleep paging - #153

Open
saksham2001 wants to merge 1 commit into
mainfrom
feat/rwfit-activity-sleep-sync
Open

saksham2001 wants to merge 1 commit into
mainfrom
feat/rwfit-activity-sleep-sync

Conversation

@saksham2001

@saksham2001 saksham2001 commented Dec 6, 2026 •

Copy link
Copy Markdown
Owner

Changes

  • Accept RWFit activity records covering up to an hour and handle a current-day total timestamp as a calendar date.
  • Save valid steps, calories, and distance when another record on the same page fails validation. Keep that page on the ring and record the rejected field names in diagnostics.
  • Keep explicitly tagged RWFit history read replies and delete acknowledgements from completing the other operation. Add a split-sleep regression that verifies both pages remain recoverable until the complete session is saved.

Verification

  • All 1,272 tests passed on iPhone 16 Pro / iOS 18.6 with the activity fix on current main.
  • All 125 focused tests passed on the final PR commit, including both history response-matching regressions.
  • The new split-sleep fixture reproduces the early termination with the old command gate and imports the full session with the updated gate.
  • SwiftLint on the changed files and git diff --check completed successfully.
  • Physical SY15-B and SR16 verification remains pending.

Related report

#141 describes the Android SR16 first-page issue. The Android counterpart #135 shipped its pagination fix in 2.11.2 build 84. This PR hardens the existing iOS pager against a separate early-termination case.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant