Commit Graph
6267 Commits
Author SHA1 Message Date
aiongg 6575942aed MemoProps by the derive where it expresses the key; the tool rail trials' rooms are trial rooms
ShapePreset derives (a fieldless enum: its variant), UnderVeil and the gallery card's Look
derive with their foreign fields keyed by Hash. The rail trials' fixture room is exempt from
literal-size as the iconic column trials' are.
2026-11-20 14:08:58 +00:00
aiongg 31bda8a4fb craft-ui: a root shown at a rect that is not a number registers its egui widget at no place
The root's widget takes its whole rect since f43fb4e2c2, so a NaN rect reached egui's
create_widget, which asserts on it (value_drag's degenerate-rect trial). Before, the
intersection with the clip hid it.
2026-11-20 13:57:58 +00:00
aiongg b4dc6b1e2f craft-ui: a memoized view's content keeps the axes its body sizes from its content
start_room cleared the enclosing body's content axes, so a fill-width child in a view
shown in a content-sized column took the room instead of its measured size: the tool
rail's slot grid filled the Liquify and Vanishing Point dialogs' rows and left their
canvases no width. The axes stay, like cell_fills and least, and the scope key holds them.
Trial: a view in a content-sized column lays its fill-width row out as outside a view.
2026-11-20 13:57:58 +00:00
aiongg fade8e0ba5 craft-ui: a focus request waits for the stop it names when that stop registers later in the pass
A component asks for its own focus from update, and its stops register after update
(910a14280f). The request found no stop and focused the component's id, which is no egui
widget when the stop's root is another widget (an arena member's root), so egui dropped the
focus after its grace pass: a shortcut recorder lost focus before any key reached it. The
stop now takes the focus when it registers in the same pass.
2026-11-20 13:47:38 +00:00
aiongg be31589c88 craft-timeline: drop an unused import in the timecode tests 2026-11-20 12:37:47 +00:00
aiongg e08485440e craft-ui-panels: the group header's doc names the tab row view without linking a private item 2026-11-20 12:29:04 +00:00
aiongg d9475fba2b craft-ui: a root keeps the key focus it holds for a member at step 8
The stop of an arena member (a radio in its group, a theme chip) has its root's
egui widget as its widget. Step 8 registers that widget with the root's own and
its parts' senses, and the members' senses join once the body has run
(widen_root). egui drops the focus of a widget registered without a focus sense,
so Tab, an AccessKit Focus or a press that focused a member lost it in the same
pass. While the focus service says the root holds focus for another component's
stop (focus::held_for_member), the step-8 sense includes focus.
2026-11-20 12:16:39 +00:00
aiongg 4af1ede89b craft-ui: arrays and texture ids carry through a shifted replay 2026-11-20 12:04:34 +00:00
aiongg fbb1f0f911 story-render: walk the gallery's kept story states through Cells::states_mut 2026-11-20 11:56:02 +00:00
aiongg 7e5db7494b ci: the workflow test knows the Linux leg's replay audit step 2026-11-20 11:48:03 +00:00
aiongg 439a6ced67 Merge storytold next into memo-audit-fix 2026-11-20 11:44:32 +00:00
FredApps a00313a52e Merge pull request #2375 from storytold/perf/2218-time-evm
time and evm: consolidate integration tests
2026-11-20 18:41:15 +07:00
FredApps 82ebc7bb35 Merge pull request #2374 from storytold/perf/2218-cloud
cloud, proof and testkit: consolidate integration tests
2026-11-20 18:40:16 +07:00
FredApps 35786102e9 Merge pull request #2372 from storytold/perf/2218-idml
document formats: consolidate integration tests
2026-11-20 18:39:16 +07:00
FredApps 00963f1d77 Merge pull request #2371 from storytold/perf/2218-sourcemap
XML formats: consolidate integration tests
2026-11-20 18:36:15 +07:00
FredApps f5e078193b Merge pull request #2370 from storytold/perf/2218-pptx
office formats: consolidate integration tests
2026-11-20 18:34:52 +07:00
FredApps ab9f9a4a27 Merge pull request #2369 from storytold/perf/2218-raster
image codecs: consolidate integration tests
2026-11-20 18:33:50 +07:00
FredApps 0ff58f1dac Merge pull request #2368 from storytold/perf/2218-dxf
dxf and prc: consolidate integration tests
2026-11-20 18:32:19 +07:00
FredApps 20dec8bbfc Merge pull request #2367 from storytold/perf/2218-zip
zip: consolidate integration test binaries
2026-11-20 18:30:49 +07:00
FredApps bcd5feda80 Merge pull request #2366 from storytold/perf/2218-ipc
ipc: consolidate integration tests and preserve discovery isolation
2026-11-20 18:29:32 +07:00
FredApps 06b351f51d Merge pull request #2364 from storytold/perf/2218-pcap
pcap: consolidate integration test binaries
2026-11-20 18:28:01 +07:00
aiongg 2d61e3e443 Audit trial: a kept run that missed a framework input, which only the run's facts hold
A missed inspection-record read is also in the run's journal, so the
journal comparison caught it before the facts were compared.
2026-11-20 11:23:36 +00:00
FredApps 186d77bcad Merge pull request #2373 from storytold/perf/2218-menu
menu: consolidate tests and keep AppKit on the main thread
2026-11-20 18:22:34 +07:00
FredApps c8d7736628 Merge pull request #2362 from storytold/perf/2335-runtime-accessors
Share pass services and contract steps across component types
2026-11-20 18:20:49 +07:00
aiongg 69ae41ff40 Reads: an edit reaches every read of an overlapping span in its source
A field's edit reaches a read of the whole value, as a whole value's edit
reaches its fields, in the same-frame rerun and in a settled view's check.
2026-11-20 11:20:46 +00:00
aiongg ea609119ea egui: pin storytold/egui next at 1a44fd11c 2026-11-20 11:17:07 +00:00
aiongg a9bd542c50 Container regions: a scrolling body in unbounded room shows its measured line in every real run
The real run is told by the run's own flag (no sizing pass), not by
whether a measured size is present.
2026-11-20 11:17:07 +00:00
aiongg 4b2769acac Replay audit: bare floats exact, reads and inputs compared; a whole story value's edit reaches its fields
A bare f32 or f64 a record holds or a view returns compares exactly; only
positions and the hit-shape distances snap within the tolerance. The audit
compares a kept run's reads and framework inputs with the real run's. A
command reader notes the keymap whether its resolution was kept or made
in the pass. A Tracked key holds its size, and an edit reaches every read
of a part inside it (BindKey::reaches), so a field of a story value bound
earlier in the pass runs again when the Properties editor writes the
whole value. Story value keys hash the name and the type.
2026-11-20 11:17:07 +00:00
aiongg 7dfc887cec Lints: DropMark copies; PlainData puts its bound on the type parameter; a stop-group alias in a bar trial 2026-11-20 11:17:07 +00:00
aiongg bddc593180 Merge storytold next into memo-audit-fix
Memoized views stay the one change mechanism: next's settling-path additions (modifier reads as bind keys, given-edit
and keymap unsettling, settle counters) give way to the tracked inputs that cover them, and request_own_repaint calls
become request_repaint. next's command board, node facts after the node check, the guide drag out of a ruler and the
CommandStates input are taken; the trials next wrote on Lazy::settles run on memoized views. The ruler guide env value
keys a view under the canvas in every pass of a drag. The replay audit's run in the gate takes next's target selection.
2026-11-20 10:26:06 +00:00
aiongg 5589523161 stories: values bound together come from one story value or StoryData::pair_at, helpers bind by source
A story binds two values at once from pair_at when one of them must keep its own name, as a dialog's open does for
the gallery's opener; values bound together otherwise share one story value, and a helper takes the value's ValueAt
beside it. The PDF export story's open leaves its settings value, so the card opens the dialog again after Cancel.
Unused Bind imports in story files are gone.
2026-11-20 10:11:06 +00:00
aiongg ddc06cae58 craft-ui: a scrolling body's measuring run keeps its unbounded band
The bound to the measured line applies once this pass measured the body; its measuring run lays the content out in
the unbounded band, so a measure reports the content's whole extent.
2026-11-20 09:58:39 +00:00
aiongg 717ff260cb stories: format 2026-11-20 09:50:49 +00:00
aiongg f39ad653e3 tests: drop the two card audit trials that pass without their fixes
Shown as the gallery shows cards (raised surfaces in rows that run only in view), a card moved by a fractional wheel
step and a card partly out of view still replay equal to a run with the moved-replay fixes reverted, so neither trial
guards them; the gallery's audit-on suite does.
2026-11-20 09:49:11 +00:00
aiongg 90e40105d2 stories: start and metadata stories bind their story value through ValueAt
They copied the value out and wrote it back, so their binds named the copy by address.
2026-11-20 09:49:00 +00:00
aiongg e4d8cbda9f craft-ui: a scrolling body in unbounded room shows its measured content
A content-sized scroll container nested in a body that scrolls is offered no bound along y: its view is the line this
pass measured, never an unbounded band (whose bar parts had NaN geometry). The card trials of the replay audit show
cards as the gallery does: raised surfaces in rows that run only in view, the scrolling card sized to its content.
2026-11-20 09:46:45 +00:00
aiongg 922dc82098 stories: story values kept in a local bind through ValueAt
Script: `let PAT = data.value(ARGS);` (or ranged, choice) whose locals a later Bind::bound / Bind::bound_mixed in the
same block binds becomes `let (PAT, AT) = data.value_at(ARGS);` and the binds become AT.bind / AT.bind_mixed; 292
values, 333 binds; unused Bind imports dropped.
2026-11-20 09:46:30 +00:00
aiongg b31717b578 craft-ui: StoryData::value_at binds a story value or a field of it by source
ValueAt names a value by its data's source and a part of it by the part's offset in the value, as bind_tracked! names
a field of a Tracked, so a story that keeps a value in a local binds it as StoryData::bind does.
2026-11-20 09:46:26 +00:00
aiongg 5ac0410a58 craft-ui: the replay audit compares geometry within 1/256 pt
A record moved by a whole pixel from positions off the float grid differs from a run at the new place by rounding
only. Shift::snapped takes a value's coordinates and floats from the run's where they lie within the tolerance, so the
journal, the rect and the output compare with == after it; egui's PassRecords::first_difference takes the same
tolerance (aiongg/egui b65cbd8d9, pinned here). Ids, counts, colours and text stay exact.
2026-11-20 09:46:25 +00:00
aiongg bc0da2bbf6 tests: memo audit trials for a card holding a scrolling body
A card with its own scrolling body replays moved with its rows' places from their own view, and cut by the view
above with its scroll region's view cut too; the nested trial's card keeps a fixed room.
2026-11-20 08:53:32 +00:00
aiongg e1fbd5b1b9 craft-ui: a scroll region's noted view is a clip
The view of a scroll region cuts what lies outside it: a replay cut by the clip around it cuts the view as a run
there does.
2026-11-20 08:48:12 +00:00
aiongg 3a644d6ff5 craft-ui: a scroll area places a child's rect from the view it shows
A child's place was noted relative to its area's view when it ran and moved by the record's shift on replay, which
is right only for an area outside the replayed run: an area inside it moved with the run, so its children kept their
place. The note holds the child's rect, which moves with the record, and the area takes the place from the view it
lays out for (Placed holds it from begin).
2026-11-20 08:48:12 +00:00
aiongg 2e8d7a21bf stories: bind mixed story values through StoryData::bind_mixed
Scripted: Bind::bound_mixed(data.value(..)) becomes data.bind_mixed(..) at 35 sites, and an import of Bind that
nothing else uses goes.
2026-11-20 08:28:54 +00:00
aiongg d08973e932 craft-ui: StoryData::bind_mixed binds a story value that may be mixed by its source
A mixed story value bound by address names it in its pass only. bind_mixed binds it as bind does (the data's
source, the value's name), through a Tracked source that holds a Mixed value.
2026-11-20 08:28:54 +00:00
aiongg b9c91aa76f craft-ui: a moved replay places content and registrations where a run there would
Three causes of replays that differ from a run at the new place:
- the clip a member joins its arena through, and the clip of its over parts, are clips (shift::Clip): a replay cut by
  the view takes the view's clip, as a run there does;
- a view that replays moved inside a run is kept in that run's journal at its new place;
- a scrolling body moves its content by whole physical pixels on steps of egui's UI rounding, and a kept run moves
  only by such a step (lazy::keeps_placement): paint snaps to the pixel grid, so a record moved by a fraction of a
  pixel would not be where a run puts it.
Trials (audit on): a fractional wheel step, a card scrolled partly out of view, a view replayed moved inside a run.
2026-11-20 08:28:54 +00:00
aiongg 018c7ee94c tests: a hidden page is measured once in each pass
Pages measures each hidden page once per pass (the page closure reads data the framework does not track), so a
settled frame measures it again and an edit read earlier in the pass measures it in both passes. The trials assert
that rule and that the pages take the new size in the frame of the edit.
2026-11-20 08:28:54 +00:00
aiongg e69f80e8a3 gallery tests: a story value edit runs its card in the frame of the edit 2026-11-20 08:04:20 +00:00
aiongg 0033d0c7b3 craft-ui: a kept run replays only on the font atlas it ran on
egui clears the font atlas when it fills up and rebuilds it for new text options; a kept galley's glyphs then name
other glyphs. lazy::Place holds the atlas generation (egui Fonts::atlas_generation, aiongg/egui memo-atlas-generation
dd086c7f29), so the one rule for kept paint covers it. Trial: a settled view runs after the atlas is rebuilt.
2026-11-20 08:04:19 +00:00
aiongg 417460a887 tracked: two Tracked values are equal when what they hold is
The mock's document holds a Tracked view and stays a story value, which compares by value.
2026-11-20 08:04:19 +00:00
aiongg 22835c7cf2 stories: format the scripted binds 2026-11-20 08:04:18 +00:00