344 Commits

Author SHA1 Message Date
FredApps 69aad40e2f Merge remote-tracking branch 'origin/main' into pr-1105
# Conflicts:
#	apps/designcraft-web/Cargo.toml
#	apps/designcraft-web/src/main.rs
2026-11-26 22:17:33 +07:00
FredApps 1c4c3a489e Web: a preferences write that failed is retried at the next check, even when idle
After a failed set_item (or no local storage) the next check is scheduled with
request_repaint_after, so an idle app retries without waiting for input.
Test: a_failed_write_is_retried_at_the_next_check_without_input. Answers CodeRabbit.
2026-11-26 21:24:27 +07:00
FredApps bca70a9a29 Merge main into save-format (open_idml now goes through import_interchange: the IDML document path comes from its package) 2026-11-26 21:24:27 +07:00
FredApps ccaf94825f Merge main into web relink (Relink to Folder: main's folder picker on the desktop, the browser's file picker on the web) 2026-11-26 21:04:50 +07:00
skylar taylor-barrick 8ac8028d79 Nightly: stop blocking a refused launch on macOS (#3255)
Nightly launch fix under Skylar's Exec 454: the Launcher's trailing `--` no longer reaches the file list where that applied, and a refused launch no longer blocks on macOS (the reason goes to stderr and the app exits 2).
2026-11-26 00:46:24 -06:00
Dylan M. Taylor cdd650ccdd packaging(linux): support co-installable nightly packages (#3206)
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-24 19:16:55 -06:00
aiongg 706560d10c Merge pull request #2796 from aiongg/open-background
Open: read and parse documents off the UI thread
2026-11-21 00:39:04 -05:00
FredApps 8476695101 Merge branch 'main' into web-relink 2026-11-18 17:43:23 +07:00
FredApps 262425126f Merge branch 'main' into save-format 2026-11-18 17:43:18 +07:00
Dylan M. Taylor 278aba4a14 Merge pull request #1482 from Hamza0101/test/cli-argument-surface
cli: pin the argument surface, and fix the argument bugs pinning it found (photocraft#7071)
2026-11-15 18:49:03 -05:00
Mex 2a11a280f6 cli: report an empty benchmark layout instead of panicking (#2839)
* cli: report an empty benchmark layout instead of panicking

Return a clear error before benchmark work starts when the document contains no spreads.

* test: report a benchmark error for documents with no spreads

Create a structurally valid round-tripped document with no spreads and require bench to exit 1 with the clear error.
2026-11-15 15:39:38 +00:00
Mex ca463bab52 cli: report failures after keep-going scripts (#2836)
* cli: report failures after keep-going scripts

Keep executing requested steps while retaining the first failure in Report, so failed scripts return nonzero before save/export.

* docs: describe first script failure in Report

Describe the first failing step without assuming all callers stop immediately.

* test: cover keep-going failure reporting and output guards

Exercise failures before and after a successful step, preserve the first failure, and require both output paths to remain absent.
2026-11-15 14:59:06 +00:00
jayzed80 b2518507b5 shortcuts: run Option shortcuts on character keys in the app, not the macOS menu bar (#2710) (#2818)
Option, with or without Shift, on a letter, digit, symbol or Space types a
character on macOS, so the window takes the key before the menu bar sees
it. The bar carried such a user shortcut as its key equivalent and the
window's dispatcher left the key to the bar, so the shortcut ran nowhere.
These shortcuts now stay in the app, like modifier-less ones.
2026-11-15 07:26:31 +00:00
Claude 7b8ce2b15d Merge upstream/main into save-format
Saves: main's linked storage (links worked out for the destination,
proxies made, linked bytes let go after) applies to an IDML save too;
only the bytes differ (bytes_for_path), and the IDML export's warnings
join the save's. file.saveACopy is main's file_save_a_copy, writing IDML
for a .idml path with allowLoss as before. idml_bytes returns the
export's warnings (export_idml_report).
UI: the IDML loss question comes first; a save that goes ahead then
waits for the link checks like any other (save_when_checked).
with_save_extension is now used by every save, on the web too.
2026-11-14 22:10:51 +00:00
Claude 325cbf9828 Merge upstream/main into web-relink
links.rs: relinked_asset follows main's link model (give_bytes with the
file read); a file handed over by the browser becomes the document's own
copy, keeping the link record when its name matches the link.
links.relinkFiles finds missing graphics with image_status and clears
the link checks after relinking, as links.relink does.
app/files.rs: relink_from_inbox runs before main's import_delivered; a
dropped image now goes to the place cursor, and the test says so.
2026-11-14 18:15:29 +00:00
aiongg 95df9ebc4a Open: read and parse documents off the UI thread 2026-11-14 14:31:43 +00:00
aiongg b6952941b3 Web: show a status line when a dropped file can't be read 2026-11-14 06:11:51 +00:00
aiongg 62f70cc03c Merge branch 'pr-2309' into multi-place 2026-11-14 05:49:14 +00:00
aiongg 2ee301bd4b Merge pr-2302 (place cursor queue) into multi-place 2026-11-14 05:49:14 +00:00
aiongg 55a0c7da3d DES-10 T2: port asset byte users to AssetData
Export, import, links, preflight, alpha wrap and the UI read bytes with
AssetData::load; every asset is still embedded.
2026-11-14 05:15:03 +00:00
Dylan M. Taylor 32274e843a Merge codex/designcraft-craft-libs into origin/main: cut over document formats and codecs to craft-libs 2026-11-14 02:13:28 +00:00
Dylan M. Taylor 32c239cacc Use shared image codecs for CLI previews 2026-11-13 01:59:00 -05:00
Dylan M. Taylor 44fd4aec60 Route CLI format dispatch through shared registry 2026-11-13 01:42:51 -05:00
dotCooCoo 630b5dfc43 Paste: images on the system clipboard paste as embedded images (#2204)
Paste ignored a bitmap on the system clipboard: a screenshot or an image
copied in a browser had to be saved and placed. Paste now places it.

- edit.pasteImage {base64, name?, spread?, at?} embeds the image in the
  selected empty frame, or in a new frame centered on `at` at its stored
  resolution (72 ppi when none) and at most 60% of the page width, as
  File > Place sizes it. Save and reopen and IDML export keep the pixels.
  Images over 64 million pixels and names without an image extension are
  refused.
- Ctrl/Cmd+V pastes the image egui delivers with no text, and Edit >
  Paste reads the clipboard's bitmap, or the first image file of a copied
  file list, when there is no text or the text is only an address.
- The menu read waits at most 1.5 s on its own thread, with one read in
  flight at a time.
- With a native menu, objects copied here still paste as objects until
  the pasteboard's change count shows a newer copy.
- ui.paste takes {image} for the control channel.
2026-11-11 20:50:24 -08:00
texjer 39d8469b1f Merge remote-tracking branch 'upstream/main' into HEAD
# Conflicts:
#	crates/engine/src/cmd/file/place.rs
2026-11-10 18:29:09 -05:00
texjer 969eaa0aaf Merge remote-tracking branch 'upstream/main' into HEAD
# Conflicts:
#	crates/ui-egui/src/app/files.rs
#	crates/ui-egui/src/tests.rs
2026-11-09 13:51:45 -05:00
Claude bfc4777d8b Web relink: comments no longer say drops relink 2026-11-09 00:40:18 +00:00
Claude 57100101f0 Web relink: address review (drops no longer relink, the journal keeps the files, unreadable files reported, the picker's listener released, desktop names as before)
- Dropping an image places it as before; relinking from a drop is left for its own change. The web host's drop handling is main's again.
- links.relinkFiles is journaled with its files' bytes, as file.place {base64} is, so the entry replays; journal_params is gone.
- In a folder relink, a matching file that can't be read is reported under failed and leaves its graphic missing; the others relink. The status names the unread files. One chosen file still errors.
- The folder picker's change/cancel listener belongs to the call and is removed when the picker settles (no forget()).
- Relink and Update name the graphic with Path::file_name, as main does; only a link kept from the file splits on either separator.
2026-11-08 21:27:06 +00:00
aiongg 49f6b85cb9 Merge pull request #2037 from r31lin/fix/gpu-largest-buffer
Ask the graphics device for the adapter's largest buffer
2026-11-08 16:10:35 -05:00
Claude 904e548556 Merge remote-tracking branch 'upstream/main' into web-relink
# Conflicts:
#	crates/engine/src/cmd/links.rs
2026-11-08 20:43:03 +00:00
Claude 015faa15cd Merge remote-tracking branch 'upstream/main' into save-format
# Conflicts:
#	crates/ui-egui/src/dialogs.rs
2026-11-08 00:12:29 +00:00
texjer 37cbfceaaa Merge remote-tracking branch 'upstream/main' into feat/drop-loads-place-cursor
# Conflicts:
#	crates/ui-egui/src/app/file_dialogs.rs
2026-11-05 11:59:37 -05:00
texjer aca5c8b84a Merge remote-tracking branch 'upstream/main' into feat/place-cursor-queue
# Conflicts:
#	crates/ui-egui/src/app/file_dialogs.rs
2026-11-05 11:59:37 -05:00
.CooCoo e16785ea50 Fix CLI build warnings on Windows (#2356) 2026-11-05 09:53:17 -05:00
Hamza 20caa95c49 Merge remote-tracking branch 'origin/main' into test/cli-argument-surface
#1478 brought its argument fixes and their tests to main, in their reviewed form: main's is_subcommand/usage_for, values_present and the two tests are kept, and the branch's earlier copies are dropped. What this branch adds on top stays: the argument-surface tests in tests/it/args.rs and perf's --frames/--chars/--images in the usage.
2026-11-05 14:56:20 +05:00
texjer b458bec4c5 Merge branch 'feat/place-cursor-queue' into feat/drop-loads-place-cursor
# Conflicts:
#	ROADMAP.md
#	crates/ui-egui/src/app/files.rs
2026-11-04 19:56:22 -05:00
texjer ad611c1b6f Merge remote-tracking branch 'upstream/main' into feat/place-cursor-queue
# Conflicts:
#	ROADMAP.md
2026-11-04 19:03:47 -05:00
texjer 93f18aa086 Merge branch 'feat/finder-drop-pointer' into feat/drop-loads-place-cursor
# Conflicts:
#	crates/ui-egui/src/app/input.rs
2026-11-04 13:20:02 -05:00
texjer f02e13318b Place: a drop without pointer events keeps the system pointer of its own input
Review fixes for #2304:
- Each pointer-less drop asks the system where the pointer is when its raw input arrives, and
  converts it with that input's window rect and the UI scale, instead of one sample taken at the
  later UI pass for the whole batch. Drops with pointer events keep their own pointer, and the
  system is still only asked when a drop brought none.
- system_pointer is cfg'd off on wasm with its only caller; Services::pointer's docs say a drop
  without a pointer lands in the middle of the view.
- pointer.rs: the AppKit flip is a pure function with a test, documenting why it flips against
  the main display only (winit's window positions use the same origin).
- Test: a filled compound path takes a dropped image through its ring, not its hole.
2026-11-04 12:06:17 -05:00
aiongg fb630909c4 Merge pull request #2304 from texjer/feat/finder-drop-pointer
Place: a file dragged in from the Finder fills the frame it was dropped on
2026-11-04 11:19:45 -05:00
Hamza ea39c914d2 cli: a missing value stops the line before any export, help wins as a value, and every subcommand's usage lists its options 2026-11-04 13:22:23 +05:00
texjer a10e288a58 Place: dropped images load the place cursor, in the order they came
Split out of #2073. Port of #1307's drops and #1666.

- Several images dropped together load the place cursor in the order they
  came, each run of them where it comes among the other files, after the
  images it already holds; click to place them one by one.
- One image dropped off a frame that takes it loads the place cursor instead
  of being placed at once; on such a frame it still fills it.
- A drop is handled in its order, each file at its own pointer, and a dialog
  (a multi-page PDF's Import Options, an alert) cancels the rest.
- On the web, files dropped together are read as one batch (none if one
  can't be read), and a single dropped image loads the place cursor.
2026-11-03 23:05:47 -05:00
Dylan M. Taylor c4ed9b2210 fix: write screenshots, signing certificates and benchmark files in private temp folders (#2219) 2026-11-03 22:16:28 -05:00
Dylan M. Taylor bcc74f29c9 fix(app): log message line breaks continue the record instead of starting another (#2220) 2026-11-03 22:16:06 -05:00
texjer 4d34f83926 Merge branch 'feat/finder-drop-pointer' into feat/drop-loads-place-cursor
# Conflicts:
#	ROADMAP.md
2026-11-03 21:50:19 -05:00
texjer 8815ef7350 Place: a file dragged in from the Finder fills the frame it was dropped on
Split out of #2073. winit sends no pointer events during a drag from another
application on macOS, so a Finder drop had no pointer and never found the frame
under it. The host now gives the pointer's place on the screen
(`Services::pointer`, `PointerFn`: the system's points before the UI scale,
from `NSEvent.mouseLocation`), and `take_pending_drops` uses it for the files
that came without a pointer, divided by egui's zoom factor and made relative
to the window.
2026-11-03 21:50:08 -05:00
texjer d890289a92 Place: several images load the place cursor, with a thumbnail, count and grid
Split out of #2073. Port of #1307, #1392 (grid) and #1432 (thumbnail and count).

- File › Place takes several files; images load the place cursor in the
  order chosen (`place.load` `files`, `append`), after the ones it holds.
  A multi-page PDF or an alert stops the batch, and a file that can't be
  placed returns its error to `app.placeDialog`.
- Each click places the next image; arrow keys while dragging lay out a
  grid (`place.grid`) and are handled even at a limit; Escape unloads the
  rest (`place.cancel`). Undo of a loaded image's asset cancels the queue.
- The cursor shows how many images are loaded.
- On the web, Place picks several files and the inbox loads consecutive
  images for the same document as one batch.
2026-11-03 21:43:44 -05:00
aiongg b749251694 Merge pull request #1478 from Hamza0101/fix/cli-argument-handling
cli: the three argument bugs photocraft#7071 lists are live here too
2026-11-03 17:01:34 -05:00
aiongg 65c4db30e1 Apply review fixes
- apps/designcraft-cli/src/main.rs
2026-11-03 21:48:08 +00:00
aiongg 61ed22140a Apply review fixes
- apps/designcraft-cli/src/main.rs
2026-11-03 19:41:27 +00:00