Commit Graph
8520 Commits
Author SHA1 Message Date
FredApps 6d0aba2eeb Merge main HPGL fix into reviewed PSD stack [skip ci] 2026-11-19 12:41:44 +01:00
FredApps d26057203e Cover conditional nested body measurement 2026-11-19 12:41:39 +01:00
Dylan M. Taylor c260a6e1c3 Merge pull request #2351 from alehel/codex/video-track-remaining-decoders
craft-video: TrackDecoder for ProRes, DNx, APV, FFV1 and VP8 (#1231)
2026-11-19 06:36:08 -05:00
FredApps b963c7a6b1 Merge current main into reviewed PSD stack [skip ci] 2026-11-19 12:35:06 +01:00
FredAppsandCodex 8fc78247a6 Fix HPGL2 byte stream encoding (#2359) [skip ci]
* fix(plotter): preserve HP-GL/2 byte encoding and pen state [skip ci]

* test(plotter): cover PE continuation bytes and palette bounds [skip ci]

---------

Co-authored-by: Codex <codex@openai.com>
2026-11-19 18:34:11 +07:00
FredApps de5472ff34 Use explicit imports in text memo trials 2026-11-19 12:31:58 +01:00
FredApps bb7314039e Share word-width measurement across wrapping text proposals 2026-11-19 12:29:49 +01:00
FredApps db604faefb Reuse prepared steps for adjacent labelled leaves 2026-11-19 12:29:33 +01:00
FredApps b04d18a735 Select UI suite items through explicit registries 2026-11-19 12:20:08 +01:00
FredApps e840877d93 Cover cold lazy text mutations 2026-11-19 12:07:46 +01:00
aiongg a7869f4faf craft-ui: memoized views follow the framework inputs they read outside their props
- Tracked inputs (runtime::inputs): the modifiers, the pointer, the keys held, the window facts, the keyboard
  layout, the keymap, a drag, the focus, the open layers and the scroll view of a nested Lazy. Each accessor notes
  its input into the open records; each input has a generation per viewport. A memoized view's replay is refused
  when an input its run read has another generation, so a change runs only its readers, absent views included.
  The keymap generation replaces the keymap-change unsettle for memoized views; an old Lazy keeps it.
- pointer::mods and frame::stepped_clock (a view reading the clock runs at the next step). In-crate pointer reads of
  the component under the pointer use unnoted reads.
- Scope key: what a scope hands down beyond the style inputs (enabled, read-only, size, ink, the command chain,
  motion, every app value) feeds a memoized view's key. EnvValue requires MemoProps.
- A memoized view's content starts a layout room: room reaches it only through its place.
- A command queued for a command scope instance inside a replayed view runs the view (Facts.instances,
  commands::queued_for).
- Count trials in ui-widgets body/memo_reads.rs.
2026-11-19 11:00:52 +00:00
aiongg fbaaa92e00 Command resolution: revived instances, per-viewport facts, indexed wake
An instance that missed one pass and registers again moves the shared
generation. The last focused chain, the instances inside the top modal
layer, a dialog owning the keys and the focused stop's edits are each
viewport's own, with their own generations. A resolution the focused stop
answered is read and woken under its own key. Removed instances' state
revisions go with a shared move. The wake walks only the entries indexed
under the inputs that moved. The testing check asks the gate apart from
its cache. The per-pass counters keep the previous pass readable.
2026-11-19 10:58:46 +00:00
FredApps 69483c9cce Share collection drop and opener calculations 2026-11-19 11:57:39 +01:00
aiongg f15c3ea8ee craft-ui-panels: InDock and Arrangement derive MemoProps
A memoized view keys on every app value its scope sets; the dock's InDock value feeds its arrangement (dock id and revision).
2026-11-19 10:56:53 +00:00
FredApps 61b0fc0b41 Measure opted-in leaf sizes together 2026-11-19 11:48:53 +01:00
FredApps 293b9a97d7 Resolve shown values once per value type 2026-11-19 11:48:53 +01:00
FredApps 94b37af987 Share binding application across components with the same value type 2026-11-19 11:40:20 +01:00
FredApps 5ab63236e4 Preserve mutation of lazy text details 2026-11-19 11:38:50 +01:00
aiongg 9bfa2c751b Command resolution only on change
Each kept resolution holds the key of what it read: the state's revision,
the gate's key and answer, a shared generation (keymap and catalog, scope
parents, instances and their liveness, modal facts) and, when read, the
focus generation, the focused stop's edits and a layer's or menu's vantage.
A reader whose key holds gets the kept Arc<ResolvedCommand>; the wake at
the start of a pass walks only when an input moved. CommandGate is a fn
plus props, asked once per command per key. App-scope states come from a
held Tracked<CommandStates>. resolve and resolve_command return
Arc<ResolvedCommand>. Under testing, every 100th pass compares every kept
resolution with a full one; count_resolve counts new, repeated and checked
resolutions.
2026-11-19 10:33:55 +00:00
FredApps f86a51e6c7 psd: append borrowed TySh payload framing [skip ci] 2026-11-19 11:30:36 +01:00
aiongg c832163e10 craft-ui: memoized views refuse replays of evicted memory, outside saved writes and discarded passes
A kept run records the memory owners it registered and the generation of
ended shown lives; a view whose components' shown memory was evicted or
ended since runs when it is shown again. A kept or saved binding in a view's
props feeds the context's count of writes made outside a component's edit
(set_saved_value and forget_saved per key, forget for session memory), read
through the view's key, and those writes note the edit for the frame.

A record whose run asked for a discard pass is never replayed: egui's count
of discard requests is compared between open and close, and layout memory,
whose ask reaches egui only in the end hook, notes its own. A run keeps the
key from before it, so a view that writes through its props runs once more
from the written value before it replays. A memoized view's entry id is
claimed once per pass, as stage bases are.

Check inputs are keyed only when a view takes the key (NameCheck and the
binding check box their inputs), PresetNames borrows the library and walks
its names, a Tracked field binding keys by address and write count, and
caption icons read again take the next generation.
2026-11-19 10:29:58 +00:00
FredApps 5ae9f1213c Share collection scroll geometry across row types 2026-11-19 11:24:20 +01:00
FredApps 367f3be5e0 Run the text adapter once across component types 2026-11-19 11:15:11 +01:00
FredApps ec09134007 Bind pass services once for each component tree 2026-11-19 11:07:30 +01: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
Dylan M. Taylor 1acd07f6bc Merge pull request #2345 from storytold/dot/pkcs7-cms-inspection-private-20261119
craft-pkcs7: add bounded borrowed CMS wire inspection
2026-11-19 05:03:32 -05:00
Daniele Mori 347dccfa11 craft-docx: a cut-off span gives an unsized kept column only its share (test) 2026-11-19 10:55:38 +01:00
Daniele Mori b0ce7bcc8f craft-docx: gridless tables keep an empty grid's inch, the narrowest column before spans, and cut spans' rest
Review fixes: a file with an empty w:tblGrid keeps the inch per column it had; a cell narrower
than the narrowest column counts as that column before a span shares out what it lacks, so the
span keeps its width; a span cut off at the last column the reader keeps sizes its kept columns
by their share and gives the rest to no other column.
2026-11-19 10:55:38 +01:00
Daniele Mori befa8fd583 craft-docx: a table without w:tblGrid takes its grid from its cells, as Word rebuilds it
Template libraries write tables with no w:tblGrid. The reader gave every column an inch, so such a
table came out at the wrong width whatever its cells asked for. Word rebuilds the grid from the
cells on opening: each column as wide as the widest w:tcW among the cells that occupy it alone, a
spanning cell's width shared among the columns no cell sizes, what it still lacks going to its
last column, an inch for a column nothing sizes, never narrower than 26 twips. The rules were
measured on the grids Word saves for synthetic tables. A row after w:gridBefore starts at its
own column.

Moved from storytold/wordcraft#1630, whose reader half had no file left there after #6603.
2026-11-19 10:55:38 +01:00
yoriswind f08789c7a6 Reduce temporary memory when decoding DPX and Cineon 2026-11-19 01:50:21 -08:00
yoriswind 23393d1def Avoid widened sample buffers in eight-bit DPX export 2026-11-19 01:50:13 -08: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 1e7aff5638 Keep the counters in pass-local state; mark Settle non_exhaustive 2026-11-19 09:44:06 +00:00
aiongg be39bb3857 Gate the counters on the testing feature 2026-11-19 09:44:06 +00:00
aiongg 2dc15b3ec2 Add count-trial counters for settling, text layout and measure asks, and an idle-frame trial 2026-11-19 09:44:06 +00:00
FredApps cc808e7c07 Share stamped viewport access and retain pass storage between frames 2026-11-19 10:34:53 +01:00
alehel 9ef7889f5b craft-video: dispatch ProRes, DNx, APV, FFV1 and VP8 tracks 2026-11-19 10:14:21 +01:00
FredApps f59d307652 Simplify text memo eviction guard 2026-11-19 10:10:59 +01:00
FredApps e17bb9328b Compute text details on demand 2026-11-19 10:06:38 +01:00
aiongg 83291b17c8 ui-contract: replay trials allow expect, as test code 2026-11-19 09:05:25 +00:00
FredApps 9ef244badc Share container measurement and region planning across component types 2026-11-19 10:05:19 +01: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 92ccffe3ab Reuse typed storage across UI memory reads 2026-11-19 09:32:56 +01:00
el-j 7b1a8f4515 craft-audio: validate DSF container bounds and DSDIFF channel counts (#1787) 2026-11-19 09:26:19 +01:00
FredApps f8dddb2a55 Split UI test kit from story suite 2026-11-19 09:25:07 +01:00
Rees aa89df6814 Preserve external DOCX mail-merge source relationships 2026-11-19 09:21:13 +01:00
FredApps 0c076f890b ui-contract: record steps only inside an inspected region 2026-11-19 09:19:37 +01:00
el-j 22710f1587 Merge remote-tracking branch 'origin/main' into feat/audio-dsd 2026-11-19 09:17:52 +01:00
FredApps 30a47c5527 Cache repeated text layouts per context 2026-11-19 09:14:19 +01:00