The reporter (Windows) picked an earlier date range; the day menu then
listed today first and the range's last day second, as if no day between
had calls. usage:day's days stop at the date read (usageapi.SpanOf:
h.Date <= date), and the menu put today on top of them. A day or span in
the past now reads today's days for the menu (one more usage:day read,
date "", on opening it) and V.menuDays merges both, newest first, today
on top, the newest 120 and back as far as the day shown. If that read
fails the menu lists only the days it has, with no today above a gap.
Chosen over leaving today out: the menu is how you get back to a later
day, and today was always on it.
Run on mica (mote's load was over 18) at 76cfb7fe + this change:
- HOME=$(mktemp -d) bun test (whole repo): 8717 pass, 0 fail.
- bun scripts/check.mjs: exit 0.
- day-menu.gui.mjs (new, real page, stub bridge answering as SpanOf):
all ok in Chromium and WebKit, day, week and month.
Broken by hand: with the old menu logic moved into V.menuDays unchanged,
the new unit test is red (today then 11-01, 11-06..08 missing); with
origin/main's app.js and view.js, day-menu.gui.mjs FAILs "chromium day to
11-01" with 2026-11-09 2026-11-01 2026-10-20, the reporter's case.
Rebased onto 4170d0e8 (antigravity/agy-cli only, no day-card change).
Not tried: the live magpie window on Windows.