Skip to content

feat(sdk): surface sleep explanation factors + sleep latency#58

Merged
isrugeek merged 1 commit into
mainfrom
feat/score-explanation
Jun 16, 2026
Merged

feat(sdk): surface sleep explanation factors + sleep latency#58
isrugeek merged 1 commit into
mainfrom
feat/score-explanation

Conversation

@isrugeek

@isrugeek isrugeek commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • SleepFactor enum (stable wire-id contract) + parse the new explanation array on SleepScoreResult.
  • AggregatedTotals.sleepLatencyMinutes + forward sleep_latency_minutes through the platform-health (Apple Health / Health Connect) ingest.
  • Data-only: no presentation/copy in the SDK — consumers map factor ids → wording.

- sleep_score.dart: add SleepFactor enum (wire-id contract) + parse the new
  'explanation' array on SleepScoreResult; add AggregatedTotals.sleepLatencyMinutes.
- baselines.dart: forward sleep_latency_minutes through the platform-health
  (apple_health/health_connect) ingest into AggregatedTotals.
- Data-only: no presentation/copy in the SDK.
@isrugeek isrugeek requested a review from a team as a code owner June 11, 2026 00:51
@isrugeek isrugeek merged commit c473e3c into main Jun 16, 2026
4 checks passed
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