fix(weather): weather cards measure from the timeline time and know when wind follows it

At a past time the radar, lightning and satellite cards aged the shown
frame and judged the source delayed against the wall clock, so a frame
from years back read "Source observations delayed" and an age in the
millions of minutes. Frame ages, the delayed status and the stale stat
now count from the timeline time at a past time, and from now while
live, as before. The observed timeline's readout and preview show the
time alone at a past time, since its age from the timeline time is
always zero.

The wind card noted that it does not follow the timeline whenever the
observed clock was at a past time, even when a host follows the world
clock for wind. The weather clock now reports whether a layer follows the world
clock (weatherClock.follows(id), the world clock's follows), and the
wind row and card drop that note when its source follows the timeline.
This commit is contained in:
Sameh Khamis committed 2026-11-14 17:04:55 -08:00
1 parent 7b4b4d4184
commit 6e23a73283
8 files changed
+151 -21

No files matched your search

+6
View File
@@ -248,6 +248,12 @@ export function createWeatherClock({
},
getTimeline,
selectFor,
/**
* Whether layer `id` follows the world clock (see the world clock's
* `follows`): a host that follows it for a layer of its own, such as
* wind, gives that layer the timeline time rather than the live edge.
*/
follows: (id) => world.follows(id),
setTarget(time) {
if (destroyed) return Promise.resolve(false);
if (!Number.isFinite(Date.parse(time)))