Repository navigation
Quiet hours for the buzz, and adjustable nap times - #18
Merged
Merged
Conversation
Phone alerts gets a Quiet hours switch, off by default and 22:00 to 07:00 once on, with From and To picked on the alarms' clock. Hours can run past midnight. Calls still ring unless Calls too is on. The settings are backed up and kept when the strap is forgotten. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Naps gets an Adjust times button under each nap. Its sheet shows the heart rate from an hour before to an hour after the strap's nap, to find the drop into sleep, and Fell asleep and Woke up on the clock. The strap's times stay one tap away. The user's times live in a nap_edit table keyed by the strap's start (database 24), since a sync rewrites the day's naps. The Naps detail, Recovery's nap minutes, calories and the Health Connect export read naps through NapTimes; stages are trimmed to the new times. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Quiet hours
Phone alerts gets a Quiet hours switch under the buzz pattern. It's off by default and set to 22:00 to 07:00 once on. From and To open the alarms' clock, and the hours can run past midnight. Calls still ring during quiet hours unless Calls too is on. The settings are backed up and kept when the strap is forgotten.
Nap times
Each nap on the Naps detail gets an Adjust times button (pencil icon). Its sheet shows:
It refuses naps under 5 minutes or over 4 hours, ends later than now, and times more than 3 hours from what the strap saw.
A sync deletes and rewrites the day's naps, so the user's times live in a new
nap_edittable keyed by the strap's start (database 24, auto migration).NapTimesapplies them for the Naps detail, Recovery's nap minutes, calories and the Health Connect export, and trims the stages to the new times. A nap stays on the day the strap gave it.Checks
QuietHoursTestandNapTimesTest.Known gap: changing an old nap may not reach Health Connect until that day is exported again.
🤖 Generated with Claude Code