Commit Graph
219 Commits
Author SHA1 Message Date
Dylan M. Taylor 8746d220a5 Framework fwb9-a: port follow-ups (see runs/fwb9-a.md) 2026-11-20 05:48:20 -05:00
Dylan M. Taylor 04b26b2d48 Framework fwb9-b: port follow-ups (see runs/fwb9-b.md) 2026-11-20 05:48:20 -05:00
aiongg bddc593180 Merge storytold next into memo-audit-fix
Memoized views stay the one change mechanism: next's settling-path additions (modifier reads as bind keys, given-edit
and keymap unsettling, settle counters) give way to the tracked inputs that cover them, and request_own_repaint calls
become request_repaint. next's command board, node facts after the node check, the guide drag out of a ruler and the
CommandStates input are taken; the trials next wrote on Lazy::settles run on memoized views. The ruler guide env value
keys a view under the canvas in every pass of a drag. The replay audit's run in the gate takes next's target selection.
2026-11-20 10:26:06 +00:00
aiongg 5ac0410a58 craft-ui: the replay audit compares geometry within 1/256 pt
A record moved by a whole pixel from positions off the float grid differs from a run at the new place by rounding
only. Shift::snapped takes a value's coordinates and floats from the run's where they lie within the tolerance, so the
journal, the rect and the output compare with == after it; egui's PassRecords::first_difference takes the same
tolerance (aiongg/egui b65cbd8d9, pinned here). Ids, counts, colours and text stay exact.
2026-11-20 09:46:25 +00:00
Dylan M. Taylor f192f9e1ae Framework fwb8-c: port follow-ups (see runs/fwb8-c.md) 2026-11-20 04:32:11 -05:00
aiongg 07bc5387be gallery mock: the document's view is Tracked
The canvas, the Navigator and the status bar's zoom show and edit it, so they bind it by its source.
2026-11-20 07:43:21 +00:00
haranishi 3e80f5bd3a Reserve the document scrollbar corner for chrome 2026-11-20 15:46:45 +09:00
Dylan M. Taylor bdd1288eb4 rustfmt batch 6 2026-11-20 00:22:08 -05:00
Dylan M. Taylor 1333d3c347 Framework fwb6-b: port follow-ups (see runs/fwb6-b.md) 2026-11-20 00:21:40 -05:00
Martin BallandClaude Opus 5.5 5dda594ad1 Merge craft-libs next 3e85f5975 into the WordCraft port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 04:24:38 +00:00
aiongg 3a6624df13 Brush tip outlines show only inside the canvas view, under the layers above it
A tip outline the tool host requests carries its region: the canvas's view on
the canvas's layer. The window takes the whole outline as its cursor image only
while it lies inside that region with no layer over it; otherwise the ring paints
on the canvas's layer clipped to the view, under panels, menus and dialogs, and
the window takes only its marks, as for a tip too large for an image.

photocraft#15863
2026-11-19 23:50:56 +00:00
Dylan M. Taylor 895d5a46f8 Framework batch 4 c: port follow-ups (see runs/fwb4-c.md) 2026-11-19 18:25:02 -05:00
Dylan M. Taylor e015cb0a56 Framework batch 3 c: port follow-ups (see runs/fwb3-c.md) 2026-11-19 15:48:27 -05:00
Martin Ball 6dedbe4fe6 skeleton: merge up/next into area/ribbon-fw with conflict markers left in (land step 1) 2026-11-19 20:42:08 +00:00
Martin BallandClaude Opus 5.5 3c647f1689 fwstub-1: Shift+Delete reaches an editor with its shift (EditorInput::Delete.shift); an editor reads one frame's IME edits, texts and keys in the order they arrived (event places from the IME and key stages); trials
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-19 19:39:36 +00:00
Dylan M. Taylor b75793951e Framework follow-ups F-31, F-52, F-53, F-55, F-56 (app red 7, L-244): a right-click during an open press is an aside (PressStep::aside, PressState::context); Draw::cached_texture; Draw::role; AppCatalog::defs public; request_rename repaints settled regions 2026-11-19 13:16:18 -05:00
haranishi d32036cb8c Add document chrome to canvas scrollbars 2026-11-20 03:07:58 +09: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
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 b82c10b0e9 craft-ui: replay a memoized view at a moved place
A kept run replays where its room is now: the room's position leaves the place comparison and
becomes the offset of one RecordShift, which moves egui's records, every journal entry and what
a memoized view returned. Room size, layer, layout, scale and environment stay compared.

- Place::shift_to: the move is a whole step of egui's UI rounding; a moved record holds no paint
  callback and sits on an untransformed layer; clip rects follow when the clip moved with the
  room, or when the run lay wholly inside its clip (nothing culled). Otherwise the view runs.
- Shift: journal arguments (A: Shift) and MemoView's R (R: Shift) move by the replay's shift
  inside replay::replay; rects and points move, Clip goes through the clip rule, the rest stays
  (stays!). Vec2 has no impl: a size and a move are both Vec2.
