diff options
| author | Gabriel Schneider <[email protected]> | 2026-11-25 09:57:56 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-11-25 09:58:56 -0300 |
| commit | 6d90badbf94dcee1c8a123153fb331b8c523c9f1 (patch) | |
| tree | 2223fcf9398a956e3d7aa44d7847ef537544924e /dev/gui/gui.zig | |
| parent | 1902703adec3e8461d623fe6e867bc8adb1e52e0 (diff) | |
| download | pardes-6d90badbf94dcee1c8a123153fb331b8c523c9f1.tar.gz pardes-6d90badbf94dcee1c8a123153fb331b8c523c9f1.zip | |
Pick: a picker's band is capped once, at open, at 40 % of its host pane's rows (UX D6 as E3 amends it, DESIGN.md E5.1), so the layout that borrows the host's body from its column sees the band the pane will have: a Grep from a held pane at 100x30 previews 11 rows (the old +Preview's 8 is E7's pass mark; P1's tree showed 6 at 26 px); TEST FIRST: Pick.zig "a picker's band is capped once at open at 40 % of its host pane's rows; the host borrows from its column for a body of 60 % before the band gives way: a Grep from a held pane at 100x30 previews 8 rows at least" (a held pane, Grep `pub fn` over a file of 40 such lines, Down: on the base the reader made for it, 14 rows at open, kept 14 (2 tag rows, a band of 6, a body of 6, under 60 %) while the held pane kept its 13: `expected 5, found 6`); THE CAUSE: Pick.bandRows took 40 % of the host's COLUMN from `v.rects`, and layout.compute zeroes every rect before it lays the columns out (`v.rects = @splat(.{})`), so the floor it asked while borrowing (layout.floorRows -> Band.takes -> bandRows) was a band of 1 row: nothing was borrowed, and the sync after it (rects laid out) held the band to what the pane had left over a body of 6; P1's reading 5 (the column) is E4's ruling 5 reversed: the host PANE's rows; THE FIX: `Pick.cap`, set in `open` from the host's rect (laid out: landingFor lays a reader made for the picker out), read by bandRows in place of the column (in the dump and the digest with the picker: the layout's term is the state's); the band may still grow with the list (Find's names) up to the cap, never past 11; GOLDEN: fsearch (list, ctrln): the reader borrows one row from the pane above (rows 15-29 where 16-29: 2 tag rows, the band of 4, a body of 9 = 60 %, where it kept 8), so the head is on row 15 and the body shows one more line (9, 11); landed: row 15 goes back to the pane above, blank, as leaving the state gives every pane its rows back; no other golden moved; core-test 1085/1256 (171 skipped), process-test 1 of 147 failed before the golden (fsearch, regenerated with `-- --update fsearch`)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE
Diffstat (limited to 'dev/gui/gui.zig')
0 files changed, 0 insertions, 0 deletions
