Commit Graph
6765 Commits
Author SHA1 Message Date
aiongg 73e5bc474e craft-menu: the bar's labels are one derived value keyed by the model revision, language and keymap 2026-11-20 18:17:12 +00:00
aiongg 49758ecee8 craft-menu: the menu model is plain data, from_items groups rows in one pass, tidy works in place 2026-11-20 18:16:52 +00:00
aiongg 47379d792c Chords, command refs and colours are plain data; the keymap generation is public 2026-11-20 18:16:52 +00:00
aiongg ef60cb99a5 craft-theme: LabelColor is plain data and memo props
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.
2026-11-20 18:16:52 +00:00
aiongg 866ddeaaf7 craft-layers: the Layers panel reads a Tracked tree and derives its display order
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.
2026-11-20 18:16:52 +00:00
aiongg b729d8b422 Derived: a replayed view keeps the values it derived
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.
2026-11-20 18:16:52 +00:00
aiongg d1386328c2 Dock on Derived: one rail-grid conversion, window ids never reused, docs
- 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.
2026-11-20 18:16:52 +00:00
aiongg 42739aaa2d Dock on Derived: tracked panel specs, workspace revisions, layout-owned window ids
- `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.
2026-11-20 18:16:52 +00:00
aiongg ea48749d34 Derived: a value kept per component id and rebuilt only when its key changes
`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.
2026-11-20 18:16:52 +00:00
aiongg e94e82dc8c Merge pull request #2533 from aiongg/memo-audit-fix
Memo audit: kept views match a fresh run (#2336)
2026-11-20 13:15:13 -05:00
aiongg 74fe9ef614 values doctest: drop the whole-value binding before reading the revision (Bind runs a destructor) 2026-11-20 16:45:21 +00:00
aiongg 339570da6f Merge storytold next into memo-audit-fix
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.
2026-11-20 15:33:50 +00:00
aiongg d0548c9c8a cargo fmt 2026-11-20 15:30:48 +00:00
aiongg 2e6dc72e71 contract-api: InstallSpec's clipboard field and setter in source order 2026-11-20 15:30:40 +00:00
David Mann 62189858af Merge pull request #2543 from davidmann4/haranishi-combined
Merge haranishi's 20 open UI fixes into next, with the fix-ups they need together
2026-11-20 16:28:27 +01:00
aiongg 9c03eb613c Memoized views: a move keeps placement only on one side of zero
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.
2026-11-20 15:20:43 +00:00
aiongg ae02996d83 Replay audit: the pass a closed layer's exit ends in is unsettled
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.
2026-11-20 15:09:54 +00:00
aiongg ec70bb0ff0 Merge storytold next into memo-audit-fix
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.
2026-11-20 15:01:43 +00:00
aiongg 39da1180ee Merge storytold next into memo-audit-fix
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).
2026-11-20 14:58:23 +00:00
FredApps 7afb9444d3 Merge pull request #2544 from storytold/deps/egui-font-cache-revision
Update egui for reusable font layouts
2026-11-20 21:46:26 +07:00
aiongg a214d2e8e5 MemoProps: every_pass, covered_by and address derive attributes; the framework's own keys stay hand-written in ui-contract
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.
2026-11-20 14:21:25 +00:00
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
David MannandClaude Opus 5.5 0599a8acbc Format the merged menu row test imports
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 14:56:37 +01:00
David MannandClaude Opus 5.5 16e2584365 Merge storytold next into haranishi-combined
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>
2026-11-20 14:55:23 +01: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
David MannandClaude Opus 5.5 6327670e92 Fix the two design-lint findings from the Home screen spacing
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>
2026-11-20 14:36:47 +01:00
Martin Ball 243d68e12d Merge pull request #2473 from storytold/port/wordcraft-ui
WordCraft UI port: framework changes
2026-11-20 13:31:28 +00:00
Martin BallandClaude Opus 5.5 c7d194eb66 ribbon face: stacked lines measure through MeasureCx::least, as next now does
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 13:27:09 +00:00
FredApps d4eb5c01a3 Keep the egui fork revision constant in sync 2026-11-20 14:22:27 +01:00
Martin BallandClaude Opus 5.5 5970a5a5e3 Merge storytold next (9ca7a5480) into the port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 13:21:54 +00:00
David Mann 9ca7a54803 Merge pull request #2520 from aiongg/select-measure-once
Measure a select's faces once and keep them out of the layout memory
2026-11-20 14:20:09 +01:00
FredApps 96e54fd6dd Keep recorded replay in place after egui update 2026-11-20 13:45:13 +01:00
FredApps 13fa150f7e Merge pull request #2365 from storytold/perf/2218-video
video: consolidate integration test binaries
2026-11-20 19:43:03 +07:00
aiongg be31589c88 craft-timeline: drop an unused import in the timecode tests 2026-11-20 12:37:47 +00:00
FredApps 5cbdea1d15 build: update egui for reusable font layouts 2026-11-20 13:36:36 +01: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
David Mann 98d0b8ce4b New Document: keep Orientation beside Height reachable
Orientation sat in a content-sized grid column that was measured empty,
so its segments were clipped to nothing and a click did not turn the
page. Height carried its own unit select as well, although one unit
serves both sides. Height now shows its number alone in the shared unit
and shares the row with Orientation in two equal columns, as Color Mode
and Depth do. The orientation test also checks that both glyphs paint
inside a visible clip, which would have caught this.
2026-11-20 13:18:00 +01:00
Martin BallandClaude Opus 5.5 27c1c0ebb1 Merge storytold next (d5b465e54) into the port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 12:17:11 +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
David Mann 9e2ad8542f New Document: import IconId for the orientation icons
#2427 removed the icon Save button and with it the IconId import; #2423
adds orientation icons that need it. Together the crate did not compile.
2026-11-20 12:55:58 +01:00
David Mann c1eccbc5f6 Merge #2440: Allow NumberField to set a separate scrub step 2026-11-20 12:51:49 +01:00
David Mann 77d35517dd Merge #2439: List Percent before Pixels in Image Size 2026-11-20 12:51:48 +01:00
David Mann 934edb1adf Merge #2432: Let hosts opt in to deleting an individual process channel 2026-11-20 12:51:48 +01:00
David Mann b97df74abb Merge #2427: Restore the New Document preset layout 2026-11-20 12:51:47 +01:00
David Mann 2ca8c47970 Merge #2424: Restore the Home screen rail and empty-state card 2026-11-20 12:51:46 +01:00
David Mann 7b1b840cba Merge #2423: Restore page orientation icons in New Document 2026-11-20 12:51:45 +01:00