From e793644c7192a96ae2e39e072708b059edafaeeb Mon Sep 17 00:00:00 2001 From: Gabriel Schneider Date: Thu, 26 Nov 2026 01:30:32 -0300 Subject: jj, ansi, colors: the Changes layer and a terminal's diff draw their added and deleted rows, lanes and churn from the chrome (the themes programme's L2c; DESIGN.md R10, B6), worked out once a theme change by Chrome.of and read by `p.chrome()`, never derived again a frame, a row or a ghost line: a line a change added whole and a ghost line it added on `add.row`, a line taken away whole and a line going on `del.row`, its text in `line_number`, the words that went on `del.emph` and the words that came on `add.emph`, a description's id in the keyword's syntax ink where one change is pinned; one change pinned, its lane in the diff's own markers, `add.ink` beside a row it wrote and `del.ink` beside one it took away (the user's rulings of 2026-11-23); several, `lanes` (the sixteen's accents and the number and keyword hues, written and taken away left out, hue-sorted, R10); churn on `heat`'s eight steps from the line numbers' ink to the deleted hue, the step a count's log share of the hottest; a finished command pane's diff (ansi.recolorDiffOutput) on `add.row`/`del.row`, its markers `add.ink`/`del.ink`, its words the page's text; DELETED: jj.laneInks, laneColours and their HSV helpers (hue, hueApart, chroma, hue_apart), themeRed and its literal #cf222e and #2ea043 (the second copies of Grounds' fallbacks), heatColour's OKLab mix a row, the six Grounds.of a frame (one per ghost row, mark and going line); THE CAUSE where one moved: the old reds and greens were the palette's or two literals, so `dark` and every theme without a palette drew GitHub's red and green on rows mixed from the tag (the page's stand-in), the lane inks were pushed toward the text by 40 % steps to 3:1 on that page, and the markers on the patch view and the lanes disagreed (C1's surfaces.md ยง3.7); and a theme whose accents are all grey would divide by a lane count of 0 (colors: `lanes` now never empty: a theme with no accent draws its lanes in the line numbers' grey); the ring's `diff` check at B4's floor, 1.15:1 (was 1.1), unless the theme's text holds the row nearer (R10: never under its floor on the row: tokyonight_day's #3760bf on #e1e2e7, 4.9:1, leaves 1.11:1), and 0.05 apart; RUN (TEST FIRST): jj.zig's lane tests re-pinned to the chrome ("Changes draws a lane ...", "Changes draws what the text has not ...", "from the middle ...", "Churn counts ...", "Compare pins ...": the lanes `lanes[pin]`, a whole line's ground `add.row`, a going line's `del.row`, the ghost text `line_number`, the id `syntax[keyword]`, one change's lane `add.ink`/`del.ink`, churn's hottest `heat[7]` and 3-of-4's `heat[6]`), and "a diff's two lane inks in every theme" now asks every theme's markers apart and 4.5:1 on their row and words (as near as the theme reaches): on the base the four drawing tests fail (the old inks) and the ring fails tokyonight_day at 1.15, all pass now; diffview.golden re-recorded: rows 18-20 and 23-25 (the command pane's `cat change.diff`: its deleted row #302b25 -> #331a12, its added rows #263025 -> #132503: R10's rows 1.15:1 off orchard's page in the hue, where Grounds mixed the page 18 % toward the palette's colour; the markers #f1a39b and #b6ce94 unchanged, orchard's own red and green already 4.5:1 there), the diff pane's own rows (File.zig, L2b's) and diffstack.golden unchanged; GATES: core-test 1123/1296 (173 skipped; the base's count), process-test `diff` 2/2 after the update; load 3.5 to 6.7 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_016Y9MNBFhdevVu48bvL9kCE --- test/snapshots/diffview.golden | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'test') diff --git a/test/snapshots/diffview.golden b/test/snapshots/diffview.golden index 3a83fb25..c441e19c 100644 --- a/test/snapshots/diffview.golden +++ b/test/snapshots/diffview.golden @@ -136,14 +136,14 @@ |15: 0-0 d,#608269, 1-99 d,#0d1410, |16: 0-1 d,#496656, 2-99 #b2c3b8,#1d2824, |17: 0-0 d,#152019, 1-6 d,#0d1410, 7-99 #e5eee5,#0d1410, -|18: 0-0 d,#152019, 1-1 d,#0d1410, 2-2 #f1a39b,#302b25,b 3-6 #f1a39b,#302b25, 7-19 #e5eee5,#302b25, 20-20 #f8c082,#302b25, 21-99 #e5eee5,#302b25, -|19: 0-0 d,#152019, 1-1 d,#0d1410, 2-2 #b6ce94,#263025,b 3-6 #b6ce94,#263025, 7-99 #e5eee5,#263025, -|20: 0-0 d,#152019, 1-1 d,#0d1410, 2-2 #b6ce94,#263025,b 3-6 #b6ce94,#263025, 7-16 #e5eee5,#263025, 17-23 #c9a7ed,#263025, 24-99 #e5eee5,#263025, +|18: 0-0 d,#152019, 1-1 d,#0d1410, 2-2 #f1a39b,#331a12,b 3-6 #f1a39b,#331a12, 7-19 #e5eee5,#331a12, 20-20 #f8c082,#331a12, 21-99 #e5eee5,#331a12, +|19: 0-0 d,#152019, 1-1 d,#0d1410, 2-2 #b6ce94,#132503,b 3-6 #b6ce94,#132503, 7-99 #e5eee5,#132503, +|20: 0-0 d,#152019, 1-1 d,#0d1410, 2-2 #b6ce94,#132503,b 3-6 #b6ce94,#132503, 7-16 #e5eee5,#132503, 17-23 #c9a7ed,#132503, 24-99 #e5eee5,#132503, |21: 0-0 d,#152019, 1-99 d,#0d1410, |22: 0-0 d,#608269, 1-6 d,#0d1410, 7-99 #e5eee5,#0d1410, -|23: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #f1a39b,#302b25,b 3-10 #f1a39b,#302b25, 11-99 #b8d88a,#302b25, -|24: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #b6ce94,#263025,b 3-10 #b6ce94,#263025, 11-99 #b8d88a,#263025, -|25: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #b6ce94,#263025,b 3-10 #b6ce94,#263025, 11-99 #b8d88a,#263025, +|23: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #f1a39b,#331a12,b 3-10 #f1a39b,#331a12, 11-99 #b8d88a,#331a12, +|24: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #b6ce94,#132503,b 3-10 #b6ce94,#132503, 11-99 #b8d88a,#132503, +|25: 0-0 d,#608269, 1-1 d,#0d1410, 2-2 #b6ce94,#132503,b 3-10 #b6ce94,#132503, 11-99 #b8d88a,#132503, |26: 0-0 d,#608269, 1-6 d,#0d1410, 7-99 #e5eee5,#0d1410, |27: 0-0 d,#608269, 1-2 d,#0d1410, 3-99 #e5eee5,#0d1410, |28: 0-0 d,#608269, 1-1 d,#0d1410, 2-99 #e5eee5,#0d1410, -- cgit v1.3