50 Commits
Author SHA1 Message Date
David MannandClaude Opus 5.5 6604a4cec8 Move craft-libs to storytold next a165ef3a2c and egui to b15ffe9bf (own-window dialogs move and resize, storytold/craft-libs#3476)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 15:09:15 +01:00
David MannandClaude Opus 5.5 2f9362d241 Move craft-libs to storytold next 3656e8aaa4 (dock-gap fixes, storytold/craft-libs#3383, #3360, #3058, #3086, #3212)
On that pin DockAreaOutput.window_files is grouped per window; the files dropped on a floating panel's window are
flattened before they open (as aiongg/photocraft@54911df7f5).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 03:11:59 +01:00
David MannandClaude Opus 5.5 39f8ba661d Move craft-libs to storytold next a3174010b7 (font-manager builds for wasm again, storytold/craft-libs#3399)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-25 01:45:04 +01:00
David MannandClaude Opus 5.5 a2a757a997 Move craft-libs to storytold next c6a4484bca and egui to a87d00caa (storytold/craft-libs#3357)
craft-libs next now names egui a87d00caa in craft::egui_fork::REV, so the egui-fork gate passes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 21:20:21 +01:00
David MannandClaude Opus 5.5 87c83781ea Move craft-libs to storytold next a4db799563 (own-window dialogs keep their size, task bar keeps its controls)
Brings storytold/craft-libs#3269 (#16595) and storytold/craft-libs#3343 (#16657).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-24 20:42:16 +01:00
aiongg 218d0780fe Move craft-libs to storytold next 7762aab37b, which carries every release fix 2026-11-24 14:56:42 +00:00
aiongg 50b2584dcc Move craft-libs to rc-integration 3e5f0cbdbc (adds the memo view fill fix from craft-libs#3319: the title bar spans the window again) 2026-11-24 13:32:25 +00:00
aiongg 0a453eb6f7 Move craft-libs to rc-integration df7df7c663 (next 3238a3eca8 with the release fixes and craft-libs#3319) 2026-11-24 07:36:31 +00:00
aiongg 135a6b342f Move craft-libs to next
Pin craft-libs to the rc-integration branch and egui to the AccessKit-per-viewport branch, and follow the framework's API changes: swatch paints and the Registration kind, save answers as Picked::Saved, the Save for Web colour table as host-held shifts, Done in Save for Web, colour requests through StackDialog, zoom schemes, wheel schemes, glyph cells, face paints, preset selections, the print destination, and the command palette's search index.
2026-11-24 05:46:22 +00:00
Dylan M. Taylor 97daf92f58 Merge PhotoCraft main for live font updates
Resolve the manifest and lockfile by using canonical craft-libs next for the live font stack while preserving main’s Camera Raw dependency pins.
2026-11-23 07:05:53 -05:00
aiongg 280de1fbf2 Pin craft-libs at 7ab3cf8196 (a rescan with no changes keeps the catalog generation) 2026-11-23 02:43:24 +00:00
aiongg cc716aa8ea Pin craft-libs at bb7e01295d (a row pick of the current family adds no edit) 2026-11-22 23:58:23 +00:00
aiongg 7e3a68e867 Pin craft-libs next 8d436f486a: font picker keys, sample text 2026-11-22 20:18:14 +00:00
aiongg 2fbdb300e3 Merge main into set-d-pin 2026-11-22 20:18:14 +00:00
aiongg 0bcffd2391 Merge PhotoCraft main; pin craft-libs at 20574f0ed4 (next 8d436f486a) 2026-11-22 20:07:39 +00:00
aiongg 5823239d3f Pin craft-libs at c57fac1215 (font live updates on next 27e5af8151) 2026-11-22 18:20:40 +00:00
aiongg d94ff170de Merge upstream main; pin craft-libs at 31ea44ee (next with the PhotoCraft font menu port and the live font catalog) 2026-11-22 16:32:01 +00:00
aiongg 85a201b7fb Pin craft-libs next 315a223e69: native window to the runtime, font picker tests
embed::before_ui takes the native window, so on Windows the runtime answers the
window's hit test and resize starts at the press (craft-libs#2995). It also fits
a window bigger than its display once, which replaces work_area::fit_window.
Adds the font picker tests for craft-libs#3010: typed keys stay in the search,
and hover previews without a history step.
2026-11-22 15:38:16 +00:00
aiongg 90e393ea85 Merge upstream main; pin craft-libs at ce643eb0 (next with the live font catalog and picker fixes) 2026-11-22 14:00:06 +00:00
David MannandClaude Opus 5.5 feb746d18b Merge main 6e0e587d96 and repin craft-libs to next e953d47a3, egui to f5025284
next now carries storytold/craft-libs#2977 and #2978. craft-develop stays
at main's craft-libs rev c42c34bfa, which is not on next.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-22 12:39:22 +01:00
aiongg d03b045939 Pick a family installed while the font menu is open on the first click
Pins craft-libs at 77ec2f3d (craft-libs#2781 with craft-libs#3006) and the egui fork at f5025284, the revision craft-libs next uses.
2026-11-22 06:22:58 +00:00
aiongg 9c81e31868 Merge upstream main; pin craft-libs at eefb3a73 (next with the live font catalog) 2026-11-22 05:39:30 +00:00
David MannandClaude Opus 5.5 69252058d7 Repin craft-libs to next cec6d87ff and egui to 72cb386ac
Brings storytold/craft-libs#2919 (layer eye stays empty, #16321),
#2929 (About tab spacing, #16325), #2931 (Space after an Alt tap,
#16327), #2932 (scroll bar range and drag, #16328, #16329), #2934
(grip ticks and the toolbar grip, #16332, #16333) and #2939 (About
stays inside the window, #16326).

The Overscroll scroll bar test follows the new range: the document
plus, on each side, the visible length less 100 screen points.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-22 01:51:55 +01:00
David MannandClaude Opus 5.5 ef6b794a24 Repin craft-libs next at 77c7c623; panel bodies replay on a hover; versions follow review (#16145)
craft-libs 77c7c623 brings storytold/craft-libs#2830 (#2812: panels and
widgets read the modifiers, not the pointer frame) and #2860
(RasterDisplay::region_fill). With it a canvas hover replays every
panel body, and the hover trial now requires that.

Versions, from the review:
- every version holds the preferences' revision: Preferences' Apply and
  OK and other prefs writers run no counted command (units on the
  options bar and Info panel);
- the Navigator's version holds the adjustment preview its picture
  shows, as the Histogram's does;
- the Histogram's version holds when its histograms landed, since the
  worker lands them with no command or revision;
- the options bar's version holds whether a canvas gesture runs (the
  symmetry menu's Transform entry);
- Home counts as the Properties panel not shown, so its Reset session
  starts anew after a Home visit.

The chrome trials look at the whole frame (a view that ran in a
discarded pass and replayed in the last counts as run); the language
check counts the tab rows frame-wide, since the new titles take a
second pass.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-21 18:39:00 +01:00
aiongg 4ab5a61f2f Merge upstream main; pin craft-libs at cb684d02 (next with the live font catalog) 2026-11-21 16:33:25 +00:00
aiongg 4a5555bdcb Pin craft-libs next 7d8b961515 (craft-libs#2756) 2026-11-21 14:11:22 +00:00
David MannandClaude Opus 5.5 0203c5865d Repin craft-libs next at 2946b2041
Brings in storytold/craft-libs#2758 (New Document: Background Contents
before the advanced fields, the save-preset icon on the Name row, section
captions), #2762, #2767, #2770, #2729, #2785 and #2569.

previews, stroke trails and Object Finder hover masks now take a Serials.
The app holds one (texture_serials) for all of them, since a preview of one
name is made in several places (a transform begins in one, re-renders in
another). The Object Finder job sends the region only; its mask is made on
the UI thread, as a cache hit's already is.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-21 14:10:27 +00:00
aiongg 44205e94de Pin craft-libs at db702f98 for live font catalog updates 2026-11-21 06:17:49 +00:00
aiongg f454882458 Pin craft-libs 683fe0603: photocraft-doc holds LayerId as plain data without the UI
craft-layers keys tree ids by their Hash (craft-libs#2774), so photocraft-doc depends on craft-tracked and craft-ui-macros instead of craft's ui feature, and the layering check passes.
2026-11-21 04:34:23 +00:00
aiongg cfa1d0e7cf Pin craft-libs next 614f4d5f1
The dock keeps an Arc<Workspace> and a Tracked spec model, the toolbar rail
takes Tracked slots, the Layers panel holds its rows as plain data in a
Tracked, and the menu bar is a Tracked model keyed for the native menu's
sync. PhotoCraft states the Creative component set. Export As lists its
resample methods, and layer.exportAs describes them, in the engine's order.

Part of #15476
2026-11-21 03:55:47 +00:00
David Mann 3bd0223b13 Pin craft-libs next at 50e00dd49 with the default agent folder
next now has storytold/craft-libs#2550 (the default agent folder and the
agent_folders answer), #2612 (snap targets reach past their spans), #2631
(scroll bar arrows take no keyboard focus) and #2634 (Enter in the hex
field confirms).

- next vendors vello_common and vello_cpu for hayro; the patch section
  follows it.
- craft_pdf::raster::Options gained max_coverage; the PDF importer keeps
  craft-pdf's default (None).
- storytold/craft-libs#2363 gates a component's story-suite registration
  on its crate's own `suite` feature and emits it ungated without one,
  which needs craft's test kit in every build. ui-egui declares `suite`
  (off): PhotoCraft runs no craft story suite.
2026-11-20 22:47:44 +01:00
David Mann 0f92ab7b1a Pin craft-libs next at e94e82dc8 and move to memoized views
craft-libs next merged storytold/craft-libs#2533: memoized views replace
the settling regions. The app follows it:
- the shell slots, the dock chrome, the panels and the tool rail no
  longer take content versions (the framework memoizes them), so the
  region versions and their trial go, with the keys that only fed them;
- Tool is MemoProps, as the tool rail's props;
- the menu bar's English-name hook is a capture-free function, reading
  the names the bar's model published;
- request_own_repaint is request_repaint;
- the drag trials count replayed memoized views.

Snap targets reach past their spans (reach_past_spans), as layer edges do
in the reference application; this needs storytold/craft-libs#2612.
2026-11-20 19:47:00 +01:00
David Mann eaf864e3c9 Pin craft-libs next at 62189858a for the Home screen rail
Moves every craft-libs dependency to storytold/craft-libs next 62189858a
and egui to the fork rev that next pins (6525c879). This brings
craft-libs#2424 (Home screen rail and empty-state card) and the Home
screen spacing fix.

Call sites follow the new craft-libs API: Picked gained Failed and
Downloaded (a failed save keeps its message, a browser download counts
as nothing chosen, as the app writes its own saves), SettingsDocument's
apply is the PreferencesDraft trait method, and the control channel's
document map takes the page index (one page per document).
2026-11-20 17:36:12 +01:00
aiongg 01ffcd522b Pin craft-libs next with the drag fixes; whole-app drag trial 2026-11-20 06:04:34 +00:00
aiongg 8a145e90a0 Pin craft-libs next with the submenu, overlay and clipboard fixes 2026-11-20 04:25:56 +00:00
aiongg 254b570f14 Pin craft-libs next
Every craft-libs git dependency (craft-psd, craft-svg and craft-ipp included) and the vendored
hayro, krilla and linesweeper patches take one rev, and egui follows the rev craft-libs next pins.
2026-11-20 03:47:57 +00:00
dotCooCoo a89a4faa49 IPP: the re-export crate keeps the never-crash lints
#15684 replaced crates/ipp/src/lib.rs with a re-export of craft_ipp and
dropped the crate's forbid(unsafe_code) and never-crash deny lines. The
scorecard counts that attribute on every crate root, so docs/scorecard.md
went stale on main and `scorecard::tests::staleness_check_and_determinism`
and the lint job's `scorecard` step fail on every pull request.

This puts the two lines back, so the scorecard reads 25 of 25 again and
matches the committed docs/scorecard.md.
2026-11-18 17:09:06 -08:00
Dylan M. Taylor 8bd642b27b chore(ipp): use craft-ipp from craft-libs (#15684) 2026-11-18 19:08:37 -05:00
Dylan M. Taylor f960a65eb3 ipp: resume the reply's header search where the last read stopped (#11049)
read_response searched every byte read so far for the blank line after
each read, so a server trickling a 16 MiB reply in tiny fragments made
the client rescan it once per fragment. Resume the search three bytes
before the previous end.
2026-11-03 20:31:14 -05:00
Roni BalthazarandBrandon Thomas 3a870ca3ce fix(ipp): preserve printer group metadata (#8828)
Co-authored-by: Brandon Thomas <[email protected]>
2026-10-23 17:55:05 -04:00
Dylan M. Taylor 93e605a2e9 security(ipp): total reply deadline; resumable chunk walk 2026-10-23 14:41:49 -04:00
aiongg 934eb71d84 Integration: merge main
crates/engine/src/file_cmds.rs: batch keeps the save-point closure (takes the output path) and also copies the session's authorize hook into each scratch session, as main now does.
crates/raw/src/sensor.rs: both sides cap the memory of retained tiles; kept the existing retained_segment_bytes check (checked multiplication, same limit) and dropped main's duplicate inline loop.
2026-10-22 15:39:51 +00:00
Dylan M. Taylor c3c6c63074 security: encode printer names in IPP request paths 2026-10-22 07:12:25 -04:00
aiongg 11b1594050 Merge PR #7835: Print: the no-listener test takes a port the OS says is free, not port 1 2026-10-22 02:23:02 +00:00
Codex 82a1f54cc8 Print: the no-listener case refuses through a seam instead of a port it hopes is free
The released-port version only proved the port was unused a moment earlier. Between
drop(free) and the connect, another process can be handed that exact ephemeral port,
and the case then reports a protocol error or blocks instead of Unreachable - the
same flake this branch was meant to remove, just quieter.

connect() now goes through open_tcp(host, port, addr, open), a private helper that
takes the connect call as a parameter. The refusal test decides what is closed, so it
owns no port: it asserts Unreachable, that the message names the endpoint, and that
the reason the connect failed survives. The end-to-end "nobody reachable" case now
names a host that can never resolve (RFC 2606) rather than a port nobody owns.

Fake-server protocol tests are unchanged, and no public injection point or dependency
was added.
2026-10-19 18:28:44 -07:00
Codex c06a7384a5 Print: a scoped IPv6 endpoint escapes its zone id in the request authority
`CUPS_SERVER=fe80::1%3:631` parses as `Tcp("fe80::1%3", 631)`, and host() wrote `[fe80::1%3]:631` into the HTTP `Host:` header and into the `ipp://` printer-uri. A bare "%" is not valid inside an authority - RFC 3986 section 3.2.2 reserves "%" for escaping - so a strict HTTP/1.1 server can answer 400 and the printer-uri is not a readable URI.

The zone is now written "%25"-escaped for the wire and kept raw for the socket, which is the only place a scope means anything (measured on Windows: `("fe80::1%3", 631).to_socket_addrs()` gives `[fe80::1%3]:631`).

The two reviews disagreed about the form. Codex-cloud (fork #68) cited RFC 6874; CodeRabbit here pointed out that RFC 9844 (Aug 2025) obsoletes RFC 6874 and suggested dropping the zone from the authority. Dropping it was considered and not taken: it would send `Host: [fe80::1]:631` and `ipp://[fe80::1]:631/...` for a server reached at `fe80::1%3`, naming a different and ambiguous link-local host from the one the socket opened to, and it would rewrite the printer-uri a queued printer is registered under. The escaped form is what CUPS, curl and the ipp:// URIs CUPS writes use, and current URL libraries (yarl) still read "%25" as the URI form of a zone while rejecting a bare "%".

Regressions: numeric zone ids in both authority forms, an interface-name zone, the raw host after parse, and the unchanged IPv6/IPv4/hostname authorities. The printer-uri assertion no longer echoes host() back, so it pins the authority the fake server receives. Reverting the escape fails the new assertion (checked).

Platform limit, unchanged by this commit: an interface-name zone (`fe80::1%eth0`) does not resolve on Windows (getaddrinfo 11001), so only numeric scope ids are usable there, and the client reports that as `Error::Unreachable`.

cargo test on a standalone copy of the crate: 11 passed / 0 failed; cargo clippy --all-targets -- -D warnings and cargo fmt --check clean.
2026-10-19 18:18:55 -07:00
Codex 909e1cdd84 Print: an IPv6 endpoint writes its authority in brackets, and a mistyped one stays unreachable
Codex-cloud's review of this fix found two more places where an IPv6 print server did not work.

host() feeds the Host: header and the ipp:// printer-uri, and it wrote the endpoint the way it is stored: "::1:631". The last colon reads as the port separator, so CUPS got a malformed authority and a malformed printer-uri even though detect() could now connect. An IPv6 host is bracketed there, and in Display, which is what the user is shown; to_socket_addrs still gets the bare address, which is what it needs.

A bracketed endpoint with anything else after the bracket - "[::1]:abc", "[::1]:70000", "[::1]junk" - fell back to the default port, so a mistyped CUPS_SERVER was accepted whenever something answered on 631 and jobs went to an endpoint nobody configured. The whole string now stays the host: it cannot resolve, so detect() reports it unreachable.

Tests: an_ipv6_endpoint_writes_its_authority_in_brackets, and three mistyped endpoints in the parse test. Both fail before this commit and pass after. photocraft-ipp 11 passed / 0 failed; clippy --all-targets -- -D warnings and fmt --check clean.
2026-10-19 12:13:08 -07:00
Codex 094bb727d3 Print: the no-listener test takes a port the OS says is free, not port 1
The last case of error_statuses_and_broken_replies_are_errors called printers(&Endpoint::Tcp("127.0.0.1", 1)) and expected Error::Unreachable. No port is guaranteed closed: on a FreeBSD CI VM something accepted on port 1 and reset the connection, so the client got as far as sending and the test failed with "print server reply: sending: Broken pipe (os error 32)" instead.

Bind 127.0.0.1:0, read its port and drop the listener, so the case uses a port the OS has just released, and keep the assertion. The fake() helper in the same file already takes its port that way.

A held port really does read differently, which is why the old case asserted a property of the machine rather than of the client: against a listener that accepts and closes immediately, printers() returns "print server reply: reading: An existing connection was forcibly closed by the remote host. (os error 10054)" on Windows, not Error::Unreachable.

cargo test -p photocraft-ipp: 9 passed / 0 failed, the changed test five runs in a row; clippy --all-targets -- -D warnings and cargo fmt --check clean.
2026-10-19 11:38:08 -07:00
Codex ababe94f23 Print: an IPv6 print server is parsed as a host, not split on its last colon
Endpoint::parse split the server string on its last ':', which is wrong for an IPv6 literal: "::1" became host ":" on port 1, and "[::1]:631" kept its brackets inside the host, which to_socket_addrs cannot resolve on Linux or macOS. An IPv6 CUPS endpoint was therefore always refused by detect(), even when CUPS was listening on it.

A bracketed server now takes its host from inside the brackets and its port from after them. A bare address with more than one ':' is the host with the default port, because its last ':' cannot be told apart from a port separator; a zone id (fe80::1%eth0) carries no ':', so a port can still follow it. host:port, a bare host and a socket path are unchanged.

Test: "::1", "[::1]", "[::1]:631", "[fe80::1]:6310", "fe80::1%eth0:631", and the cases that already worked. Fail before, pass after.
2026-10-19 11:22:33 -07:00
Diego Chagas 235e7578f3 Print through CUPS over IPP and the print portal, so File › Print works in the Flatpak (#2728) (#3017)
Main prints through craft-print, which runs `lp`; a Flatpak has no `lp`,
so File › Print fails there. This keeps craft-print as the route wherever
`lp` is on the path (and on Windows) and adds two more behind it:

- `photocraft-ipp`, a pure-Rust IPP client (CUPS-Get-Printers/Classes/
  Default, Print-Job over HTTP/1.1) that talks to CUPS over its socket or
  TCP; the Flatpak manifests grant --socket=cups for it. A `printServer`
  named in the request always takes this route. `file.print.printers`
  lists the queues.
- The XDG Print portal as the app's spooler (`Session::print_spooler`),
  for a sandbox without the CUPS socket or a system without a printer:
  the system print dialog, seeded with copies, paper and orientation.
  PHOTOCRAFT_PRINT_PORTAL=1 prefers it, =0 removes it.

A route that exists but fails (unknown printer, refused job) is an error;
only a missing route moves on. Results gain `backend` (lp, windows, ipp,
portal). docs/printing.md describes the routes.
2026-10-17 15:55:54 -06:00