Read the sleep & wake list newest first
The merged list ran oldest first, which put last night's sleep at the top and pushed whatever is happening now further down with every window the day adds — so the row you look at most often was the one that moved. Reversed, it matches the history and notes logs: the open row leads, and the day reads backwards from where you are. The interleaving is untouched, since alternation survives either direction. The changelog entry for the merge is corrected rather than answered with a second one. It walked through an example day in the old direction, and the build that shipped it is the same one this lands in — nobody has a version where the list read the other way.
This commit is contained in:
+7
-4
@@ -1030,14 +1030,17 @@
|
||||
// Sleep and wake windows are the same boundaries read two ways — a wake
|
||||
// window is precisely the gap between two sleeps — so they alternate by
|
||||
// construction and sorting the two sets by start time interleaves them back
|
||||
// into the day's actual rhythm. Read in order, "45 minutes asleep after two
|
||||
// and a half hours up" is a single glance instead of a comparison between
|
||||
// two lists.
|
||||
// into the day's actual rhythm, "45 minutes asleep after two and a half hours
|
||||
// up" in one glance instead of a comparison between two lists.
|
||||
//
|
||||
// Newest first, like the history and notes logs: the row still running is
|
||||
// then the first one you see, and today's list grows downward from where you
|
||||
// are rather than pushing the current state further away with every window.
|
||||
function sleepWakeWindowsForDay(events, day) {
|
||||
return [
|
||||
...sleepWindowsForDay(events, day).map(w => ({ ...w, cls: "sleep-ww", tag: "Asleep" })),
|
||||
...wakeWindowsForDay(events, day).map(w => ({ ...w, cls: "wake-ww", tag: "Awake" })),
|
||||
].sort((a, b) => a.start - b.start);
|
||||
].sort((a, b) => b.start - a.start);
|
||||
}
|
||||
|
||||
function renderSleepWake(events) {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
[
|
||||
{ "date": "2026-08-31", "text": "The Walks panel and its two charts have moved down the page, below “Pees, poos & meals”" },
|
||||
{ "date": "2026-08-31", "text": "Sleep windows and Wake windows are one “Sleep & wake” panel now, with the two interleaved into a single list in time order — asleep 22:10–06:05, awake until 08:30, asleep 45 min, and so on down the day. A wake window is just the gap between two sleeps, so the two lists were always halves of the same sequence, and reading them in order makes “only a 45-minute nap after two and a half hours up” obvious in a way two separate lists never did. Each row says which it is and carries a stripe in its colour; whichever one is still running keeps the highlight" },
|
||||
{ "date": "2026-08-31", "text": "Sleep windows and Wake windows are one “Sleep & wake” panel now, with the two interleaved into a single list, newest first — awake since 12:30, asleep 11:40–12:30, awake since 09:15, and so on back through the day. A wake window is just the gap between two sleeps, so the two lists were always halves of the same sequence, and reading them together makes “only a 45-minute nap after two and a half hours up” obvious in a way two separate lists never did. Whatever is happening right now is the first row, as in the history and notes logs. Each row says which it is and carries a stripe in its colour; whichever one is still running keeps the highlight" },
|
||||
{ "date": "2026-08-31", "text": "The list of weigh-ins under the Weight chart folds away on its own now — tap “History” inside the panel to collapse just the rows and keep the latest figure and the curve on screen. It remembers the choice like the panels do, and folding the whole Weight panel still takes everything with it" },
|
||||
{ "date": "2026-08-31", "text": "Walks now get the same two pattern views sleep has. “When … walks” is a day-per-row grid shaded where a walk was on, so you can see at a glance whether the routine is actually regular or drifts around. “Walk trend” draws the minutes walked so far at each point of the day against yesterday and the average over the picked window, with the age-based goal as a line and a ✓ once the day clears it — the line climbs only while a walk is on, so every step is one walk. Both appear under the Walks panel as soon as you have logged a walk, and stay out of the way until then" },
|
||||
{ "date": "2026-08-31", "text": "The 7d / 14d / 30d buttons now set the window for the Timing panel too. Until now the typical, shortest and longest gaps between pees, poos and meals were always measured over the last 7 days whatever you picked; switch to 30d and they are measured over 30, which settles down the typical gap once there is a month of history to draw on" },
|
||||
|
||||
Reference in New Issue
Block a user