Skip to content

Fix Stress day view hour alignment#24

Merged
cortexark merged 1 commit intomainfrom
fix/stress-today-hour-alignment
Apr 8, 2026
Merged

Fix Stress day view hour alignment#24
cortexark merged 1 commit intomainfrom
fix/stress-today-hour-alignment

Conversation

@cortexark
Copy link
Copy Markdown
Owner

Summary

  • ensure StressViewModel merges a fresh today snapshot so day heatmap uses current-day data
  • filter today hourly display to current local hour to avoid showing future late-night buckets
  • add regression tests for today filtering and past-day full-hour behavior

Validation

  • xcodebuild -project apps/HeartCoach/Thump.xcodeproj -scheme Thump -destination id=EEEE9286-B8BC-4B46-B53F-29125AEB74A5 -only-testing:ThumpCoreTests/StressViewModelTests test
  • xcodebuild -project apps/HeartCoach/Thump.xcodeproj -scheme Thump -destination id=EEEE9286-B8BC-4B46-B53F-29125AEB74A5 -only-testing:ThumpUITests/ClickableValidationTests/testTabStress test

@cortexark cortexark merged commit c5be5f0 into main Apr 8, 2026
1 check failed
@cortexark cortexark deleted the fix/stress-today-hour-alignment branch April 8, 2026 20:58
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