Alarm: skip keeps the alarm on, and the clock says when it runs #10

Merged
audrow merged 2 commits from skip-keeps-alarm-on into main 2026-11-15 07:06:19 -06:00
Owner

Preview: 3D viewer with this PR's firmware (private Claude artifact). Pick V1 · CoreS3, then tap the skip icon (⏭) and the bell at the top right.

Was stacked on #9; #8 and #9 have merged, so it is now based on main.

Skipping looked like turning the alarm off, for three reasons:

  • A skip could be set while the alarm was off, with nothing on screen to show it, and came back when the alarm was turned on: the alarm said on, but didn't ring the next morning.
  • The bottom line said only "Skipping 07:00", without saying the alarm was still on or which day.
  • The skip icon was struck through when not skipping, which reads as "off".

What changes

  • Skip always means the alarm is on. Skipping (the icon or Skip next on the Alarm page) turns the alarm on with the next ring skipped. Turning the alarm off (the bell, the Alarm page or alarm off) clears the skip. A skip saved with the alarm off by older firmware is dropped at boot.
  • The bottom line says when the alarm runs: "Alarm 7:00 AM tomorrow" or "Alarm 07:00 today". When skipping: "Alarm 7:00 AM, skipping tomorrow". Snoozing still shows "Snoozed until …".
  • The alarm comes first on that line. The sleep sounds join it only when both fit; the lit sound icon shows they're playing either way. On the CoreS3 that's usually the alarm alone.
  • Skip icon: dim, or lit when skipping, with no slash. The Alarm tile says "on, skipping next".

Screens: *-clock-day, *-clock-night, *-clock-ringing and 320x240-no_lamp-clock changed (the new bottom line and skip icon).

Tested locally

  • alarm_face_test: alarm_status for today, tomorrow, after midnight, at the alarm's own minute, skipping, and off; set_alarm_on and set_skip_next keep the two settings in step.
  • firmware_test:
    • new skip_keeps_the_alarm_on: icon, bell, Alarm page, alarm off, and a saved skip with the alarm off;
    • skipped_alarm_stays_quiet_and_rearms now also checks the alarm stays on, the line says tomorrow, and it rings the next day;
    • text fit covers the longest line (12-hour, skipping) at every target size, with nothing cut short.
  • render_screens regenerated. sim/clock.wasm rebuilt, and smoke_test.js passes. PlatformIO build for the CoreS3 succeeds.

Feedback from the maintainer

  • Skip seems to turn the alarm off. Skip now always keeps the alarm on (and turns it on if it was off); turning the alarm off clears the skip.
  • With the alarm on, say what time the alarm will run. The bottom line says "Alarm 7:00 AM tomorrow" (or today).
  • Skip leaves the alarm on but skips the next one, and says so at the bottom. "Alarm 7:00 AM, skipping tomorrow".

🤖 Generated with Claude Code

