Commit Graph
9978 Commits
Author SHA1 Message Date
aiongg 0ff22c9503 A replay compares what pointer sensing gives the view's own components (FW-365 integration item 2)
Facts.roots held arena roots, so every view of an arena saw the pointer
over any member of it and ran. A run now notes the owners of the shapes
it registers (Facts.sensors); Under lists every owner under the point,
and Sensed keeps the hover winners, owners and root parts of the view's
own components. Egui widgets stay in Record.widgets.
2026-11-27 04:25:49 +00:00
aiongg 6e13c41e8c The app's windows are the ones the framework showed this frame (FW-365 integration item 1)
follow_activity took the app's windows from the root input, which lists a
child window only from its next pass, so a palette opened this frame was
missing and the app counted as away for one frame: a popup the palette
opened then closed as app-away once F4fix made its first pass real.
show_viewport records each window it shows in the root frame; the app is
away only when the root and every shown window reported no focus, and a
window with no facts yet is unknown. The palette levels follow the same
state.
2026-11-27 04:25:49 +00:00
aiongg dc82c38b97 Merge remote-tracking branch 'upstream/main' into fw365-int 2026-11-27 03:40:00 +00:00
aiongg 9524262a81 Merge pull request #3645 from aiongg/retire-next-ci
CI: retire next
2026-11-26 22:39:31 -05:00
aiongg 385578b17b Merge pull request #3644 from aiongg/next-into-main-2
Merge next into main (second round)
2026-11-26 22:38:32 -05:00
aiongg e5405886aa Merge fw365-f4-cl: TitleSlot (AccessKit state in the replay place) 2026-11-27 03:17:37 +00:00
aiongg cc9612fa22 fix(ui-contract): a memoized view kept with AccessKit off runs once AccessKit is on
Whether the pass builds AccessKit nodes is part of a run's place: a run kept
while AccessKit was off holds no nodes, and replaying it after AccessKit turns
on (a screen reader starts, automation reads the tree) left the view out of the
access tree.
2026-11-27 03:12:40 +00:00
aiongg fb1285dbf9 Merge fw365-f5b-rows (c07dc92f2c) into fw365-int 2026-11-27 03:10:28 +00:00
aiongg 95766c0a81 Merge fw365-f6-int (b402ab7455) into fw365-int 2026-11-27 03:10:28 +00:00
aiongg 3ae00251dc Merge fw365-f4-cl (14317bbe78) into fw365-int 2026-11-27 03:10:28 +00:00
aiongg 442fda53f4 Merge fw365-f9-shown (8401672c4c) into fw365-int 2026-11-27 03:10:28 +00:00
aiongg e36d212acb Merge fw365-f7b-env (8f65586076) into fw365-int 2026-11-27 03:10:28 +00:00
aiongg b402ab7455 The tool options' types are PlainData (FW-365 F6b) 2026-11-27 03:10:21 +00:00
aiongg 1917004131 Merge remote-tracking branch 'upstream/main' into next-into-main-2 2026-11-27 03:05:15 +00:00
aiongg 2943dbfd91 Merge remote-tracking branch 'upstream/next' into next-into-main-2 2026-11-27 03:05:13 +00:00
aiongg 14317bbe78 fix(ui-panels, ui-patterns): a split area's body lays out at the frames of its own run
In a new room the docks' split area measures its body before showing it. The body read its frames from the shown
slots `update` writes, which a measuring run never reaches, so the measuring run laid the docked tree out at the
previous pass's frames. The dock gathered the tree's leaves across both runs and registered its edge drop bands from
their union: the bands kept the old room's width, and the docked tree's kept record replayed them (the replay audit
found it on the Top band).

`SplitArea` gives its body the frames through `content_env`, which runs in a measuring run at its rect and in the real
run after the dividers' edits, as the canvas split gives its panes. The body reads them as `SplitGroups` and
`SplitDocks` app values. The dock gathers the leaves and registers the bands inside each run of the body; a measuring
run registers nothing. The dock trial keeps the replay audit on through room changes.
2026-11-27 02:49:23 +00:00
aiongg 7b1b636644 feat(ui-contract): pointer::press_state, a press-state read that a pointer move leaves alone
Code that needs only the buttons held, the pass's press or its release read `pointer::frame`, which notes
`Input::Pointer`, so every pointer move anywhere ran the memoized view around it (PhotoCraft's canvas, FW-365 F4).
`press_state` notes `Input::Press`, which the begin hook moves on every press and release and now also when the
buttons held change. The trial checks that a reader replays on a move, with a button held or not, and runs on a press
and a release.
2026-11-27 02:07:18 +00:00
aiongg eda8a40734 fix(ui-patterns): the dock reports what it drew from the real run only
F1 memoizes the docked tree and its columns, and their views return what they drew. Measuring runs added to the
area's report as well: `Pass::dock` pushed each placed column, `shown_column` and `tree` added a view's returned
report, and an unmemoized column pushed its dividers. When the docks' split area measured them before showing them
(a new room or zoom), or the replay audit ran the tree, the report listed columns and sources twice, and the tree's
output differed from its replay (PhotoCraft tabs_tests under the audit, FW-365 F4).

Each of these is now an effect of the real run (`measure::effect`), as the group's own report already was. The trial
checks the counts the dock reports through room changes and under the audit.
2026-11-27 02:07:18 +00:00
aiongg 1cf70ccfae fix(ui-contract): a layer of known size starts its Area at that size
egui's `Area` registers its background widget at the start of a pass at the size it kept from the last pass. The
overlay host knows a container layer's size for this pass before the layer shows (`Layer::size`), but never handed it
to the `Area`, so the run that grew a layer sensed its background at the old size. Inside a memoized view that run's
record kept the stale hit area (a canvas task bar showing new members, FW-365 F4).

`LayerSpec::size` carries the measured size from both host paths; `show_layer` writes it into the `AreaState` before
the `Area` shows, and `content_rect` reports it. The first-show seed stays for toasts and tooltips only, which have no
measured size.
2026-11-27 01:42:39 +00:00
aiongg 432c218890 fix(ui-contract): a memoized view in a row sits on the line from its first pass
`on_row_line` places a memoized view on the row's line by `lazy::last_extent`, which read only the last real run's
extent although its doc names this pass's measuring run first. In the first pass that shows the view there is no real
run yet, so the view sat at the row's top while the row had measured it a moment before. A memoized view around the
row kept that run and replayed it: PhotoCraft's menu titles sat 4 pt high in the title bar after startup, until
something ran the title bar, and the replay audit failed every whole-app trial on the title slot (upstream bug, on
craft-libs next e4f1e5a00e with PhotoCraft main 702da02787).

`last_extent` takes this pass's measuring-run extent once the view was measured in this pass, else the last real
run's. The trial checks the first pass too, and a view holding the row passes the replay audit.
2026-11-27 01:42:39 +00:00
aiongg c07dc92f2c ui-contract: collection rows name the row under the pointer through hover-only parts
Each built item row of a collection declares a hover-only part over its rect,
above the collection's background and below its other parts and the row's own
shapes. Sensing reports every root's own parts under the pointer, on top or
not (pointer::Under::parts, read with pointer::parts_under), and a memoized
view's Sensed includes those of its roots. The collection takes a row's
hovered and pointer-over state, the hover lead and the rest wait from the row
part under the pointer instead of reading the hover position, so a move within
one row replays a view around the list and a move onto another row runs it.
The edge band still reads the hover position: it is drawn at the line nearest
the pointer.

Trials: a list of 10 and of 40 rows in a memoized view replays on moves within
a row, runs once on a move to another row, and the hover fill follows; a press
and its release, a wheel over a list, and a modifier change under the pointer
run the view; a replayed hovered view keeps its cursor; a tooltip runs its
view at the wake and when its layer first paints; Cx::hover_pos reads the
point over its part only and marks it as following the pointer for the
pointer-move gate.
2026-11-27 01:22:31 +00:00
aiongg 8f65586076 ui-contract: an unwrapped row reports its line in every alignment
A row that places its block at its end, centred or spread recorded its line but
reported it to no first-line target: it read the target from its block's Ui
after restoring that Ui's entry, which found none. It reports to its body's
target as a row placed from its start does, so it sits on an outer row's line
by its own line and a container takes it as its first line.
2026-11-27 01:09:30 +00:00
aiongg fdfcecf201 ui-contract: the open-record count is the thread's own
Records are open only around runs of a pass on the pass's own thread, so the
count that lets a registration skip the pass state is a thread-local. As a
process-wide atomic, a record open in another thread's pass made this thread
read its pass state (outside its component tree, an unbound read), which made
the settled-pass service-lookup trial flaky under parallel test threads. A
close with no open record no longer wraps the count.
2026-11-27 01:09:30 +00:00
FredApps 110d4a794a Merge pull request #2509 from kiwi5boy/ppt95-media
craft-ppt-binary: read PowerPoint 95 pictures and notes (#2317, step 4)
2026-11-27 02:03:43 +01:00
aiongg 4fe31f5dc3 ui-contract: a settled view under the pointer replays while what sensing gives it is unchanged
A memoized view replays with the pointer over it unless its pointer facts
changed: the hover, parts and pointer-over of its roots and egui widgets at the
hover point (pointer::Sensed), the modifiers while it is under the pointer, a
move in a rect it follows, a wheel share or owed ease for a taker it registered,
a tap in it, or, while a drag session runs, the pointer over it. A press held
that started in it still runs it. A move within one part replays the view; a
move onto another part runs it.
2026-11-27 01:02:01 +00:00
aiongg 27e8a77145 ui-contract: one tracked hover-position read; cursor requests and pointer facts journaled
Reading where the pointer hovers marks what reads it as following the pointer:
Cx::hover_pos marks the part's hit area, and pointer::hover_point_in marks the
rect it reads in. PartResult::hover_pos is crate-private, member responses carry
the pointer only for a press, and the collections' row hover, edge band, the
menus, canvas, colour, timeline and font readers go through the accessors.
design-lint's contract/pointer rule bans egui's hover-position reads.

Cursor requests are journaled, so a replay requests its cursor again. A record
notes the arena roots, follows rects and wheel takers its run registered.
2026-11-27 01:01:58 +00:00
aiongg 84be0cbf2f perf(ui-patterns): a settled dock replays its columns and its docked tree
Each dock column (docked, collapsed to icons or in a floating window) shows
as a memoized view keyed by the pruned layout, its place, the area's
requests and the versions of the panels it shows (DockPanels::content).
The docked tree is one view keyed the same way over every panel it shows,
so an idle dock whose panels all have versions replays as one record; a
column or tree with an unversioned panel runs as before. What a replay must
still report (gesture sources, shown groups, placed columns) comes back as
the view's value, and the focused group is read from the shown groups' ids
after the views.

The docks' natural widths and card places are derived per layout, sizes and
config, and SplitArea derives its frames, handles and their ranges from the
caller's revision of its layout and rules (a required argument) instead of
walking the tree five times per run. Spec lookups in the area return
references.

Two fixes the replay audit found: DockGroup's header drained its command
states in a measuring run, so the real run after it published none; and a
group reported its rect and sources from measuring runs as well, doubling
them in the first pass.
2026-11-27 00:57:51 +00:00
aiongg a9adb36c6a ui-contract: a run reads its place from the env its parent installed
A run takes the env its parent installed for its Ui from its caller (or one
Env::of where app code shows it) and keeps it as its place env: Begun, Pass and
Measuring carry it, the shape hooks' sized and extent take it, and every
layout/body.rs helper takes the env its Ui's children are placed under instead
of walking the Ui stack again. MeasureCx keeps the env it views for
column_room. Lazy and memoized views, the label step, collections and bodies
pass the env they hold. A testing counter (env_walks) pins at most one walk per
run.
2026-11-27 00:48:00 +00:00
aiongg c73a94fa20 StatusReadout binds the zoom (f64) and reports zoom edits; the view stays the host's (FW-365 F6) 2026-11-27 00:32:57 +00:00
aiongg 8401672c4c perf(ui-contract): menu titles share their held commands, and facts are read in place
A menu title kept its held commands in a Vec, and commands::holds copied every command into a new Arc on
each run of the title. MenuTitle keeps an Arc<[CommandRef]> and holds() shares it. Facts::of_last_pass
cloned last pass's facts for every read; Facts::with_last_pass lends them to the reader instead, so the
menu bar's is_open and is_focused answer without a copy.
2026-11-27 00:28:34 +00:00
aiongg 090a789c3b perf(ui-contract): shown facts share their command, and facts keep their buffers across passes
A bound component's shown fact held its command by value, so every settled pass copied each command's id
into a new fact when the replay registered it again, and the next pass freed them all. The fact now shares
the kept resolution's Arc<CommandRef>, and a fact record swaps its two buffers instead of dropping last
pass's, so a settled pass copies no command and grows no fact vector.
2026-11-27 00:25:26 +00:00
aiongg 66391f53ed ui-contract: a run reaches its pass state and its pass facts through one binding
The running pass's facts live on the thread's entry for its context, beside the
pass state, so frame::running, current_viewport, pass_nr and frame_nr read the
component tree's binding instead of a second thread-local searched by context.
Inside the tree, pass_state::with runs on the bound state directly; the visit
through a dyn callback serves only reads outside it.

Per-viewport records of types the pass state names no field for (Facts, dock
targets, toasts and the other Stored types) live in the pass state by type,
not in egui context data behind its data lock and a service mutex.

The memory eviction sweep reads the running pass once, not once per owner.

Trial: a settled pass of forty command-bound leaves makes as many context-data
lookups and unbound pass-state reads as one of ten.
2026-11-27 00:24:59 +00:00
David Mann e4f1e5a00e Merge pull request #3800 from davidmann4/perf/cheap-replays
perf(ui-contract): a container's commands share one shown fact (photocraft#15493)
2026-11-27 00:58:35 +01:00
David MannandClaude Opus 5.5 de45e61fad craft: egui_fork::REV at the pinned egui (storytold/egui#65's head)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 00:41:17 +01:00
David MannandClaude Opus 5.5 cbcc2ffbdb ui-contract: a repaint request's cause names its caller
repaint::request and request_of are #[track_caller], so egui's repaint causes
name the component that asked, not the wrapper: how the hover fades that
keep frames running were found (photocraft#17148).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-27 00:09:55 +01:00
David MannandClaude Opus 5.5 bd2e084232 build: egui at storytold/egui#65's head (move-only passes ask the gate)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:51:51 +01:00
David MannandClaude Opus 5.5 b093185a33 perf(ui-contract): a pointer move that changes nothing under the pointer runs no pass (photocraft#17148)
pointer::gate_pointer_moves sets egui's pointer-move gate (storytold/egui#65):
a move with no button held needs a pass only when the pointer comes in, a
drag runs, either point lies in a rect that follows the pointer
(pointer::follows_pointer, journaled so replays keep it), or the layer, egui's
widgets (Context::widgets_at) or the component shapes under the two points
differ in the last finished pass. Opt-in per app. egui moves to the PR's head.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:34:01 +01:00
David MannandClaude Opus 5.5 e7f4e17fa7 WIP: perf(ui-contract): a pointer move that changes nothing runs no frame (photocraft#17148)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:22:26 +01:00
David MannandClaude Opus 5.5 ba79d1ef36 perf(ui-contract): a container's commands share one shown fact (photocraft#15493)
commands::holds registered one fact per command, each with its own label, so
the menu bar's titles made about 1,400 registrations per pass and every
replay of the bar made them again: the largest group of replayed journal
entries in PhotoCraft. A container now registers one fact holding its
commands; commands::shown finds a command in it in the same order.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 23:05:15 +01:00
David MannandClaude Opus 5.5 71361032e2 WIP: perf(ui-contract): cheaper replays of memoized views (photocraft#15493)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 22:38:50 +01:00
David Mann a46af76c7c Merge pull request #3788 from davidmann4/perf/photocraft-frame-cost
perf(layers): the panel's blend rows replay while the active layer's properties hold (photocraft#17131)
2026-11-26 22:08:55 +01:00
David MannandClaude Opus 5.5 2ab084fcca test(layers): no clone of a Copy selection in the blend rows trial
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 21:29:17 +01:00
David Mann cc8ee323cc Merge commit '5d2c8bdcf48efc94ba0d07bc684ac13f4fcc9e5a' into perf/photocraft-frame-cost-ff 2026-11-26 20:59:28 +01:00
David MannandClaude Opus 5.5 7f047ca901 perf(layers): the panel's blend rows replay while the active layer's properties hold (photocraft#17131)
The blend, Opacity, Fill and lock rows ran in every pass of the Layers panel,
also while the pointer only moved over its rows: about half of the panel's
time in such a frame. They are a memoized view keyed by the active layer's
properties and the modes it offers; their edits leave through an outbox.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 20:55:30 +01:00
David Mann 8cb94baa2b Merge pull request #3773 from davidmann4/fix/readout-flicker-between-moves
Tool host: a gesture's readout stands between its moves (photocraft#17121)
2026-11-26 20:35:54 +01:00
0ebc5915b0 fcproj-format: split and reassemble project bins and items (#3517)
Co-authored-by: whatever-industries <77seventy77@users.noreply.github.com>
Co-authored-by: FredApps <153173854+FredApps@users.noreply.github.com>
2026-11-26 20:14:49 +01:00
aiongg 3a426d51d8 ui-panels: the dialog top-strip trial asserts the title sits below the frame's top, not a literal gap 2026-11-26 18:36:08 +00:00
aiongg 4ffcb06a21 Merge remote-tracking branch 'upstream/next' into next-into-main-2 2026-11-26 18:35:19 +00:00
David MannandClaude Opus 5.5 554f7877e0 Tool host: a gesture's readout stands between its moves (photocraft#17121)
The host painted a tool's readout or hud only in a pass where the tool
asked for it, and a tool asks from press or drag, which run only in a
pass with a pointer move. Every other pass of the drag (the ants and the
live outline repaint all the time) painted no box, so the marquee's W/H
box blinked. The host now keeps the box the gesture's last press or drag
asked for and shows it again in passes with neither; a drag that asks
for nothing drops it, and it ends with the gesture.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 18:49:22 +01:00
David MannandClaude Opus 5.5 34b197b52a WIP: the gesture readout stands between moves (photocraft#17121)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-26 18:37:23 +01:00