Commit Graph
5944 Commits
Author SHA1 Message Date
haranishi dfbaf6a18d Adjust spacing on the desktop Home screen 2026-11-20 11:32:24 +09:00
haranishi d136d34300 Restore the Home screen rail and empty card 2026-11-20 04:17:59 +09:00
aiongg d65336a801 Merge pull request #2344 from aiongg/memo-records
Comparable replay records: journal entries, focus transcripts, egui pass records (#2336)
2026-11-19 13:50:43 -05:00
David Mann bafb452289 Merge pull request #2391 from davidmann4/agents-reexport-next
craft-automation: re-export the agents code from craft-control (#2390)
2026-11-19 19:09:21 +01:00
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
David Mann 2338618ac0 Merge remote-tracking branch 'origin/next' into agents-reexport-next 2026-11-19 17:40:37 +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
David MannandClaude Opus 5.5 6195b126d2 craft-automation: re-export the agents code from craft-control (#2390)
craft_automation::agents kept its own copy of the agent settings, the
launcher's switch and the connection file beside craft_control::agents.
It now re-exports craft-control's (and with it the CLI's live client)
and keeps only the egui link host. The Agents page is unchanged.

Callers see two API changes: AgentSwitch::watch takes a closure
instead of craft_host::Wake, and the connection functions return
std::io::Error. AgentSettings is #[non_exhaustive] in another crate
now, so the trials set fields on a default instead of using struct
update syntax.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 15:14:26 +01:00
David Mann 86e16f7e3b WIP: craft-automation re-exports the agents code from craft-control (#2390) 2026-11-19 15:05:48 +01: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