**Preview:** [3D viewer with this PR's firmware](https://claude.ai/artifact/Y7WGyvmrEXWzNMzqRnsaDE) (private Claude artifact). Pick V1 · CoreS3, then tap the skip icon (⏭) and the bell at the top right. Was stacked on #9; #8 and #9 have merged, so it is now based on `main`. Skipping looked like turning the alarm off, for three reasons: - A skip could be set while the alarm was off, with nothing on screen to show it, and came back when the alarm was turned on: the alarm said on, but didn't ring the next morning. - The bottom line said only "Skipping 07:00", without saying the alarm was still on or which day. - The skip icon was struck through when *not* skipping, which reads as "off". **What changes** - **Skip always means the alarm is on.** Skipping (the icon or Skip next on the Alarm page) turns the alarm on with the next ring skipped. Turning the alarm off (the bell, the Alarm page or `alarm off`) clears the skip. A skip saved with the alarm off by older firmware is dropped at boot. - **The bottom line says when the alarm runs:** "Alarm 7:00 AM tomorrow" or "Alarm 07:00 today". When skipping: "Alarm 7:00 AM, skipping tomorrow". Snoozing still shows "Snoozed until …". - **The alarm comes first on that line.** The sleep sounds join it only when both fit; the lit sound icon shows they're playing either way. On the CoreS3 that's usually the alarm alone. - **Skip icon:** dim, or lit when skipping, with no slash. The **Alarm tile** says "on, skipping next". **Screens:** `*-clock-day`, `*-clock-night`, `*-clock-ringing` and `320x240-no_lamp-clock` changed (the new bottom line and skip icon). **Tested locally** - `alarm_face_test`: `alarm_status` for today, tomorrow, after midnight, at the alarm's own minute, skipping, and off; `set_alarm_on` and `set_skip_next` keep the two settings in step. - `firmware_test`: - new `skip_keeps_the_alarm_on`: icon, bell, Alarm page, `alarm off`, and a saved skip with the alarm off; - `skipped_alarm_stays_quiet_and_rearms` now also checks the alarm stays on, the line says tomorrow, and it rings the next day; - text fit covers the longest line (12-hour, skipping) at every target size, with nothing cut short. - `render_screens` regenerated. `sim/clock.wasm` rebuilt, and `smoke_test.js` passes. PlatformIO build for the CoreS3 succeeds. ## Feedback from the maintainer - [x] Skip seems to turn the alarm off. Skip now always keeps the alarm on (and turns it on if it was off); turning the alarm off clears the skip. - [x] With the alarm on, say what time the alarm will run. The bottom line says "Alarm 7:00 AM tomorrow" (or today). - [x] Skip leaves the alarm on but skips the next one, and says so at the bottom. "Alarm 7:00 AM, skipping tomorrow". 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Alarm: skip keeps the alarm on, and the clock says when it runs
Some checks failed
host / test (push) Failing after 7s
host / simulator (push) Successful in 1m1s
host / test (pull_request) Failing after 8s
host / simulator (pull_request) Successful in 58s
host / firmware (push) Successful in 4m43s
host / firmware (pull_request) Successful in 5m23s
1a9d4a22c4
Skipping used to look like turning the alarm off: a skip set while the
alarm was off stayed hidden and came back when it was turned on, the
bottom line said only 'Skipping 07:00', and the skip icon was struck
through when not skipping. Now skip always means the alarm is on:
skipping turns it on, turning it off (bell, Alarm page or 'alarm off')
clears the skip, and a skip saved with the alarm off is dropped at boot.
The bottom line says when the alarm runs, 'Alarm 7:00 AM tomorrow', or
'Alarm 7:00 AM, skipping tomorrow'. The alarm comes first on that line:
the sleep sounds join it only when both fit. The skip icon is dim, or
lit when skipping. The Alarm tile says 'on, skipping next'.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Alarm: room for the longest bottom line (GCC's truncation check)
All checks were successful
host / test (push) Successful in 15s
host / test (pull_request) Successful in 15s
host / simulator (push) Successful in 47s
host / simulator (pull_request) Successful in 1m3s
host / firmware (push) Successful in 5m42s
host / firmware (pull_request) Successful in 5m56s
2089af48f3
GCC in CI (-Werror=format-truncation) counts the alarm line's worst case,
41 bytes, against a 40-byte buffer. Real times are at most 8 characters,
but the buffer is now 48 so the build doesn't depend on that.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
audrow changed target branch from cores3-in-3d to main 2026-11-15 07:00:04 -06:00
audrow force-pushed skip-keeps-alarm-on from 2089af48f3
All checks were successful
host / test (push) Successful in 15s
host / test (pull_request) Successful in 15s
host / simulator (push) Successful in 47s
host / simulator (pull_request) Successful in 1m3s
host / firmware (push) Successful in 5m42s
host / firmware (pull_request) Successful in 5m56s
to 5721313696
All checks were successful
host / test (push) Successful in 13s
host / test (pull_request) Successful in 10s
host / simulator (push) Successful in 57s
host / simulator (pull_request) Successful in 41s
host / firmware (pull_request) Successful in 5m6s
host / firmware (push) Successful in 5m58s
2026-11-15 07:00:05 -06:00
Compare
audrow merged commit f64544c890 into main 2026-11-15 07:06:19 -06:00
Sign in to join this conversation.
No description provided.