8000 feat(ui): add opt-in contextual timeline preview by shroominic · Pull Request #72 · shroominic/OpenGlucose · GitHub
[go: up one dir, main page]

Skip to content

feat(ui): add opt-in contextual timeline preview - #72

Draft
shroominic wants to merge 1 commit into
mainfrom
feature/issue-44-context-timeline
Draft

shroominic wants to merge 1 commit into
mainfrom
feature/issue-44-context-timeline

Conversation

@shroominic
@shroominic shroominic commented Aug 24, 2026 •
Copy link
Copy Markdown
Owner

Summary

  • Add a fixture-driven, read-only CompactContextTimeline that is collapsed by default.
  • Define a typed snapshot/source seam for CgmReading, HealthEvent, SleepSample, ActivitySample, and HeartRateSample.
  • Keep glucose visually primary while optional sleep, workout/movement, meal/note, and heart-rate context stays opt-in.
  • Show only one adapter-supplied recent context gap with non-causal wording. The attachment action emits an unsaved draft callback only.
  • Add deterministic projection and widget coverage, including 375/390/430 px at 200% text and reduced motion.

Scope

Partial #97; this PR does not close #97.

It deliberately excludes dashboard/chart composition, platform queries or imports, HealthKit/Health Connect persistence, journal writes, causal or inference logic, source normalization, and live data integration. Those need the serialized production contracts from the related issues.

Validation

  • make bootstrap
  • Focused timeline tests: 8 passing
  • flutter analyze
  • Normal pre-commit hook: format and all workspace analyzers passed
  • Normal pre-push hook: full make check passed, including Android/web/iOS/macOS builds and native iOS/macOS tests

Review risks

  • This is a standalone fixture-driven component, not a release-visible dashboard integration.
  • Widget tests cover compact layout and reduced motion, but visual review, VoiceOver/TalkBack, dark mode, and real-device performance remain R2 review work.
  • Context chips expose source, exact window, and qualification; final interactive chart hit testing remains part of later dashboard composition.

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.

[Feature] Unified body timeline and compact Today experience

1 participant

0