Commit Graph
2 Commits
Author SHA1 Message Date
yetone 689b5b1838 gui tests: routing-context-fold scrolls a button out from under the window's header before clicking it
routing-context-fold.test.cjs had 2 failures on main, in WebKit only.
Its click() helper took a button anywhere below y=0 as clickable, but
the window's header covers the top 46px and takes a click over it, so a
button scrolled to just under the window's top edge was never pressed.
It now treats the top of #view-routing as the edge. The app is right: a
reader can't click through the header either. No single app commit
turned it red; a bisect was noisy and moved with where the cards fell,
which is what a geometry bug in the helper does.

Run: routing-context-fold.test.cjs, chromium and webkit, 12/12 each,
twice (every language and width the file covers).
2026-10-11 02:34:20 +08:00
yetone c17cbfa161 routing, gui: the folded context window shows a thin bar of what fills it beside how full it is, one line high whatever a live request puts in it, and a request opened from the Usage page's Context tab shows its card unfolded, it alone (PILIPALA @NXirg2 on X, Jeremy.Zhou on Discord)
On af798bd1's fold: folded, the head carries a bar of the window's
parts (system, tools, memory, files, results, chat), morphed with the
head so a live request changes its widths only; the folded head is
pinned at the open head's 20px and doesn't wrap. "Latest request" and a
point of the session line on the Usage page's Context tab open the
request with { context: true }: its card shows unfolded for it, the
next request takes the reader's choice (magpie.ctxShut) again, which is
left as it was; folding that card by its title keeps it folded.

routing-context-fold (new): folded at 1920x1080, 1440x900 and 440x900
in en, zh and de, one line with the bar, the stage and (at 1440 and
wider) the request list in view, nothing running over; opening doesn't
move the page; the Usage page's request opens unfolded for itself only.
routing-live-patch's folded cases: the card, head and bar are the same
nodes across live requests and the card's height never changes. Both
fail on af798bd1's assets. No new strings.
2026-10-09 02:22:10 +08:00