craft-layers no longer marks its LabelColor fields: the type derives PlainData in craft-theme (a tier-0 crate, as craft-behavior
is), and the contract crate keys it as it keys the other theme types.
LayersPanel::new takes &Tracked<T: LayerTree>; LayerTree is plain data and its Id feeds memo keys. The display order,
its row keys and the filtered flag are one Derived value keyed by the tracked revision, the filter and the opens of a
reveal, so a pass that runs for another reason walks nothing. LayerTree::revision is removed; the list's order revision
follows the key. FakeLayers loses its revision field and call counters.
A replay asks for no derived value, so the memo rule dropped the values of a view that replayed for a few frames
and the view's next run built them again. The record notes the slots a run asked for, as it does for layout memory,
and a replay keeps them. last_frame_derived_builds counts the builds of every pass of a frame. IconId is plain data.
- A panel's grid is read only through DockSizes::stepped, in the dock's own sizes, so
DockGrid::rail is converted in one place; ToolRail counts its columns in its scope's
style (DockSizes::of_scope), and ToolRail::dock_grid is gone.
- A layout's window counter starts above every id it is built or loaded with; a dock
area raises a workspace an undo brings back above every id it has shown
(Workspace::raise_window_floor). A saved u64::MAX id loads without overflow.
- Floating::id and DockArea::new docs say how ids are given and why to keep one Arc.
Part of #2336.
- `Workspace` fields are private. `revision()` moves with every write (a clone is a
new source); `generation()` moves only on `replace` and ends drags as the old
revision did. A trial walks every `&mut self` method, read from the source.
- Panel specs and permissions leave `DockPanels` for `PanelSpecs`, a plain-data model
the host keeps in a `Tracked`. `DockArea` binds `Arc<Workspace>` and derives specs,
permissions and keys from the workspace revision, the specs revision and the lock:
an idle pass reads no spec, read-only docks included.
- `DockGrid::rail(cells)` is sized by the dock from its own tokens.
- Floating window ids come from a counter the layout owns; `replace` gives incoming
windows ids the replaced layout never gave out. The dock's global id counter and its
`no-global-state` allowlist entry are gone.
Part of #2336.
`runtime::derived::derived(ctx, id, &key, build)` (and `BodyCx::derived`) keeps one
value per id and value type. The key is `MemoProps`, so it holds only checked inputs.
A value no pass asks for is dropped by the memo rule for absent entries, which moves
into one helper both stores call. `testing::last_pass_derived_builds` counts builds.
Part of #2336.
next's submenu switch (62189858af) requests a plain repaint, and its trial counts a memoized view beside the bar,
which replays while sibling submenus switch, in place of a settling Lazy region.
Paint snaps to physical pixels and widget rects to the UI grid with f32::round, which takes a half step away from
zero: a coordinate on a half pixel moved by a whole pixel across zero snaps one pixel off the move (389.5 rounds to
390, -21.5 to -22). keeps_placement takes the moved area and needs it to keep its side of zero along each axis, so a
view moved across the window's edge runs. The gallery's glide to a selected card replayed a card one pixel off its
run under the audit.
A host runs a closed layer only while its open tween still shows it (motion::layer_fading). In the pass the exit
reaches its end the layer's container still runs, drives the tween to rest and paints nothing; a memoized view around
it kept that run as settled and replayed it, re-registering the layer's memory owner, while a real run of the next
pass skips the layer. layer_presence notes the pass unsettled when the exit ends there, so the next pass runs for real
and is the run kept. The menu bar's open-and-close trial runs under the audit.
next's egui pin (6525c87923, storytold/egui#53 on top of the branch's 1a44fd11cd) replaces the branch's; the lockfile
keeps the branch's typeid and craft-ui-contract dependencies. A replay keeps passing its shift: next's in-place
replay is the branch's RecordShift::none case.
next's WordCraft port and the framework work under it (243d68e12d) take the memoized-view APIs where they meet the
branch: story values bind through StoryData::bind, value_at and pair_at (next's copy-out stories included; one held
form story still binds a copy, as its held answer is a note beside the value); next's env values (GroupLevel,
ControlPlace, RibbonLook, ScreenModeSet), IconMark and PageBandRoom derive MemoProps, and the shell entry keys the page
band's room; request_own_repaint calls become request_repaint. The collection extent next reworked (motion-owned
style context, FillHeight, ideal width by item count) moves into items_extent. The header's hosted cells join the
parts' roving group from the pass's own membership (parts_group over Cx::join_roving), as the parts' stops do. A
content-sized shell slot measures its content with the app running in it every pass. The gallery card hands the
story's output from its view's real run (StoryRun).
The derive takes #[memo_props(every_pass = "why")] on a type (it keys in every pass and
feeds no field), #[memo_props(covered_by = "<field>", reason = "why")] on a field another
field of the same variant stands for (the named field must exist and feed the key) and
#[memo_props(address = "why")] on a &'static field. Group, menu level, timeline and canvas
contexts and GuideDrag key in every pass; CaptionIcons, Catalog and ModalRules name the
field that covers the rest (ModalRules' allowlist entry goes); CardStory keys its
registration by address. design-lint allows hand impls of framework keys in ui-contract
(values.rs, icon.rs, memo_view.rs beside memo.rs) and lists the gallery's &mut state views
and the two presets walks with their reasons. Doctests for each attribute.
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.
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.
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.
Conflicts resolved by keeping both sides. The start screen keeps next's
Greeting layout and its move of the recent body to recent_list.rs; the
desktop Home grid aspect and card padding now reach recent_body through a
desktop_home flag. The scroll bars keep both the document chrome (arrows,
corner) and next's drag tip.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
The tile's regular card padding is a #[prop] instead of a hand-written
setter. The desktop Home page's outer margins are larger than any spacing
token, so they keep their measured values behind a listed exception.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>