Skip to content

Fix stale snooze state in alarm list#678

Merged
marionbarker merged 2 commits into
devfrom
fix/alarm-list-stale-snooze
Jul 8, 2026
Merged

Fix stale snooze state in alarm list#678
marionbarker merged 2 commits into
devfrom
fix/alarm-list-stale-snooze

Conversation

@bjorkert

@bjorkert bjorkert commented Jun 20, 2026

Copy link
Copy Markdown
Member

The alarm list sorted alarms into Snoozed vs. Active by comparing snoozedUntil against Date() at render time, but nothing re-rendered the view once a snooze expired. A lapsed snooze could sit in the Snoozed section for hours while the alarm editor correctly showed it as not snoozed.

Refresh a now snapshot on onAppear and when the app returns to the foreground, and route the snooze comparisons (both sections and the row label) through it.

The alarm list categorized snoozed vs. active alarms against Date()
sampled at render time, but nothing re-rendered the view when a snooze
expired. A lapsed snooze could stay in the Snoozed section for hours
while the editor correctly showed it as not snoozed.

Refresh a now snapshot on appear and on returning to the foreground,
and drive all snooze comparisons through it.
bjorkert added a commit that referenced this pull request Jul 8, 2026
# Conflicts:
#	LoopFollow/Alarm/AlarmListView.swift
…nooze

# Conflicts:
#	LoopFollow/Alarm/AlarmListView.swift

@marionbarker marionbarker left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve by code review and test.

@marionbarker marionbarker merged commit 4422a1e into dev Jul 8, 2026
1 check passed
@marionbarker marionbarker deleted the fix/alarm-list-stale-snooze branch July 8, 2026 22:46
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.

2 participants