Commit Graph
5926 Commits
Author SHA1 Message Date
FredApps cf66b3ab6c Register timeline property trials explicitly 2026-11-19 17:17:06 +01:00
FredApps c6fe3ac04b Detect suite registrations in macro invocations 2026-11-19 17:13:36 +01:00
FredApps 7e8b19c329 Reuse selected registry when building gallery catalog 2026-11-19 17:11:55 +01:00
FredApps 2e307a79bc Keep gallery registrations in owned catalogs 2026-11-19 17:02:11 +01:00
FredApps 6e36fda086 Generate the facade suite feature 2026-11-19 16:50:33 +01:00
FredApps 7a98690f4a Merge remote-tracking branch 'origin/next' into publish/registry-2332
# Conflicts:
#	crates/design-lint/src/contract/mod.rs
#	crates/ui-contract/tests/it/contract/mod.rs
2026-11-19 15:18:42 +01:00
FredApps d9a3c6d7ce Fix gallery registry test lint 2026-11-19 15:05:49 +01: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 6ac9069b9d Fix registry expansion lint warnings 2026-11-19 14:49:38 +01:00
FredApps 6aff4cb1dd Honor inner module conditions in registry discovery 2026-11-19 14:38:53 +01:00
FredApps 938d170b87 Keep library trials available without a UI suite and preserve the generator API 2026-11-19 14:11:23 +01:00
FredApps 41b2c32801 Restore generated imaging stories to registry 2026-11-19 14:02:06 +01:00
FredApps f8cf3d5e74 Scope story commands to each registry 2026-11-19 13:38:09 +01:00
FredApps baffd665e0 Simplify registry scanner path matching 2026-11-19 13:06:25 +01:00
FredApps c94daa5861 Include the new accessibility controls coverage in registry discovery 2026-11-19 12:58:52 +01:00
FredApps b04d18a735 Select UI suite items through explicit registries 2026-11-19 12:20:08 +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 f8dddb2a55 Split UI test kit from story suite 2026-11-19 09:25:07 +01: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 d7804c73c2 access: the controls step reaches the tests through runtime::egui 2026-11-19 07:41:02 +00:00
aiongg 0489ea03bf Keep the counters in pass-local state; mark Settle non_exhaustive 2026-11-19 07:25:25 +00: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
aiongg 16e50264ca ui-macros: CommandSet::defs builds each command in its own function
The derive pushed every variant's definition inline, so one frame held a CommandDef temporary per variant (175 KB for the largest set in PhotoCraft at opt-level 0). Each variant is now a non-capturing closure in a table of function pointers, and defs loops over the table.
2026-11-19 02:27:44 +00:00
aiongg 3b4f5079e4 docs workflow: pull requests do not save a dependency cache 2026-11-19 02:23:06 +00:00
David Mann 815e6a2389 Merge pull request #2283 from davidmann4/anchor/12708-edit-existing
Add Anchor: select and edit existing anchors and handles (photocraft#12708)
2026-11-19 03:22:06 +01:00
aiongg 147e122d8e Merge remote-tracking branch 'upstream/next' into next-sync-1118 2026-11-19 01:56:16 +00:00
aiongg 43bf8e87bc Revert "Lazy::show_or: the first child takes room only when it shows, so a dock group's extent is the same run or replayed"
This reverts commit 4f3b9e8594.
2026-11-19 01:56:16 +00:00
aiongg 4f3b9e8594 Lazy::show_or: the first child takes room only when it shows, so a dock group's extent is the same run or replayed
A host view that leaves its group to the dock left an empty scope in the
settling view's Ui, which moved the group below it. The view's extent then
differed between a run of the group and a replay of it, and the pointer over
one tab ran every group again.
2026-11-19 01:47:46 +00:00
aiongg b013967b02 Sync fixes: main's JXL capability test, settling layer through runtime::egui 2026-11-19 01:35:39 +00:00
David Mann 93e68f35a1 Merge remote-tracking branch 'origin/next' into anchor/12708-edit-existing
# Conflicts:
#	crates/draw/src/ui/pen/bezier/mod.rs
#	crates/draw/tests/it/bezier.rs
2026-11-19 02:31:29 +01:00