Skip to content

feat(ui): show the current time on every screen - #1

Merged
cubehouse merged 1 commit into
mainfrom
claude/pensive-tesla-mapxhv
Oct 31, 2026
Merged

cubehouse merged 1 commit into
mainfrom
claude/pensive-tesla-mapxhv

Conversation

@cubehouse

Copy link
Copy Markdown
Member

What this changes

Adds the current time to every window as a firmware status bar (StatusBarLayer, in the header palette). It follows the watch's 12/24h setting and ticks on its own each minute. On the park view the header now collapses up behind the bar instead of off the top of the screen, so the time and the WAITS/SHOWS tabs stay visible however far you scroll.

Because the tab strip now slides between y=20 and y=56 (it was y=0 and y=44), gabbro needed two follow-ups:

  • Tab labels and the settings gear are placed inside the visible chord of the circle at the strip's live position (new pure geom_round_span, host-tested). Collapsed tabs were clipped to illegibility before, and the gear sat outside the circle in both states.
  • The park header text uses screen text flow, so a long name ("LEGOLAND New York") ellipsises instead of losing its first letter.

Layout changes worth a look in review:

  • The list is ~20px shorter on every windowed screen (about ¾ of a row on emery). On round the bar sits in the band the circle clips anyway, so the pickers keep their 46px navy block.
  • Park picker rows are 42px on rect (was 44) so a four-park destination still fits whole: 228 − 46 (bar + title) − 14 (footer) = 168 = 4 × 42.
  • A shared 26px title strip (UI_TITLE_H) replaces the per-shape header offsets in the pickers, settings and destination browser.
  • The loading/error window gets the clock too ("Phone not connected" can sit there a while).

Why

Tester feedback: with the app open there was no way to see the actual time without closing the app, looking at the watchface, and reopening it. The app is full of times that only help if you know the time: showtimes, closing time, "opens at 9".

How to test

./pebble build wdw
./pebble test
./pebble build all
./pebble test --dest all
python3 scripts/unit_tests.py

Manually, on emery and gabbro:

  1. Open a park. The time shows at the top; scroll down. The park header slides away but the time and tabs stay.
  2. Cross a minute boundary on the park view, settings, the scrolled list and the picker. The time updates on each.
  3. Switch the watch between 12h and 24h. The bar follows.

Already verified

  • Unit suites 9/9, including new tests/unit/test_geom.c.
  • WDW integration 8/8 and uber integration 14/14, run on emery via scripts/integration_tests.py directly (no Docker in my environment).
  • Minute tick checked on emery and gabbro across 4 screens each (park view, settings, scrolled list, picker) by diffing status-bar pixels across a real minute boundary: 8/8 ticked.
  • 83-switch TEST_MODE soak: no crashes, and heap_bytes_free() identical at every sample, so the per-window status bars don't leak. The heap logging lived only in a throwaway generated build, not in this branch.
  • Free heap drops by ~350 B (WDW) and ~470 B (uber).

Not verified

  • Not tried on a physical watch.
  • The integration suites ran on emery only; gabbro was covered by screenshots and the tick check.

Checklist

  • I've run ./pebble test locally (WDW integration tests: 8 passed)
  • I've run ./pebble test --dest all if my change touches the uber app (14 passed)
  • I've added tests for new behaviour (if applicable) (test_geom.c; the status bar itself is firmware, so it's covered by the emulator tick check above)
  • I've updated docs (README, CONTRIBUTING, comments) if needed
  • Commit messages follow the project style (see CONTRIBUTING.md)

Screenshots

Before/after captures on emery and gabbro were taken in the emulator and shared in the session; I can't upload images from this environment. They regenerate from this branch with ./pebble screenshots --dest wdw --platform gabbro (and --platform emery).

Out of scope: other UI/UX findings from the same review

Not touched in this PR. Ranked by user impact; file refs are on this branch.

  1. High: amber waits (30–59 min) are hard to read, 1.9:1 contrast on white rows and 1.7:1 on the stripe. src/c/colours.h:37
  2. High: round: wait values clip near the top and bottom of the circle (Clo...). src/c/park_view.c:353 (draw_row_inline)
  3. High: shows list in API order, not by time. src/c/sort.c:104
  4. Med: data age "· 3m" reads like a wait time and disappears when scrolled. src/c/format.c:87
  5. Med: empty-state rows render as selected; "No shows today" also appears after the last show has run. src/c/park_view.c:406
  6. Med: an open ride with no posted wait shows "?". src/c/park_view.c:246
  7. Med: settings Sort row hides the current mode; "Fave Attractions" opens "FAVE RIDES". src/c/settings_view.c:43, :99
  8. Med: uber park picker is titled with the app name, not the destination. src/c/park_picker.c
  9. Med: nothing on the watch says long-press SELECT favourites a ride.
  10. Med: round shows no ThemeParks.wiki credit; the comment at src/c/park_picker.c:31 says settings has it, but it doesn't.
  11. Low: fave A–Z list uses strcmp ("it's a small world" sorts first; case-sensitive). src/c/settings_view.c:47
  12. Low: * marks both favourites and the current sort.
  13. Low: loading dots attach to the park name; "BACK for parks" is wrong in single-park and fixed-destination modes. src/c/loading_view.c:117, :133
  14. Low: timeline hours pins are always 24h zero-padded, even for 12h users. src/pkjs/lib.js (buildHoursPin)
  15. Low: "Down" is styled the same as "Closed"/"Rehab".
  16. Low: docs/screenshots/ date from the April release, don't match today's UI, and nothing links to them.

Generated by Claude Code

Testers had to leave the app for the watchface just to read the clock,
and the app is full of times you can only act on if you know the time:
showtimes, closing time, "opens at 9".

Every window now opens with a StatusBarLayer (firmware-drawn and
ticked, follows the watch's 12/24h setting) in the header palette, so
it reads as the top of the navy header block:

- Park view: the header now collapses up *behind* the status bar
  instead of off the top of the screen, so the time and the tabs stay
  visible however far you scroll.
- Pickers, settings, destination browser: status bar + a shared 26px
  title strip (UI_TITLE_H); the per-shape header offsets are gone
  because the bar fills the band a round display clips anyway. On
  gabbro the navy block is still exactly 46px on the pickers.
- Park picker rows are 42px on rect (was 44) so a four-park
  destination still fits whole: 228 - 46 - 14 footer = 168 = 4 x 42.
- Loading/error screen gets the clock too ("Phone not connected" can
  sit there a while).

Round follow-through, since the tab strip now slides between y=20 and
y=56 instead of y=0 and y=44:

- Tab labels and the settings gear are placed inside the visible
  chord of the circle at the strip's live position (new pure
  geom_round_span, host-tested in test_geom.c). Collapsed tabs were
  clipped to illegibility at y=0 before, and the gear sat outside the
  circle in both states.
- Park header text flows inside the circle, so long names ellipsise
  instead of losing their first letter ("LEGOLAND New York").

Verified in the emery and gabbro emulators: the status bar ticks on the
minute on the park view, settings (after the park view unsubscribes the
app tick service), the collapsed list and the picker; 12h and 24h both
render, and a live format switch repaints it. TEST_MODE soak: 83 park
switches (each pushes/removes the loading window and its status bar),
heap_bytes_free() identical at every sample. Unit suites 9/9; WDW
integration 8/8; uber integration 14/14. Code cost ~350-470 bytes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GzGTHhBrFT4BhWCkgV5pYz
@cubehouse
cubehouse merged commit aefdb7a into main Oct 31, 2026
1 check passed
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