git clone https://garage44.eu/jeroen/cartopolis.gitcartopolis-agent · 2026-12-01T12:05:58Z
docs(attempts): what s829 tried
...26-11-23-s829-component-library-layers-panel.md | 66 ++++++++++++++++++++++ docs/attempts/README.md | 1 + 2 files changed, 67 insertions(+) diff --git a/docs/attempts/2026-11-23-s829-component-library-layers-panel.md b/docs/attempts/2026-11-23-s829-component-library-layers-panel.md new file mode 100644 index 00000000..a03d9dcf --- /dev/null +++ b/docs/attempts/2026-11-23-s829-component-library-layers-panel.md @@ -0,0 +1,66 @@ +--- +session: s829 +code: refs/attempts/s829 (3d25320281d9bbe61e983c6effcecf020bf796e5) +started: 2026-11-23 +filed: 2026-12-01 +triggers: lib_layers.rs, lib_host.rs, lib_settings.rs, layers_panel.rs, layer_state.rs, data_layers.rs, crates/mithril_bevy/src/tree.rs, ui_probe.rs, docs/mockups/component-library, Tile, TileGrid, Chip, IconTabs +--- +# The Layers panel on the component library (phase 5), left mid-way when the session ran out + +## Asked +"Onze mithril library is nu alleen voor het web. Kunnen we het ombouwen naar een +jsx-achtige library, waarbij we de ui components ook kunnen gebruiken in bijv. +Cartopolis? … We willen uiteindelijk egui vervangen met de nieuw te bouwen +library." Then, after the study and its first landing: "ga door met fase 2 en +de rest." Each landing was answered "Land it, sessie open" for the next phase. + +## Tried +The session built and landed phases 0 to 4 of +`docs/mockups/component-library/README.md` in cartopolis main (d2cfc055, +e28f21b0, 893a185e, bcb151ab, 2d72954c, 5952fcf4) and in jeroen/mithril: the +Rust edition of the library, its cascade and Bevy renderer (`mithril_bevy`), +every Settings page on it, one token table for the web's `theme.css` and the +app, and the same screens as DOM in the web build. Those are not this note's +subject; they landed. + +What stayed on the branch is the start of phase 5, the Layers panel as the +library's second screen, drawn as the `layers-and-ring` mockup had it rather +than as egui built it: six round category buttons with counts, the layers as +tiles that are each their own switch, chips for the kinds in a legend, three +choice tiles for the basemap. For it the library got `Tile`, `TileGrid`, +`Chip` and `IconTabs` in both editions (mithril 386ca649, tests and parity +36/36 green, landed later from s839), and cartopolis got +`systems/gui/lib_layers.rs` (every switch a signal diffed against +`DataLayers` each frame, the resource written through +`bypass_change_detection` and marked only when a field moved, because its +`is_changed` restarts streaming), `lib_host::prepare_bevy` (the Bevy host's +camera, fonts and scale, moved out of the Settings system so any screen gets +them), a `grid_tracks` parser in `mithril_bevy/tree.rs` for +`repeat(auto-fill, minmax(…))` and plain track lists, and the empty egui strip +that keeps the panel's width while the library draws in it. + +## How far it got +The probe check was green; the Bevy captures of the Map and City categories +drew the panel with the grid in two columns, as the browser rendering of the +same HTML did. Open at the handover: the `NL` chip stretched across its tile +in Bevy; the browser captures in the comparison were still the old ones +(the library's orange tokens, without cartopolis' `theme.css`); the wasm lane +had not been checked again after the grid change; the gates had not run; the +study's and the note's text for the Layers screen were written but not +re-read. + +## Why it did not land +The session hit the model's usage limit mid-step and was handed over: on the +person's request session-s839 took the work (midas note n1463, 2026-11-24), +and its branch was swept into a handover commit. s839 and the sessions after +it carried the Layers screen (2463deed) and the rest of phase 5 through — main now has +`lib_layers.rs` beside some sixty `lib_*` screens, and egui was removed on +2026-11-26 (759411f7). The branch's code is therefore superseded, not wrong: +it was left where a longer session would have continued. + +## Worth keeping +Nothing to pick up: main has the finished Layers screen. If something in the +attempt is wanted for comparison — the first `lib_layers.rs`, the +`grid_tracks` parser, `prepare_bevy` — `git fetch origin refs/attempts/s829` +brings it back. The lesson is the handover itself: a long multi-phase session +should land each phase (it did) and hand over at a landing, not mid-screen. diff --git a/docs/attempts/README.md b/docs/attempts/README.md index 91491ee2..b36d8160 100644 --- a/docs/attempts/README.md +++ b/docs/attempts/README.md @@ -2,4 +2,5 @@ What sessions tried and did not land, and why; each note names where its code is kept. +- [The Layers panel on the component library (phase 5), left mid-way when the session ran out](2026-11-23-s829-component-library-layers-panel.md) — s829, 2026-11-23: session hit its limit mid-screen; s839 took the work over and landed it - [Warm low-sun light: scattered cloud keeps the sun, and a clear default haze](2026-11-02-s563-warm-low-sun-light-and-clear-haze.md) — s563, 2026-11-02: left unlanded while the talk went on; never refused