- The engaged test reads the moved rect; the scroll-view rule compares the view moved with the
  record while the clip moved with it; sizing extents compare the room's size.
- The scroll body moves its content by whole UI rounding steps, as egui places widget rects.
- Trials: a moved replay equals a run there (pass records, revealed rects, returned rect); a room
  of another size runs; a cut run moved under its clip runs and moved with its clip replays; the
  Overview's scroll runs only entering cards and the pointer's.
2026-11-19 16:16:19 +00:00
Dylan M. Taylor 21e77e2b58 Framework follow-ups F-29, F-30, F-32, F-34, F-35 (app red 6, L-236, L-237): Shift/Cmd page keys go to the ends; PageViewOutput::scrolled; ToolPass::hide_pointer; the arena gives a secondary press only to CONTEXT_CLICK targets (scroll bars take theirs); BoxRules::with_edge_band 2026-11-19 11:07:38 -05:00
aiongg d125e4e094 craft-ui: bind_tracked! binds a whole Tracked value; Selection, OpenSet and Level are plain data 2026-11-19 15:38:39 +00:00
aiongg 460bb5de7d craft-ui: MemoView, memoized views keyed by their props
A memoized view's content is a fn and its props are its only input, so the
framework sees every input it reads. While its key (the props type, the fn's
address and the props' inputs) equals the key after its last run, it adds
that run again and returns what the run returned. Lazy and MemoView share
one runner and one settled test; a memo view ignores the two rules that infer
a change of app data (input arrived, a repaint was asked), replays a run of an
earlier pass of the same frame when nothing it read was edited after the run
started and the run asked for no discard pass, and keeps its entry through
absence up to twice the shown views per viewport.

MemoProps gains identity() (the props type with its lifetimes erased, through
the typeid crate), &mut Tracked<T> by revision and Bind by value and place.
A binding's check takes its inputs as props: check(fn) and
check_with(inputs, fn), one mechanism; a composite hands its check on through
BindMut::check_of. The preset name check (NameCheck) takes inputs the same
way, with PresetNames as a library's names. Glyph is Any + MemoProps, and an
icon keys a glyph by its type, then by its key; the caption glyph owns an
Arc<CaptionIcons>.

Facts::register is journaled, layout memory notes discard asks into the open
record, and the settle counters become MemoRun and last_pass_memo_runs. The
idle-frame trial moves onto memo views, beside count trials of the mechanism.
2026-11-19 10:04:00 +00:00
aiongg f9c149b497 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 09:44:06 +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 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
Martin Ball 42bcdb68e7 fu-platform: app batch 1 rulings (S-L324, S-L239) 2026-11-18 22:39:34 +00:00
David MannandClaude Opus 5.5 7f56589f5a Add Anchor: reach a segment within 5 points
The reference application adds an anchor when a click is up to 5 px
from a segment at 100 % and adds none at 6 px. The overlay's segments
hit within a line's 4 points, so a click 4.5 or 5 points away added
nothing under Add Anchor.

craft-behavior's polyline hit shape gets its own reach
(`HitShape::polyline_within`; `polyline` keeps `LINE_REACH`), and the
overlay gives Add Anchor's segments a 5-point reach. Delete Anchor,
Direct Selection and the other tools keep a line's reach.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 22:55:39 +01:00
Martin Ball 5ca0336a5c ribbon-w1: net change of 5 commits
- ribbon-w1: written by an agent
- ribbon-w1: finished by an agent
- ribbon-w1: finished by an agent
- ribbon-w1: review fixes (review-1b)
- ribbon-w1: review fixes (review-1c)
2026-11-18 21:02:54 +00:00
David Mann e380b20809 Merge pull request #2136 from davidmann4/fix/window-edge-drag-leaves-window
A press whose pointer left the window still drags: window edges resize when pulled out (#2132)
2026-11-18 19:54:12 +01:00
Martin Ball 62729b3af6 dialogs-w2: net change of 5 commits
- dialogs-w2: repair 1
- dialogs-w2: finished by an agent
- dialogs-w2: finished by an agent
- dialogs-w2: review fixes (review-1)
- dialogs-w2: review fixes (review-1b)
2026-11-18 18:18:25 +00:00
Dylan M. TaylorandClaude Opus 5.5 f49ad550fe red round 2 (fw-core): fixes for fw-run-3 (runs/fw-run-3/fw-core.md); L-198 applied in fw-lists; committed by the lead
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-18 09:04:07 -05:00
Martin Ball 5b9bf4c985 canvas-w4: net change of 5 commits
- canvas-w4: repair 1
- canvas-w4: finished by an agent
- canvas-w4: finished by an agent
- canvas-w4: finished by an agent
- canvas-w4: review fixes (review-1)
2026-11-18 14:03:47 +00:00
Dylan M. Taylor 2454b55d06 pdf-workflows-w1: net change of 4 commits
- pdf-workflows-w1: written by an agent
- pdf-workflows-w1: finished by an agent
- pdf-workflows-w1: review fixes (review-1)
- pdf-workflows-w1: peek_rename, so a requested rename keeps its row listed (lead applied the refused hunk)
2026-11-18 08:07:07 -05:00
Dylan M. Taylor 5b7a6d76f6 pdf-edit-w4: net change of 2 commits
- pdf-edit-w4: written from its sheet
- pdf-edit-w4: review fixes (review-1)
2026-11-18 06:05:43 -05:00
Dylan M. Taylor b0f2f3d2c4 pdf-edit-w3: net change of 2 commits
- pdf-edit-w3: written from its sheet
- pdf-edit-w3: review fixes (review-1)
2026-11-18 06:05:43 -05:00
Dylan M. Taylor a8ee463154 pdf-edit-w1: net change of 2 commits
- pdf-edit-w1: written by an agent
- pdf-edit-w1: review fixes (review-1)
2026-11-18 06:05:43 -05:00
Martin Ball 3981899044 Contract stubs: phase 4 refresh (decisions S-L141..S-L152, consistency contract changes) 2026-11-18 10:20:44 +00:00
Dylan M. Taylor b6304e0b25 pdf-canvas-w4: net change of 3 commits
- pdf-canvas-w4: finished by an agent
- pdf-canvas-w4: finished by an agent
- pdf-canvas-w4: review fixes (review-1)
2026-11-18 05:02:29 -05:00
Dylan M. Taylor ff5f067baa pdf-canvas-w3: net change of 2 commits
- pdf-canvas-w3: written from its sheet
- pdf-canvas-w3: review fixes (review-1)
2026-11-18 05:02:29 -05:00
Dylan M. Taylor 5bd3eb6976 pdf-canvas-w2: net change of 3 commits
- pdf-canvas-w2: written from its sheet
- pdf-canvas-w2: finished by an agent
- pdf-canvas-w2: review fixes (review-1)
2026-11-18 05:02:29 -05:00
Martin Ball b21c69300c Contract stubs: craft-codepage craft-i18n craft-host craft-quit craft-theme craft-keymap craft-behavior craft-settings craft-platform 2026-11-18 08:01:14 +00:00
Dylan M. Taylor 4c0faa523c Contract stubs: phase 4 refresh 2026-11-18 01:16:13 -05:00
Dylan M. Taylor f0275a082a Contract stubs: craft-behavior, craft-fonts-build, craft-platform, craft-window 2026-11-17 22:32:06 -05:00
David Mann 13b9bf4d46 A press whose pointer left the window still drags: window edges resize when pulled out (#2132)
winit reports the pointer leaving the window while the button is held, and the
press machine marked the open press abandoned, which also stopped its drag from
starting. A window's resize grip lies inside the window and starts the OS
resize on DragStart, so pulling an edge outward left the window before slop and
the resize never started. Leaving the window now ends only the press's click.
2026-11-18 01:52:13 +01:00
David Mann 183b6b7dd5 dock: a permission for panels that dock only in dock columns (photocraft#12517)
`Permissions::docks_outside_columns` (on in `ALL`): without it a panel docks
only in dock columns or floats. Any action that leaves it in a frame of the
docked tree (a split beside the canvas, an edge of the docked area) is a
column-rights breach, so the model refuses it and a drag's dry run shows no
drop mark there. Reconcile moves a saved one out of a frame into a dock
column. A toolbar sets it so it never lies across the window.
2026-11-17 21:17:17 +01:00
aiongg ef59f1d81d Merge branch 'fx/tabs' into fx/all-1117 2026-11-17 14:46:03 +00:00
aiongg 53ac626a31 next CI: derive Preview's Default, restore flatten_write's Cyan ink and main's craft-zip README line, gate the embedded-SVG test on tree, fix doc links
- craft-behavior: Preview<V> derives Default with #[default] Unchanged (clippy::derivable_impls on Rust 1.100).
- craft-prepress tests/flatten_write.rs: main's even-odd test needs the Cyan ink const.
- craft-svg: the embedded-SVG scene test needs the data-URL image resolver, which is behind feature tree.
- Docs: no links to private items (markdown, dwg, ui-patterns), no link to a crate that is not a dependency (frame), write() for the function (doc-binary), an autolink for the URL (update), Self::from_bytes (psd). craft-midi's source_timed and craft-pdf's cos::content keep only their inner docs, so their links resolve inside the module.
- README: main's craft-zip entry with its lenient reader sentence, lost in the 17 Nov merge.
2026-11-17 14:28:37 +00:00
aiongg bf755d4228 Panel tabs: shown tab keeps its width, others keep their first letters, labels clip 2026-11-17 14:26:15 +00:00
aiongg 98226eb219 Merge branch 'look/align' into fw/mac1 2026-11-17 08:04:37 +00:00