Commit Graph
7039 Commits
Author SHA1 Message Date
FredApps bcd5feda80 Merge pull request #2366 from storytold/perf/2218-ipc
ipc: consolidate integration tests and preserve discovery isolation
2026-11-20 18:29:32 +07:00
FredApps 06b351f51d Merge pull request #2364 from storytold/perf/2218-pcap
pcap: consolidate integration test binaries
2026-11-20 18:28:01 +07:00
FredApps f2180e9a9c Merge remote-tracking branch 'origin/next' into HEAD 2026-11-20 12:24:55 +01:00
aiongg 2d61e3e443 Audit trial: a kept run that missed a framework input, which only the run's facts hold
A missed inspection-record read is also in the run's journal, so the
journal comparison caught it before the facts were compared.
2026-11-20 11:23:36 +00:00
FredApps 186d77bcad Merge pull request #2373 from storytold/perf/2218-menu
menu: consolidate tests and keep AppKit on the main thread
2026-11-20 18:22:34 +07:00
FredApps c8d7736628 Merge pull request #2362 from storytold/perf/2335-runtime-accessors
Share pass services and contract steps across component types
2026-11-20 18:20:49 +07:00
aiongg 69ae41ff40 Reads: an edit reaches every read of an overlapping span in its source
A field's edit reaches a read of the whole value, as a whole value's edit
reaches its fields, in the same-frame rerun and in a settled view's check.
2026-11-20 11:20:46 +00:00
aiongg ea609119ea egui: pin storytold/egui next at 1a44fd11c 2026-11-20 11:17:07 +00:00
aiongg a9bd542c50 Container regions: a scrolling body in unbounded room shows its measured line in every real run
The real run is told by the run's own flag (no sizing pass), not by
whether a measured size is present.
2026-11-20 11:17:07 +00:00
aiongg 4b2769acac Replay audit: bare floats exact, reads and inputs compared; a whole story value's edit reaches its fields
A bare f32 or f64 a record holds or a view returns compares exactly; only
positions and the hit-shape distances snap within the tolerance. The audit
compares a kept run's reads and framework inputs with the real run's. A
command reader notes the keymap whether its resolution was kept or made
in the pass. A Tracked key holds its size, and an edit reaches every read
of a part inside it (BindKey::reaches), so a field of a story value bound
earlier in the pass runs again when the Properties editor writes the
whole value. Story value keys hash the name and the type.
2026-11-20 11:17:07 +00:00
aiongg 7dfc887cec Lints: DropMark copies; PlainData puts its bound on the type parameter; a stop-group alias in a bar trial 2026-11-20 11:17:07 +00:00
aiongg 8048f8ef92 Adopt the shared AGENTS.md (RFC-0072) and test rules (RFC-0071) (#2489) 2026-11-20 18:08:50 +07: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
haranishi 329ceb85fb Give desktop Home recent cards more room 2026-11-20 19:18:52 +09:00
haranishi 272c913b70 fix: size empty status zoom to its placeholder 2026-11-20 19:18:13 +09:00
aiongg 5589523161 stories: values bound together come from one story value or StoryData::pair_at, helpers bind by source
A story binds two values at once from pair_at when one of them must keep its own name, as a dialog's open does for
the gallery's opener; values bound together otherwise share one story value, and a helper takes the value's ValueAt
beside it. The PDF export story's open leaves its settings value, so the card opens the dialog again after Cancel.
Unused Bind imports in story files are gone.
2026-11-20 10:11:06 +00:00
aiongg ddc06cae58 craft-ui: a scrolling body's measuring run keeps its unbounded band
The bound to the measured line applies once this pass measured the body; its measuring run lays the content out in
the unbounded band, so a measure reports the content's whole extent.
2026-11-20 09:58:39 +00:00
aiongg cc6c57134c craft-ui: face measure docs name every caller (measure, parts, header parts); trial says why entry 0 2026-11-20 09:52:22 +00:00
aiongg 717ff260cb stories: format 2026-11-20 09:50:49 +00:00
aiongg f39ad653e3 tests: drop the two card audit trials that pass without their fixes
Shown as the gallery shows cards (raised surfaces in rows that run only in view), a card moved by a fractional wheel
step and a card partly out of view still replay equal to a run with the moved-replay fixes reverted, so neither trial
guards them; the gallery's audit-on suite does.
2026-11-20 09:49:11 +00:00
aiongg 90e40105d2 stories: start and metadata stories bind their story value through ValueAt
They copied the value out and wrote it back, so their binds named the copy by address.
2026-11-20 09:49:00 +00:00
Martin BallandClaude Opus 5.5 1e48c0807e Merge storytold next (e7e877ac5) into the port
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 09:48:16 +00:00
aiongg e4d8cbda9f craft-ui: a scrolling body in unbounded room shows its measured content
A content-sized scroll container nested in a body that scrolls is offered no bound along y: its view is the line this
pass measured, never an unbounded band (whose bar parts had NaN geometry). The card trials of the replay audit show
cards as the gallery does: raised surfaces in rows that run only in view, the scrolling card sized to its content.
2026-11-20 09:46:45 +00:00
Martin BallandClaude Opus 5.5 6ca7cf0ecc docs: the components index regenerated from the registrations
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 09:46:43 +00:00
aiongg 922dc82098 stories: story values kept in a local bind through ValueAt
Script: `let PAT = data.value(ARGS);` (or ranged, choice) whose locals a later Bind::bound / Bind::bound_mixed in the
same block binds becomes `let (PAT, AT) = data.value_at(ARGS);` and the binds become AT.bind / AT.bind_mixed; 292
values, 333 binds; unused Bind imports dropped.
2026-11-20 09:46:30 +00:00
aiongg b31717b578 craft-ui: StoryData::value_at binds a story value or a field of it by source
ValueAt names a value by its data's source and a part of it by the part's offset in the value, as bind_tracked! names
a field of a Tracked, so a story that keeps a value in a local binds it as StoryData::bind does.
2026-11-20 09:46:26 +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
Martin BallandClaude Opus 5.5 a9deabd00e design-lint: api, props, contract and exception findings of the port code
- api/non-exhaustive: #[non_exhaustive] on public enums, variants and structs, with constructors for what
  callers built by struct expression (KeytipControl, GroupWidths, RibbonMenuRequest, EdgeLook::sample,
  BalloonItem, CropScope::object, PageBandRoom, WheelSpeed, AltCodePages, GalleryFace, GradientTile).
  GalleryItem, RibbonOutput, LineBreakOptions, AsianTypography and GapEdge join the closed list.
- props/hand-setter: setters that only store become #[prop] fields. Keytips drops its own enabled field
  for Common enabled, and its show becomes show_over.
- contract/no-global-state: constant tables are const, not static.
- contract/egui-import, memory, allocate: LayerId, TreeUpdate, Id::unique, the text scroll memory and
  allocate_space go through runtime::egui.
- contract/overlay-flag: CanvasScrollbars declares overlay; its drag story covers Open.
- Markers and exception entries only where the code is the exception (stories, trials, unit-square
  coordinates, the balloons id scope).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 09:38:56 +00:00
Martin BallandClaude Opus 5.5 1becfbb1ee ui-contract: lower layers no longer import higher ones (design-lint layer/import)
The painted pointer art and painted_image move from runtime::cursor to primitives::pointer_art, which
draws them; EditorSurrounding moves to runtime::ime, which reads it; StyleCx::face moves to
contract::items beside measure_under. EditorSurrounding gets text() and unavailable() constructors now
its variants are non_exhaustive. painted_image is reached as craft_ui::primitives::painted_image.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 09:38:49 +00:00
Martin BallandClaude Opus 5.5 84b8358d24 dialogs trial: the chooser folder field is compared with the platform separator (Windows)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 09:35:40 +00:00
Martin BallandClaude Opus 5.5 6999c3c7b2 ui-contract trial: on macOS, where Move has no default chord, Alt+F7 in a floating window is the app binding
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 09:28:58 +00:00
aiongg bc0da2bbf6 tests: memo audit trials for a card holding a scrolling body
A card with its own scrolling body replays moved with its rows' places from their own view, and cut by the view
above with its scroll region's view cut too; the nested trial's card keeps a fixed room.
2026-11-20 08:53:32 +00:00
aiongg e1fbd5b1b9 craft-ui: a scroll region's noted view is a clip
The view of a scroll region cuts what lies outside it: a replay cut by the clip around it cuts the view as a run
there does.
2026-11-20 08:48:12 +00:00
aiongg 3a644d6ff5 craft-ui: a scroll area places a child's rect from the view it shows
A child's place was noted relative to its area's view when it ran and moved by the record's shift on replay, which
is right only for an area outside the replayed run: an area inside it moved with the run, so its children kept their
place. The note holds the child's rect, which moves with the record, and the area takes the place from the view it
lays out for (Placed holds it from begin).
2026-11-20 08:48:12 +00:00
aiongg 2e8d7a21bf stories: bind mixed story values through StoryData::bind_mixed
Scripted: Bind::bound_mixed(data.value(..)) becomes data.bind_mixed(..) at 35 sites, and an import of Bind that
nothing else uses goes.
2026-11-20 08:28:54 +00:00
aiongg d08973e932 craft-ui: StoryData::bind_mixed binds a story value that may be mixed by its source
A mixed story value bound by address names it in its pass only. bind_mixed binds it as bind does (the data's
source, the value's name), through a Tracked source that holds a Mixed value.
2026-11-20 08:28:54 +00:00
aiongg b9c91aa76f craft-ui: a moved replay places content and registrations where a run there would
Three causes of replays that differ from a run at the new place:
- the clip a member joins its arena through, and the clip of its over parts, are clips (shift::Clip): a replay cut by
  the view takes the view's clip, as a run there does;
- a view that replays moved inside a run is kept in that run's journal at its new place;
- a scrolling body moves its content by whole physical pixels on steps of egui's UI rounding, and a kept run moves
  only by such a step (lazy::keeps_placement): paint snaps to the pixel grid, so a record moved by a fraction of a
  pixel would not be where a run puts it.
Trials (audit on): a fractional wheel step, a card scrolled partly out of view, a view replayed moved inside a run.
2026-11-20 08:28:54 +00:00
aiongg 018c7ee94c tests: a hidden page is measured once in each pass
Pages measures each hidden page once per pass (the page closure reads data the framework does not track), so a
settled frame measures it again and an edit read earlier in the pass measures it in both passes. The trials assert
that rule and that the pages take the new size in the frame of the edit.
2026-11-20 08:28:54 +00:00
Martin BallandClaude Opus 5.5 e5ac84f5f5 platform: Apple open events pass the paths through without a same-type conversion (macOS clippy)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-20 08:27:24 +00:00
aiongg 0383e19b70 Keep a composite's faces out of the layout memory
A face measured by MeasureCx::face is part of its composite's measure
call: that call's answer and the inputs the faces read are the record
the layout memory keeps and checks. The face recorded a leaf of its own
under one id shared by every face of the composite, so only the first
face was kept, and a change to it that left the composite's size alone
dropped the kept measurements and asked for a discard pass.

measure_face measures a face as measure_under does, without the leaf.
2026-11-20 08:18:48 +00:00
aiongg ef1a365006 Lay out a text measured at its least once
TextRun::least (MeasureCx::least) returns the run laid out whole with its
least width, so a text measured at Proposal::Min no longer lays the whole
line out a second time for its height. A fitted select face takes its cap
from the same call. A select of 29 blend modes plus the mixed word lays out
56 texts per Min ask instead of 86.
2026-11-20 08:05:28 +00:00
aiongg e69f80e8a3 gallery tests: a story value edit runs its card in the frame of the edit 2026-11-20 08:04:20 +00:00
aiongg 0033d0c7b3 craft-ui: a kept run replays only on the font atlas it ran on
egui clears the font atlas when it fills up and rebuilds it for new text options; a kept galley's glyphs then name
other glyphs. lazy::Place holds the atlas generation (egui Fonts::atlas_generation, aiongg/egui memo-atlas-generation
dd086c7f29), so the one rule for kept paint covers it. Trial: a settled view runs after the atlas is rebuilt.
2026-11-20 08:04:19 +00:00
aiongg 417460a887 tracked: two Tracked values are equal when what they hold is
The mock's document holds a Tracked view and stays a story value, which compares by value.
2026-11-20 08:04:19 +00:00
aiongg 22835c7cf2 stories: format the scripted binds 2026-11-20 08:04:18 +00:00
kiwi4boy 8f14a19169 ppt95: share the trapezoid outline with the PowerPoint 97 path
#2492 landed, so the PowerPoint 95 path's copy of OfficeArt's trapezoid
outline now uses geom::trapezoid. A negative adjust value is 0 on both.
2026-11-20 02:56:26 -05:00
kiwi4boy c53d43acd1 Merge branch 'ppt95-text' into ppt95-shapes
# Conflicts:
#	crates/ppt-binary/src/geom.rs
2026-11-20 02:56:01 -05:00
kiwi4boy bb829867fa Merge remote-tracking branch 'origin/main' into ppt95-text 2026-11-20 02:54:29 -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
aiongg 13764666ac stories: bind story values through StoryData::bind
Scripted: Bind::bound(data.value(..)) becomes data.bind(..) and Bind::bound(data.ranged(..)) data.bind_ranged(..).
2026-11-20 07:43:21 +00:00