Commit Graph
5896 Commits
Author SHA1 Message Date
aiongg 2121d228ed Dock drags: one region mark that carries the panel's name, no frame at the pointer (photocraft#15526) 2026-11-17 23:40:54 +00:00
aiongg b2c8635980 Scroll: an overlay bar in the padding that shows under the pointer; the tool rail and bars use it (photocraft#15524) 2026-11-17 23:39:22 +00:00
aiongg 8648f6743b gitattributes: the craft facade manifest keeps LF on checkout 2026-11-17 23:14:08 +00:00
FredApps 373d0e1683 test(ci): use Git Bash explicitly on Windows 2026-11-18 00:07:54 +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 27e28cd24e menu: the bar and context rows take the shell's platform unless one is set
MenuBarUi and context::rows used the build's target, so a test that runs the shell as Linux on
a Mac runner still got a Mac bar without Alt letters. They read Target::of_shell from the
frame's Env, as the shortcut column already does; the CJK mnemonic test runs as Linux.
2026-11-17 22:58:38 +00:00
aiongg d6b5b16bbb Merge pull request #2113 from aiongg/ci-speed-b
ci: lint leg, cached corpora, platform legs only when needed, superseded main runs cancelled
2026-11-17 17:57:30 -05:00
FredApps 6589b3c83e ci: add opt-in uncapped three-platform full validation 2026-11-17 23:51:18 +01:00
Dylan M. TaylorandBrandon Thomas e5f00f5bf6 Extract bounded XFDF field-value reader (#2056)
* Extract bounded XFDF field-value reader

* Record retained XFDF source contributor provenance

---------

Co-authored-by: Brandon Thomas <echelon@gmail.com>
2026-11-17 23:47:23 +01:00
Dylan M. Taylor 5cd16f2b9a Merge pull request #2107 from storytold/cutover/vectordrawable-depth
vectordrawable: bounded depth option and iterative XML writer
2026-11-17 17:43:09 -05:00
Dylan M. Taylor 2e686d9668 Merge pull request #2110 from storytold/dot/jpeg-tokenless-20261117
jpeg: tokenless two-pass encoding with MCU-row scratch
2026-11-17 17:41:57 -05:00
aiongg 5f74a21acb ci: UI and update limits sized for uncached Windows builds on pull requests into next 2026-11-17 22:18:47 +00:00
aiongg 4f62bf48d8 ui-contract: a drive that changes nothing names each run and the edits it sent 2026-11-17 22:18:47 +00:00
aiongg baceabad8e pages: the margin handle stories fit the page to the stage
The story showed a Letter page at 100 % centred on the stage, so on a stage narrower than the
page the left and top margins sat outside the canvas and the drag pressed nothing. It fits the
page with the canvas's Fit on Screen, and the drive fails loudly when the Left Margin handle is
missing.
2026-11-17 22:18:47 +00:00
aiongg 019d54bfff ci(jpeg): the uncached wasm check gets a 20-minute limit 2026-11-17 22:07:49 +00:00
David Mann 8c31476bd3 Menus: name the kept letters' type (clippy type_complexity)
Part of storytold/photocraft#15493.
2026-11-17 22:47:34 +01:00
David Mann 2d52fc0a0b Menus: assign a level's mnemonics once, not once per row and pass
Every row of a menu level asks for its letter in every pass, and
`MenuLevel::mnemonic_of` assigned the letters of all the level's rows for
each of them; `end` did once more. A long menu (PhotoCraft's Filter menu,
about twenty rows) and each submenu it opened paid that many full
assignments per frame: in a profile of hovering the Filter menu's submenu
rows, `mnemonic::assign` was about 6 % of the open menus' cost, and the
frame that opens a submenu reached 12.7 ms of UI work.

The level keeps the last assignment with the labels and folder it was made
for and assigns again only when they change. `mnemonic_of` reads its entry
with `get`, so a row that is not in the list gets none instead of an
index out of range.

Part of storytold/photocraft#15493.
2026-11-17 22:45:22 +01:00
Dylan M. Taylor 65e38419d7 testkit: share the sampled-damage corpus with WASM and Java class 2026-11-17 16:44:09 -05:00
aiongg c016bbb209 gitattributes: theme size files and token dumps keep LF on checkout 2026-11-17 21:43:23 +00:00
aiongg 1dd6bb654c ui-widgets: FitMode::Shrink is non_exhaustive 2026-11-17 21:43:23 +00:00
aiongg ae51a53334 design-lint: source sites use the root without the verbatim prefix and '/' separators; restore the trial-rooms exception; tests compare '/' paths 2026-11-17 21:43:23 +00:00
aiongg e388ed46c0 browse: link and relink tests use paths that are absolute on Windows 2026-11-17 21:43:23 +00:00
Dylan M. Taylor dfdc68c46b Merge pull request #2093 from storytold/dot/psd-guides-v1-20261117
psd: share legacy Grid and Guides record framing
2026-11-17 16:35:45 -05:00
aiongg 1e446ebe05 Merge pull request #2092 from aiongg/ci-speed-a
ci: faster Workspace gate: nextest everywhere, one test feature set, fuzz caps with a nightly full run, per-crate workflows without duplicates
2026-11-17 16:28:16 -05:00
aiongg f79937d3be craft: the facade's features table lists the member crates' features from the 17 Nov sync 2026-11-17 21:24:33 +00:00
Dylan M. Taylor 6cf64e21b4 Merge upstream main into review-2070 2026-11-17 16:14:19 -05:00
d118983bf9 Extract Java class reader and JVM opcode decoder (#2048)
* Port Java class source: Craft Anything

Source: storytold/craft-anything@f64ae3bf3c

* Port Java class source: Find class usage in multidimensional object arrays (R0.5) (#437)

Source: storytold/craft-anything@ffe15c9165

* Port Java class source: More format parsers keep to their declared lengths and refuse impossible values (#722)

Source: storytold/craft-anything@b9ca099903

* Port Java class source: Address the parser review findings from #722 (#766)

Source: storytold/craft-anything@eab6a0f01b

* Port Java class source: Read JVM method parameters containing parentheses in class names (R3.12) (#1342)

Source: storytold/craft-anything@fb4c437fe6

* Port Java class source: Reject Java constants that exceed the constant-pool slots (R3.12) (#1373)

Source: storytold/craft-anything@1c4f233f08

* Port Java class source: Validate JVM switch tables before allocating decoded pairs (R3.12) (#1503)

Source: storytold/craft-anything@b40c56ef5c

* Port Java class source: Reuse constant-pool names while reading Java attributes (R3.12) (#1549)

Source: storytold/craft-anything@76fcdaadb7

* Port Java class source: Trace JVM bootstrap dependencies at their bytecode use sites (R3.12) (#1648)

Source: storytold/craft-anything@c5e524dd08

* Port Java class source: Reject impossible JVM array allocation operands (R3.12) (#1675)

Source: storytold/craft-anything@f04d7456e0

* Port Java class source: Report truncated Java class attribute tables (R3.12)

Source: storytold/craft-anything@420552ff74

* Expose neutral Java class API and retain checked reader and synthetic fixtures

* Retain Java regression: java_array_operands

Source: storytold/craft-anything@f04d7456e0

* Retain Java regression: java_attribute_names

Source: storytold/craft-anything@76fcdaadb7

* Retain Java regression: java_constant_pool_slots

Source: storytold/craft-anything@1c4f233f08

* Retain Java regression: java_invoke_operands

Source: storytold/craft-anything@eab6a0f01b

* Retain Java regression: java_linkage_references

Source: storytold/craft-anything@c5e524dd08

* Retain Java regression: java_truncated_attributes

Source: storytold/craft-anything@420552ff74

* Retain Java regression: java_wide_opcodes

Source: storytold/craft-anything@b9ca099903

* Register Java class reader and retain source regression coverage

---------

Co-authored-by: Brandon Thomas <echelon@gmail.com>
Co-authored-by: Afloat <132809511+Afloat16@users.noreply.github.com>
Co-authored-by: BFlat <bombayapirat@gmail.com>
Co-authored-by: Afloat <ShuffleMonkey@163.com>
Co-authored-by: RRFZ <247457381+Plastic-time@users.noreply.github.com>
2026-11-17 16:13:18 -05:00
aiongg e92fce95d5 ui-contract: the palette-level test expects Windows' inactive palette at the bottom 2026-11-17 21:08:01 +00:00
Dylan M. Taylor 971e8ad8f8 jpeg: add tokenless two-pass baseline encoding 2026-11-17 16:00:45 -05:00
aiongg 9f6ee78987 harfbuzz-subset-sys at storytold/harfbuzz rust-subset-15.0.0 f32ed1e54 (the /bigobj merge) 2026-11-17 20:59:30 +00:00
Terra854 6815dd6b7c Find JPEG sampling headers after marker padding 2026-11-18 04:58:02 +08:00
Dylan M. Taylor 0ac2de5255 Deduplicate JUMP destination resolution in the payability walkers 2026-11-17 15:49:47 -05:00
Dylan M. Taylor 1d5255e07f vectordrawable: bound configurable XML depth with iterative writing 2026-11-17 15:48:26 -05:00
aiongg 04d32b745e nextest: drop the craft-ui GPU group; next's craft-ui has no visual_regression binary and its nextest-run tests create no GPU device 2026-11-17 20:43:00 +00:00
aiongg 76ea2fb7ad gitattributes: the components index keeps LF line endings on every checkout 2026-11-17 20:39:27 +00:00
aiongg 0c53094f03 ci(print): the test build runs before the 10-minute limit on the test run 2026-11-17 20:37:44 +00:00
Terra854 6413cbb806 Guard SVG JPEG validation on panic-abort builds 2026-11-18 04:34:32 +08:00
aiongg d193553451 platform: the macOS clipboard check compares the pasteboard's type identifiers without unsafe 2026-11-17 20:34:19 +00:00
aiongg 9c9d12e4e3 docpath: the link-status test uses a path that is absolute on Windows too 2026-11-17 20:19:49 +00: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 dca128d42f harfbuzz-subset-sys at 639cb004d: builds with /bigobj under MSVC 2026-11-17 20:15:10 +00:00
David Mann c78c49e2f7 Menus: collect the Help search's commands only while Help shows; shown chords without allocating
Two costs every frame paid, found in a profile of PhotoCraft on the
framework (storytold/photocraft#15493):

- `MenuBarUi::show` collected the Help search's entries (every row of
  every menu, with English labels) on every pass whenever the bar had a
  Help menu, open or not. `MenuHelp::built` takes a builder the bar runs
  only in a pass that shows the Help menu; `MenuHelp::new` keeps taking a
  ready list.
- `Keymap::shown_chord`, which every menu row, tooltip and button asks
  each pass, built the command's key string for every `find` and ran a
  full `lookup` per binding, cloning the winning commands only to look
  their keys up again. `find` now looks up a command without parameters
  by its id, and `press_runs` decides on catalog positions. Answers are
  unchanged; a new test covers tools sharing a chord (a cycle within a
  group, the first of two groups), which no test covered.

Measured in PhotoCraft (Windows 11, idle machine, three runs, together
with PhotoCraft's own storytold/photocraft#15496): UI pass with a pointer
over the canvas 8.7-11.3 ms -> 4.9-5.0 ms, during a menu hover
9.2-10.2 ms -> 6.7-7.1 ms.

Part of storytold/photocraft#15493.
2026-11-17 21:04:10 +01:00
Terra854 408ab93329 Preserve SVG siblings and share embedded-image validation 2026-11-18 04:01:51 +08:00
aiongg 3b0164c312 menu: the AppKit test passes each document's command as a str 2026-11-17 19:55:49 +00:00
Dylan M. Taylor 8d5c939e20 psd: use fixed-size guide chunks for strict clippy 2026-11-17 14:46:32 -05:00
Martin BallandClaude Sonnet 5.5 93dac78c93 craft-image-codecs: wrap a clipboard DIB as a BMP (dib_to_bmp, dib_layout) (#2062)
* image-codecs: wrap a clipboard DIB as a BMP (#778)

Add bmp_probe::dib_to_bmp (prepend the 14-byte file header, pixel offset
from the header with saturating arithmetic, try_reserve for the output)
and bmp_probe::dib_layout (V4/V5 alpha-mask BI_RGB becomes BI_BITFIELDS,
mask copy after the header). Both are ported from WordCraft's
crates/geom/src/picture.rs so it can drop its local copies. Tests compare
byte-for-byte with the originals over crafted DIBs and every prefix, and
decode wrapped results.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* image-codecs: fix DIB offsets for V2/V3 bitfields and ambiguous mask copies (#778)

- dib_to_bmp no longer adds 12 appended-mask bytes to the pixel offset for 52- and
  56-byte BI_BITFIELDS headers, which carry their masks inside the header; the
  decoder reads the pixels at bfOffBits, so the offset was 12 bytes too far.
- dib_layout treats 12 bytes after the header that equal the masks as an existing
  copy only when more bytes follow than the pixels need, so an exact-length DIB
  whose pixels equal the masks gets its copy inserted.
- dib_layout reserves the 12 bytes before changing compression or masks, so a
  failed reservation returns the DIB unchanged; the mask bytes are a [u8; 12]
  array, not a heap copy.

The differential tests against the WordCraft originals now exclude exactly the
52/56-byte bitfields offset and the exact-length payload cases, and assert the new
behaviour for them.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:45:56 -05:00
Martin BallandClaude Sonnet 5.5 3e82d1719c craft-mcp-server: options for apps that report argument errors as tool results (#2061)
* craft-mcp-server: options for apps that report argument errors as tool results (#778)

Add `Options` (default = today's behaviour) and `Server::with_options`:

- `website_url`: sent as `serverInfo.websiteUrl` at `initialize`.
- `tool_errors_as_results`: a `tools/call` whose arguments fail the schema check, or whose tool
  is unknown, returns a tool result with `isError: true` and the message as text, not -32602.
- `strict_request_ids`: a request id that is not a string or number gets -32600 with a null id.

`Info` is unchanged, so existing struct-literal callers still compile. Tests cover each option on
and off, and hostile input with all options on.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* craft-mcp-server: strict request ids also apply to the missing-method error (#778)

With strict_request_ids, a message without `method` echoed an object, array or
bool id in its -32600 reply. It now answers with a null id for any id that is
not a string or number, as the later strict check does. Valid ids, absent ids
and incoming responses behave as before.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 14:45:52 -05:00
aiongg bb56cb044f NumberField story: the unit-after row's Field holds only the field, the unit follows it 2026-11-17 19:39:34 +00:00
aiongg 12dfe2c497 Fix macOS gate: docs, Linux-only test helpers, NSGraphicsContext feature for AppKit event tests 2026-11-17 19:34:21 +00:00
Dylan M. Taylor deda581e53 Merge remote-tracking branch 'upstream/main' into review-2070
# Conflicts:
#	Cargo.toml
2026-11-17 14:29:26 -05:00