Repository navigation
feat(ui): show the current time on every screen - #1
Merged
Merged
Conversation
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
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.
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:
geom_round_span, host-tested). Collapsed tabs were clipped to illegibility before, and the gear sat outside the circle in both states.Layout changes worth a look in review:
UI_TITLE_H) replaces the per-shape header offsets in the pickers, settings and destination browser.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
Manually, on emery and gabbro:
Already verified
tests/unit/test_geom.c.scripts/integration_tests.pydirectly (no Docker in my environment).TEST_MODEsoak: no crashes, andheap_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.Not verified
Checklist
./pebble testlocally (WDW integration tests: 8 passed)./pebble test --dest allif my change touches the uber app (14 passed)test_geom.c; the status bar itself is firmware, so it's covered by the emulator tick check above)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.
src/c/colours.h:37Clo...).src/c/park_view.c:353(draw_row_inline)src/c/sort.c:104src/c/format.c:87src/c/park_view.c:406src/c/park_view.c:246src/c/settings_view.c:43,:99src/c/park_picker.csrc/c/park_picker.c:31says settings has it, but it doesn't.strcmp("it's a small world"sorts first; case-sensitive).src/c/settings_view.c:47*marks both favourites and the current sort.src/c/loading_view.c:117,:133src/pkjs/lib.js(buildHoursPin)docs/screenshots/date from the April release, don't match today's UI, and nothing links to them.Generated by Claude Code