Skip to content

Land a root side list's start on Back or Forward - #1421

Merged
max-sixty merged 6 commits into
mainfrom
layout-survey
Sep 29, 2026
Merged

max-sixty merged 6 commits into
mainfrom
layout-survey

Conversation

@max-sixty

Copy link
Copy Markdown
Owner

A tab set whose list stands beside its panels (lf-tabs list="side") is a box even as the page's first set: it keeps the page's history, but a switch leaves the page where it stands. That is right for a press, which the user makes at the list. Back or Forward is made from wherever they read, though. After reading deep into a long ticket, Back to a ticket taller than the screen clamped the page to its new end: at 390px the ticket's start sat 1,710px above the screen and the list 1,782px above, and 1200px behaved the same. Forward then landed partway into the long ticket.

A history switch in a box now brings the set's start into view when the user stood below it, as a page-flow view without a stored place lands at its own start. A set already in view stays where it is. A review of #1363 inferred the case, and a probe confirmed it before this fix.

Tests: the side-list test in test_render_widgets.py now reads deep, presses Back, and asserts the set's start is on screen; it fails with the fix removed. The tab-set tests in test_render_widgets.py and test_render_navigation.py pass, nightly included.

This was written by Claude Code on behalf of max-sixty

🤖 Generated with Claude Code

max-sixty and others added 6 commits September 28, 2026 08:34
… zone

lf-chart typed its x column with a parser of its own that accepted only an
ISO month or day and built each Date from its parts. Its stated reason, that
Date draws a bare 2026-06-01 under May 31 west of Greenwich, holds only on a
local-time scale; the chart's scale is UTC, and Date reads a month or a day
as UTC midnight, which is how Plot itself reads an ISO string on a time
scale. So the column is still typed here, since Plot draws strings as
categories, but Date does the reading.

That admits moments that state their zone (2026-09-27T14:00Z), which two
authors in the arrangement eval wrote and saw printed whole on the axis. A
moment without a zone stays a category, since Date would read it in each
viewer's own zone. Two labels naming one instant (2026-06 and 2026-06-01)
are refused like two rows sharing a label, where before a mixed column fell
back to categories. More than ten rows inside ten days can only be moments,
so their ticks are Plot's own rather than held to a day. Moments are
labelled in UTC, which the registry entry now says.

A new browser test covers the time axis, the zoneless category and the
refusal, and fails with each rule reverted.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The refusal ran in readAxis, which draw() calls for every kind, so a bar chart
with 2026-06 and 2026-06-01 showed an error though a bar keeps a slot per
label. It now runs where a line or a scatter takes a continuous axis, and
covers numbers too: 1 and 1.0 would draw two rows at one x the same way.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
A tab set whose list stands beside its panels is a box even as the page's first
set, so a switch leaves the page where it stands. That is right for a press,
which the user makes at the list, but Back or Forward is made from wherever
they read: after reading deep into a long ticket, Back to one taller than the
screen clamped the page to its end, 1,710px below the ticket's start at 390px
and the same at 1200px, and Forward then landed partway into the long one.

A history switch in a box now brings the set's start into view when the user
stood below it, as a page-flow view without a place lands at its own. The
side-list test reads deep, presses Back, and fails without it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@max-sixty
max-sixty merged commit 2713b9b into main Sep 29, 2026
5 checks passed
@max-sixty
max-sixty deleted the layout-survey branch September 29, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants