Commit Graph
51 Commits
Author SHA1 Message Date
FredApps b04d18a735 Select UI suite items through explicit registries 2026-11-19 12:20:08 +01:00
FredApps f8dddb2a55 Split UI test kit from story suite 2026-11-19 09:25:07 +01:00
David Mann 8197531378 Control channel: answer injected input with the pass that ran it, not one pass later (photocraft#15493)
An application polls ControlChannel::poll_input at the end of its UI, inside the pass that
ran the injected step. There the running pass number still equals the step's pass, so the
step counted as unrun and the reply waited for the next pass: one more frame per ui.move,
ui.click or ui.key round trip.

WindowHost::injected_idle_at_pass_end counts the running pass as run, except a pass egui
runs again (request_discard), whose rerun answers. poll_input uses it; injected_idle and
every caller between passes keep their meaning.
2026-11-18 00:01:07 +01:00
aiongg 2103be6de1 Fix clippy and rustdoc errors in automation, draw, imaging, svg, ui-patterns and ui-widgets 2026-11-16 15:40:46 +00:00
aiongg 63a4811416 cargo fmt 2026-11-16 14:34:57 +00:00
aiongg 8f1d4731d5 Props: vis option for setters; settings read follows open_with's folder and reports a damaged file; agent link rejects out-of-range ports 2026-11-16 14:10:46 +00:00
aiongg fbe5a16ffe design-lint: api/non-exhaustive: #[non_exhaustive] on public types and variants, constructors where other crates build them 2026-11-16 13:31:29 +00:00
aiongg 8d3d8a3658 merge-fwe: FW16 E6: AgentsPage reads the host through the env view 2026-11-16 12:53:07 +00:00
aiongg 6da0540fce merge-fwe: FW16 E5: a link's first sync with agents off reports no change 2026-11-16 12:49:15 +00:00
aiongg 42be2bc26c merge-fwe: FW16 E6: AgentsPage, the Agents page of Preferences over the agent settings in the draft (launcher switch line, link status, Control Port, folders through PathSetting, closed-app choice) 2026-11-16 12:47:42 +00:00
aiongg 6c8a1861bd merge-fwe: FW16 E5: AgentLink, the link host: start, move, stop and retry the agents' control server and publish its connection file 2026-11-16 12:40:26 +00:00
aiongg 463acfe5bd merge-fwe: FW16 E4: craft_automation::agents: agent settings, the launcher's switch (AgentSwitch) and the connection file 2026-11-16 12:38:25 +00:00
aiongg 77b98ad590 merge-fwe: FW16 E3: stoppable control server (listen, serve, Listening) replaces start 2026-11-16 12:36:06 +00:00
aiongg dffe1048ed merge-fwe: FW16 E2: challenge handshake (ServerHandshake) in craft-automation's control channel, one-frame auth kept 2026-11-16 12:35:15 +00:00
aiongg 4e69ea3f01 merge-fwa: FW1: actions library commands (Clear All, Reset, Replace) with one undo, PhotoCraft folder occurrences read into unique names 2026-11-16 12:31:25 +00:00
aiongg cc00dbd368 Clippy and test-target lints: redundant must_use, type aliases for complex types, boxed large variants, argument structs, struct-update initialisers, deprecated egui calls, unused imports and dead code; the swatch library's reorder test runs as a trial 2026-11-16 02:30:55 +00:00
aiongg 80e47af962 tfix3-f4: hit reach read, snap kinds, warp frame, fill expand/contract, finite pointer requests, pen host end, exact right-angle cap, empty tone channels 2026-11-15 16:58:16 +00:00
aiongg 2bc5fd1782 tfix-dialog: a held OK is a state the host reports (HeldOk), and confirm finishes an accepted one
StackDialog::held_state / DialogHost::held_state tell a filed OK (Waiting), an accepted one and a refused one
apart from a refused confirm. HostedParamDialog and HostedWorkspace answer confirm with the accepted held answer;
Export As and Save for Web confirm without a path ask for the save dialog as their buttons do. ui.dialog.confirm
does not report a filed held OK as a refusal.
2026-11-15 14:26:31 +00:00
aiongg 14d5ec609a cargo fmt 2026-11-15 10:23:21 +00:00
aiongg 80e4aa60d0 fwb1 review: file names keep their own names, only repeats are renamed 2026-11-15 10:01:34 +00:00
aiongg 68a389517a panels-w29: net change of 1 commits
- panels-w29: review fixes (review-1)
2026-11-15 09:18:08 +00:00
aiongg 280aa468e7 tools-w6: net change of 3 commits
- tools-w6: written by an agent
- tools-w6: review fixes (review-1)
- Integration: synthetic input trials keep canvas-widgets-w13's queued-pass trial beside tools-w6's
2026-11-15 04:46:08 +00:00
aiongg 51b41ec6df dialogs-w4: net change of 7 commits
- dialogs-w4: written by an agent
- dialogs-w4: finished by an agent
- dialogs-w4: drop the PLAN note on TextWords' export (combine)
- dialogs-w4: review fixes (review-1)
- dialogs-w4: the About tab strip takes its tabs' height in the stack header (dialogs run round)
- dialogs-w4: Integration: the dialog host ends the shown life of a dialog it removes (dialogs run round)
- dialogs-w4: ui.dialog.cancel on a prompt with Cancel answers that Cancel in the typed-dialogs trial, as dl.N2 rules (top run round)
2026-11-15 04:46:07 +00:00
aiongg c0023f9e92 canvas-widgets-w13: net change of 12 commits
- canvas-widgets-w13: partly written (run interrupted)
- canvas-widgets-w13: partly written (run interrupted)
- canvas-widgets-w13: partly written (run interrupted)
- canvas-widgets-w13: review fixes (review-1)
- canvas-widgets-w13: input enters a frame's first pass only (per-frame input rule)
- fixup: count the rerun trial per consumer
- Integration: access trials keep framework-01-w5's face_record module
- canvas-widgets-w13: the listed-without-size trial clears its first frame's texture delta (fwcw round 3)
- canvas-widgets-w13: the first-pass gate holds back only the next step, so an unrun step is still withdrawn when its target changes (fwcw round 3)
- canvas-widgets-w13: wheel-turn trial carries Alt, which no input stage reinterprets (fwcw round 3)
- canvas-widgets-w13: bounds reads the last finished pass (egui widget_rect_last_pass, repin) (fwcw round 3)
- Integration: Cargo.lock for the egui repin
2026-11-15 04:46:06 +00:00
aiongg e93eaa8dfd panels-w9: review fixes (recording.rs) 2026-11-14 17:56:01 +00:00
aiongg b14f4d7f29 panels-w9: review fixes (review-1) 2026-11-14 17:56:01 +00:00
aiongg 33e79d645d panels-w9: written from its sheet 2026-11-14 17:56:01 +00:00
aiongg 0e216b6257 Contract stubs: decision pass 2026-11-14 16:07:24 +00:00
aiongg e9e3a961f4 Merge next (CI lint fixes) into phase2/stubs
# Conflicts:
#	crates/color/src/ui/swatches/menu.rs
2026-11-14 03:13:33 +00:00
aiongg bb277cc3ac Lints: doc links, ungate the click event helper, api map entry for AppPaint, test allowances 2026-11-14 02:51:47 +00:00
aiongg deeb91802f Lints: doc links, test lint allowances, struct update in tests, wildcard imports, dead code 2026-11-14 02:35:35 +00:00
aiongg b12d6387c5 Contract stubs: craft-automation, craft-layers, craft-font-manager, craft-timeline, craft-print 2026-11-14 02:34:37 +00:00
aiongg a17171af48 Lints: drop the workspace missing_docs lint and warn on it in the framework crates that document every public item 2026-11-14 00:15:29 +00:00
aiongg 12dae06907 Injected input holds presses, keys and modifiers; wheel, release, Caps Lock override, hover rest and document points 2026-11-13 18:21:21 +00:00
aiongg a9ed41b60f DialogHost::open_beside and close_beside: app dialogs take their stack place when they open and close 2026-11-13 18:15:44 +00:00
aiongg e98b39a326 DialogHost::sync_beside and automation inspect_stack: app dialogs share the host's stack 2026-11-13 18:15:44 +00:00
aiongg 738d034b69 craft-automation: names_open_dialog tells an app which ui.dialog requests are its DialogHost's 2026-11-13 03:20:08 +00:00
aiongg d4c4f57d96 craft-automation: a finished job sends the app's reply, so an error can carry partial results 2026-11-13 03:20:08 +00:00
aiongg 01f146b931 Dialogs: automation answers only what a user can press
StandardPrompt and UnsavedChangesDialog build their buttons, their choice
check and their programmatic OK from one offered list; a choice without an
enabled button is refused. HostedParamDialog opens its values once (remembered
values, defaults) before its first show, OK or set, through the helper the
first pass uses; OK builds its result through one helper; set refuses rows
that are hidden or disabled and reads the value as its row's kind.
set_json_field takes the Context. Automation lists dialog ids as decimal
strings, takes a string or a number, and names only the host's dialogs.
2026-11-12 22:27:40 +00:00
aiongg e51e929e48 Dialogs: automation surface for every StackDialog
StackDialog gains json_fields and set_json_field; DialogHost lists its open
dialogs with their fields, sets one by id, and confirms or cancels by id
whatever the type. HostedParamDialog (values by parameter row, with a
programmatic OK), StandardPrompt and UnsavedChangesDialog (their choice)
implement them. craft_automation::dialogs runs ui.dialog.set/confirm/cancel
on a host and lists its dialogs for ui.inspect.
2026-11-12 22:27:40 +00:00
aiongg ac9dd13cdc Toggle columns: one width from the toggle-column mechanism, a control and the inline gap (ColumnWidth::Toggle, ColumnSpec::toggle) 2026-11-12 15:42:15 +00:00
aiongg f7f75c178f Sizing::FillWidth makes a leaf fill its row's leftover room
Component::fills defaults to the width when the caller set Sizing::FillWidth,
and the sizing stays on the component after step 1 so the layout hooks read
it. Button, TextField and Slider lose their fill_width props and Swatch and
GradientSwatch their fill flags; callers set Sizing::FillWidth. The blend
select in BlendRows takes the room before Opacity, as in PhotoCraft.

A contract trial checks that a FillWidth leaf takes the row's room and a
Content leaf does not.
2026-11-12 15:12:10 +00:00
aiongg 8703a667ba FooterBar: lay panel actions out from the reading end
The first action given sits at the end edge, as the old PanelFooter and
Photoshop's panel footers place them; a start group keeps its order.
Callers give their actions from the end edge: Layers, Channels,
Actions, Pages, the styles panel, the preset footer and MediaBin.
The filter gallery keeps Move Up and Move Down at the start edge.
LinkList's actions read as in the old: the menu at the start edge,
Relink at the end edge.
2026-11-12 14:32:48 +00:00
aiongg 57b9e991b0 ActionsPanel::enabled: a disabled panel disables its rows, buttons and footer 2026-11-12 14:32:46 +00:00
aiongg 5afc921dd2 ActionsPanel Button Mode: each action is a full-width button with its name at the reading start; Button::align places a button's face 2026-11-12 14:32:46 +00:00
aiongg 0aab074e7b ActionsPanel rows: set rows are plain rows, steps read in the row ink unless switched off, and step rows are a small control high 2026-11-12 14:32:46 +00:00
aiongg b2101fa757 Caller rows: ActionsPanel lists the one recording row that applies (panel_rows(recording)), CommandPalette rows are one line with the path before the chord; trials for a CJK title's English mnemonic and for a letter no menu row takes 2026-11-12 14:32:46 +00:00
aiongg 23b1feabac Row press on toggle cells: the collection hands the press it holds on a row to the row as RowState::pressed, a held part paints pressed, and a toggle cell shows a press on itself or, with row_press, on its row; BrushSectionList's enable boxes follow the row 2026-11-12 14:32:41 +00:00
aiongg 540c932a0e Collection keys: Space can preview, Ctrl+Space toggles the lead's pick, Space flips Include in the actions panel 2026-11-12 14:32:40 +00:00
aiongg f74d963e8f Collection keys: Cmd+] and Cmd+[ move the selected items, Shift to the ends
The stacking keys replace Alt+Up and Alt+Down as the reorder keys of every reorderable
collection and section stack, from one table in the key table. ] moves toward the front:
the start of a vertical order, later in a horizontal strip. The keys move the selection
as a block (the lead alone when it is not selected), with the tree rule for into_groups;
the single-row nudge helpers go. Alt+Down is Open everywhere.
2026-11-12 14:32:39 +00:00