You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
health: split typical pill into bin-time + daily-total on color
The activity-summary "typical" pill now exposes both the bin-aware
"by now" step count and the full-day weekday historical average,
laid out side by side on color displays (DISP_COLS > 144). Header
line stays "TYPICAL <day>"; below it a two-column row shows the bin
time on the left and the static TOTAL label on the right, each
underlined, with the corresponding value beneath. BW boards stay
two-line: TYPICAL <day> over the daily total alone, since they don't
have the room for the split.
Renderer-side changes:
- Add daily_total and bin_minute arguments to
health_ui_render_typical_text_box. Sleep card passes -1/-1 to keep
its single-value behavior; activity card passes the bin-aware step
count as value_text plus the new numbers. Empty state still
collapses to the em-dash via -1/-1.
- On color with both numbers present, the pill grows to 53px tall to
fit the three rows. On BW (or color sleep), the pill keeps its
original 35/36px height.
Data-layer change: re-add health_data_steps_get_current_average_minute
returning the minute-of-day of the latest completed step-average bin.
The activity card caches it on each layer update and passes it through
to the renderer. The lazy-refresh helper that backs both
health_data_steps_get_current_average and the new accessor is factored
out as prv_refresh_current_step_average.
Test fixture: pin RTC to Saturday 16:19:35 UTC and 24h clock format
so the rendered "16:15" bin time is deterministic in goldens. Each
test case seeds step_average_last_updated_time = 975 to match.
Regenerate activity-summary goldens on obelix/gabbro.
Co-authored-by: Claude <noreply@anthropic.com>
Signed-off-by: Ave Özkal <git@ave.zone>
0 commit comments