Repository navigation
sleep: let a typed window land before the band has synced - #1071
abdulsaheel wants to merge 6 commits into
Conversation
Reviewer's GuideImplementationStore whether an override is waiting for a band sync, clear that state when the night scores or the user changes days, and distinguish a stored-but-not-rederived window from a failed re-derive.
Allow typed sleep windows to be stored without existing recordings, while retaining the separate path that refuses corrections for pruned recordings.
UIOffer “I was asleep” when no night row exists, preserve the pruned-recordings refusal, and display the appropriate waiting or failure status.
Add localized text for the sleep-window waiting state across the supported languages.
TestsVerify that a night with no row still offers the “I was asleep” action and opens the time-entry flow.
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 48 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
There was a problem hiding this comment.
Hey - I've found 5 issues
Sourcery assessment
Needs a human reviewer. 5 findings to address first, and a typed sleep window can now be stored even when there is no synced night, and may be applied when the band syncs later. If it is attached to the wrong day or has incorrect times, that persisted override outlives a revert, but can be corrected or undone.
Blocking findings: lib/ui2/screens/sleep_detail.dart:1260, lib/ui2/screens/sleep_detail.dart:1260, lib/ui2/screens/sleep_detail.dart:1261, lib/ui2/screens/sleep_detail.dart:1369, lib/ui2/screens/sleep_detail.dart:1371
set the times and 'i was asleep' now work for a night with no recordings yet, the window scores after the next sync. nights whose recordings were pruned are still refused. stacked on the going-to-bed pr.
Summary by Sourcery
Let users record a sleep window before their band has synced that night.
New Features:
Enhancements:
Tests:
Chores: