Commit Graph
5937 Commits
Author SHA1 Message Date
aiongg 4f697dbc70 Merge remote-tracking branch 'upstream/next' into memo-records
# Conflicts:
#	crates/ui-contract/src/runtime/commands/mod.rs
2026-11-19 17:43:02 +00:00
aiongg ed52c7b8ef Merge pull request #2343 from aiongg/memo-board
Command board maps, report-step order, chord texts (#2336)
2026-11-19 12:42:13 -05:00
David Mann cce3836b0e Merge pull request #2282 from davidmann4/anchor/12732-segment-reach
Add Anchor: reach a segment within 5 points (photocraft#12732)
2026-11-19 18:24:21 +01:00
aiongg abd5c64765 Merge remote-tracking branch 'upstream/next' into memo-board 2026-11-19 16:25:01 +00:00
aiongg 47d0e04478 Merge pull request #2398 from aiongg/lint-bind-tracked-def
design-lint: skip bind_tracked!'s own definition in no-global-state
2026-11-19 11:24:40 -05:00
aiongg eac80b4404 Merge pull request #2360 from storytold/perf/2334-ui-inspection
Record UI inspection data on demand
2026-11-19 11:04:52 -05:00
aiongg 2287e9f3d1 design-lint: bind_tracked!'s own definition is not a call of __split_for_bind 2026-11-19 14:59:11 +00:00
aiongg b3b2f4ed6f Merge storytold next into memo-board 2026-11-19 13:55:44 +00:00
aiongg 4bd0107b92 Merge pull request #2339 from aiongg/memo-counters
Count-trial counters (#2336)
2026-11-19 08:54:49 -05:00
aiongg 2fb86ac2b0 Merge pull request #2342 from aiongg/memo-props
MemoProps, MemoKey, derive, Stateless<F> (#2336)
2026-11-19 08:54:35 -05:00
aiongg 62fd9223a8 Merge pull request #2340 from aiongg/memo-tracked
craft-tracked: Tracked<T>, PlainData and bind_tracked! (#2336)
2026-11-19 08:54:22 -05:00
aiongg 0e93f7f97c Merge pull request #2341 from aiongg/lint-no-global-state
design-lint rule no-global-state (#2336)
2026-11-19 08:54:08 -05:00
FredApps 448e8d4bfc Test parts declaration guard and inspector focus order 2026-11-19 14:44:36 +01:00
David MannandClaude Opus 5.5 2c488615e1 Merge origin/next into anchor/12732-segment-reach
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 13:16:44 +01:00
aiongg 83291b17c8 ui-contract: replay trials allow expect, as test code 2026-11-19 09:05:25 +00:00
FredApps 50812ec37c Use the declarations slice for the suite assertion 2026-11-19 09:58:09 +01:00
aiongg b2456f91c6 Merge pull request #2328 from aiongg/space-and-uia-fixes
access: no dangling AccessKit controls id (Windows menu crash, from #2239)
2026-11-19 03:55:22 -05:00
FredApps 0c076f890b ui-contract: record steps only inside an inspected region 2026-11-19 09:19:37 +01:00
aiongg fc8f48ff96 Command board: maps for instances, modal roots and shown readers; node facts after the node check; chord texts from the keymap build 2026-11-19 08:05:00 +00:00
aiongg 972a86af65 Keep the counters in pass-local state; mark Settle non_exhaustive 2026-11-19 08:05:00 +00:00
aiongg ce3513f84a Gate the counters on the testing feature 2026-11-19 08:05:00 +00:00
aiongg d06fd33dfb Add count-trial counters for settling, text layout and measure asks, and an idle-frame trial 2026-11-19 08:05:00 +00:00
aiongg 3a815c9657 ui-contract: MemoProps, MemoKey, Stateless and the MemoProps derive
MemoProps keys every input of a memoized view. The derive builds on the
plain-data field check, with #[memo_props(hash = "reason")] for foreign
plain types and #[memo_props(stateless)] for the type parameter of a
Stateless callback, which no fn item implements MemoProps for: the shared
check takes an optional per-parameter escape beside the field escape, and
PlainData passes none. FitKeep derives Hash.
2026-11-19 08:04:49 +00:00
aiongg ee0798cda0 craft: facade features table from the member manifests; PlainData derive reaches craft-tracked through contract 2026-11-19 08:04:36 +00:00
aiongg 0da30afdcc egui: repin to storytold/egui#52 head 7e1c30d14 (stable layer order, callbacks not compared) 2026-11-19 07:58:25 +00:00
aiongg 17adf30a85 craft-ui: replay records compare as replayed; replayed members take their stack positions from the arena
`Transcript` equality compares the form a replay registers (`Transcript::placed`, which `focus::replay` uses): a
record under the scope open around the run goes under the open scope, and a replayed scope is no new scope.

A replayed member join and `over` placement take their stack positions from the arena they join in the replaying
pass, as a real run does: the journal notes the members as declared with the layer and clip, and the join and the
`over` placement record their shapes themselves. The `journal` doc says the capture assert fires in a build, not in
`cargo check`.
2026-11-19 07:58:25 +00:00
aiongg 2f8832b099 craft-ui: trials of journal entry and focus transcript equality 2026-11-19 07:43:39 +00:00
aiongg d7804c73c2 access: the controls step reaches the tests through runtime::egui 2026-11-19 07:41:02 +00:00
aiongg 5b9eb4cf53 egui: repin to storytold/egui#52 head 96ccc118b (PassRecords::first_difference) 2026-11-19 07:39:17 +00:00
aiongg 08a442aeaf craft-ui: journal entries are data, comparable by call and arguments
`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.
2026-11-19 07:37:16 +00:00
aiongg 0489ea03bf Keep the counters in pass-local state; mark Settle non_exhaustive 2026-11-19 07:25:25 +00:00
FredApps 5b12fdd273 Skip undeclared parts outside declaration trials 2026-11-19 08:18:03 +01:00
FredApps 20287bf3fa Index inspected elements for focus and labels 2026-11-19 08:15:23 +01:00
aiongg 94c912daa9 design-lint: allow ui-contract's own MemoProps impls (#2336) 2026-11-19 07:08:11 +00:00
aiongg a5a337466c design-lint: no-global-state rejects __split_for_bind instead of __from_field_path (#2336) 2026-11-19 07:02:51 +00:00
aiongg 02b3ea4a34 craft-ui: bind_tracked! binds several fields of one Tracked at once
bind_tracked!(doc => title, style.size) splits the Tracked into its value and
its write count (a Cell over the count) and gives each field path its own
write-through binding, so the borrow checker rejects overlapping paths. A
binding moves the count at each write that changes its field; making and
reading bindings every pass leaves the revision. Bind::tracked, Field, Place,
Projection and field! are gone: this is the one way to bind a tracked field.
2026-11-19 07:00:52 +00:00
aiongg c0df034524 ui-macros: plain-data check bounds type parameters and checks every field
The impl bounds each type parameter by the derive's trait, and every field is
checked under those bounds, so a generic recursive type derives without
overflowing and a Cell<T> field fails at the derive, naming the field. A field
type written with Self is checked as the type itself. The escape is an Escape
{ attr, keyword } parsed by escaped(), and the check item is a separate output a
derive may leave out. A direct craft-tracked dependency is preferred over the
facade when finding the crate path.
2026-11-19 06:57:03 +00:00
aiongg 6d1d6bb6d1 design-lint: per-item no-global-state allowlist; motion:clock flags clock fn values (#2336) 2026-11-19 06:53:55 +00:00
aiongg 7199467079 design-lint: no-global-state rejects PlainData impls and __from_field_path (#2336) 2026-11-19 06:51:05 +00:00
aiongg b083a40316 craft-tracked: Tracked<T>, PlainData and its derive, field! and Bind::tracked
Tracked<T> owns its value, a process-unique source id and a write count. Deref
reads; DerefMut, edit and a Field's writes move the count, and a clone is a new
source. T must be PlainData, a marker with no implementation for interior
mutability, raw pointers, dyn objects or closures, so no write can bypass the
count. #[derive(PlainData)] in ui-macros checks every field through a field-check
helper the plain-data derives share; #[plain_data(assume = "reason")] skips one
field of a foreign plain type.

field!(a.b) builds a read and a write projection from a field path only.
Bind::tracked(&mut t, field!(a.b)) reads through the read projection and moves
the revision only when an edit changes the field.
2026-11-19 06:47:09 +00:00
aiongg fc4fce56a0 design-lint: contract/no-global-state (#2336) 2026-11-19 06:43:32 +00:00
aiongg 21b790af4a Gate the counters on the testing feature 2026-11-19 06:41:32 +00:00
aiongg fc8d1205ab Use const for immutable UI tables (#2336) 2026-11-19 06:40:20 +00:00
aiongg 8a7e1e6bea Add count-trial counters for settling, text layout and measure asks, and an idle-frame trial 2026-11-19 06:39:51 +00:00
aiongg 4ec453ed5a access: the controls tests live in the integration binary 2026-11-19 06:38:55 +00:00
aiongg c6537b6d07 access: rustfmt 2026-11-19 04:09:37 +00:00
ussoewwin 326438a6f9 access: a popup's node this update does not carry leaves no dangling controls
accesskit_consumer's Node::controls() unwraps every id in the relation, so an update whose
controls names a node it does not carry aborts the app once the host's UIA adapter applies it.
In PhotoCraft on Windows, clicking Image, Edit or Layer in the menu bar did exactly that
(photocraft#15597), and on one machine Filter too — an ordering difference per menu.

emit.rs adds every open popup's id, and a menu reports its popup open on a frame where the
popup's own node is not emitted. The runtime plugin now prunes the finished update in
output_hook, keeping a controls id only when the same update carries its node. Other relations
are untouched: they are built from nodes the pass wrote.

The tests fail without the change: the relation keeps an id with no node.
2026-11-19 04:09:28 +00:00
aiongg 98b1810f8f Merge pull request #2320 from aiongg/stack-command-defs
ui-macros: CommandSet::defs builds each command in its own function
2026-11-18 22:41:15 -05:00
aiongg ee151c5758 Merge pull request #2319 from aiongg/docs-no-pr-cache
docs workflow: pull requests do not save a dependency cache
2026-11-18 22:41:03 -05:00
aiongg 9f234ae3ec Merge pull request #2299 from aiongg/next-sync-1118
Sync main into next (18 Nov)
2026-11-18 22:14:22 -05:00