Each kept resolution holds the key of what it read: the state's revision,
the gate's key and answer, a shared generation (keymap and catalog, scope
parents, instances and their liveness, modal facts) and, when read, the
focus generation, the focused stop's edits and a layer's or menu's vantage.
A reader whose key holds gets the kept Arc<ResolvedCommand>; the wake at
the start of a pass walks only when an input moved. CommandGate is a fn
plus props, asked once per command per key. App-scope states come from a
held Tracked<CommandStates>. resolve and resolve_command return
Arc<ResolvedCommand>. Under testing, every 100th pass compares every kept
resolution with a full one; count_resolve counts new, repeated and checked
resolutions.
`runtime::journal(ctx, args, again)` notes a registration as its arguments and a capture-free `again` (a function or
a closure without captures; a capture fails to compile). Two entries are equal when they come from the same `again`
with equal arguments, and `Debug` names the call and its arguments, so a replay can be compared with a real run.
The focus `Transcript` and the records it holds (`StopRec`, `ScopeRec`, `RowGroups`, `Stop`, `Group`, `KeyUse`,
`KeyRole`) derive `PartialEq`. The journal's argument types gain `PartialEq` or `Debug` where they lacked them;
`UiTokens` compares by its content key. The docking generics that journal drop spots require `PartialEq + Debug` of
the panel type.
DockPanels::group_view ran in every pass, while the dock's own groups
settle their bodies under DockPanels::content. A host view now runs in a
settling Lazy under the shown panel's content version, the group's
panels and its shown tab, and repaints its last run while they hold.
Lazy::show_or carries the host's answer: the view runs first, and where
the host leaves the group to the dock, the dock's group shows in the
same child and that run is not kept, so the next pass asks the host
again. The run-count trial checks that a settled frame runs neither the
view nor the versioned body.
A focus scope shown for the first time moves focus to its initial stop
(a dialog's `Initial::FirstField`), but a plain text field then put the
caret after its text, as its codec asks for any focus gain, so typing
added to the value instead of replacing it (New Layer's name read
"Layer 17" after typing "7").
The initial focus now records its own origin, `FocusOrigin::Open`. A text
part that gains focus that way selects its whole text whatever its codec's
caret. Tab and clicks keep their caret rules, and `focus_arrived_by_key`
still counts the open as an arrival by key, as before.
photocraft#15540, part of storytold/photocraft#15476.
`(0..4).map(|_| frame()).next_back()` runs the frame once, not four times: a Map over a range steps from the back
without calling the closure for the other items. The trial runs three frames and checks the fourth.
The group's scope takes the parent's next id, as the group did before it settled, and its Lazy is keyed by that scope's unique id; a column bar's Lazy is keyed by its scope's id under the column. Both stay unique inside a scroll area. Trials: a tab moved to the front keeps the shown body's ids, and Close in a settled group's panel menu closes the panel.
A group's and a bar's run take no room in flow, so the settled run's rect is the group's or the band's: the pointer over it runs it again. A run record keeps each drop-spot registration, so the registering functions ask for Sync panel types; resolving keeps its bounds.
DockPanels::spec_version versions the panels' specs, permissions and group headers. With it, each group's header and tab strip settle as a Lazy keyed by the pass's chrome key (spec version, config, lock, Auto-Collapse and the arrangement's panels and states, sizes left out), the shown body's version and how the group shows; the column bars take the chrome key. The tab titles, panel menu rows and command states are built only when a group runs.
- FooterPlace::Body and FooterSlot: a container's footer drawn at the cell its body keeps; the footer step still
runs it, so roles, platform order, Enter, Escape and Alt-Reset stay the dialog's. Dialog::button_place(ButtonPlace
{ Foot, Side, Body }) replaces side_buttons(bool); every caller updated.
- Grid::fit(GridFit { Stack, Fixed }) and layout::empty_cell, with the grid_fixed story.
- ColorArea sizes by AreaShape { Plot, Square } from tokens, never from the room.
- CompareSwatch: one block, new over current, one edge, captions, warnings column from the block's top.
- ColorWarningChip arrangement enum (Stacked, Beside) replaces beside(bool); icon.sm chips.
- Full: area and strip over Only Web Colors and the screen-pick button; compare block and actions slot over two
field groups in grids that never stack; '#' in the radio column, hex field across the channel cells. No wrap, no
alpha row, no OKLCH column (OKLCH rows join group 2 with their radios); Only Web Colors always shown.
- Compact: width from the plot area and strip; hex row with the screen-pick button at its end.
- ColorPickerDialog puts its buttons in the picker's slot; color_picker_dialog story.
- Trials: Full arrangement across rooms, densities and themes; dialog proportions and button cell; compact width;
body-placed dialog buttons and their keys.
Where the app moves an OS window itself (a floating panel on Windows), each
pass placed the window from the pass's pointer event, relative to where the
window reports itself. The event can be an older sample than the window's
current place, since the window moves between passes, so the window landed
behind the pointer every pass and the release left it there: on Windows a
400 px drag moved a floating panel about 260 px, and at times only the
click distance.
Where the platform tells the system pointer, the move now places the
window from it (pointer - grab - inset), at the drag's start, on each pass
and once more at the release. Platforms without a system pointer keep the
event-based place. The new `windows::system_pointer` never falls back to
the drag's own noted pointer, which `desktop_pointer` does, so the move
cannot feed its own place back.
Part of storytold/photocraft#15478.
A container's ThemeScope applies at its own env (step 1), so its surface, header,
rules, scroll bars, pads and focus ring resolve in the scope as well as its
regions, body and the layers opened from it; collections honour it too. The
root token cache keeps every entry read in the current frame, drops the least
recently read beyond eight, and moves a value hit onto the caller's Arc so the
next frames hit by pointer. The drag preview paints in the env of the region
the drag started in, a drop mark in its target region's tokens, and canvas
readouts in the asking region's env.
Over a tab strip an edge, seam, column-edge or new-dock band takes the drop only
within DockSizes::strip_reach (the least hit size) of its drop line, as
production's STRIP_REACH rule did; the rest of the strip joins its group. A
strip on the layout's top edge takes tab joins again.