Commit Graph
3001 Commits
Author SHA1 Message Date
David MannandClaude Opus 5.5 97b587ad57 Batch: PHOTOCRAFT_NO_PRINT docs say an empty value counts as unset (#16024 review)
printing_disabled() ignores an empty PHOTOCRAFT_NO_PRINT, so the docs'
"anything but 0" was wrong for the empty value.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-21 19:01:43 +01:00
David Mann 8e739f462e Merge PR #16024: engine: file.print.page asks no printer driver while printing is disabled 2026-11-21 19:01:43 +01:00
Mex d23c5957b1 Map additional framework regression tests 2026-11-21 10:48:32 +00:00
Mex b94787a48d Record additional reviewed framework successors 2026-11-21 11:11:40 +01:00
Mex e19e864a84 Audit coverage removed by the shared UI framework port
Added documentation for tests affected by the shared UI port, including an inventory of removed tests and their successors. The document tracks changes related to the UI rework and provides details on test coverage and assertions.
2026-11-21 11:06:47 +01:00
FredAppsandClaude Opus 5.5 f996f2fc93 engine: file.print.page asks no printer driver while printing is disabled
The panic hunt turns printing off so no command reaches a printer, but
file.print.page still asked the Windows driver for the default printer's
page. On a Windows runner that call hung while holding SPOOLER, so
file.printers, file.printOneCopy and file.package timed out behind it
and main went red (run 44791314463). It now refuses, after checking its
own parameters, when disable_printing or PHOTOCRAFT_NO_PRINT is set.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-20 22:29:14 +01:00
David Mann 53956cde79 Merge branch 'agents/default-folder' into batch/repin-next-mcp
# Conflicts:
#	Cargo.lock
#	Cargo.toml
2026-11-20 21:22:46 +01:00
David MannandClaude Opus 5.5 acc82659ea automation: default agent folder and the agent_folders MCP tool (#15974)
With Preferences > AI Integrations' folders empty, agents had no file
access, and the launcher starts `mcp` with no root flags.

- An empty folder setting named by no flag uses the shared default agent
  folder Documents/ArtCraft/Agents/PhotoCraft (craft-libs#2550), in the
  open window (agent link, --control) and in the live headless session.
- agent_folders tells the agent which folders it may use: the headless
  session's roots, or the open window's saved folders with the default.
- Pin craft-libs to bafb452 + the craft-libs#2550 commit until it reaches
  next.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-20 15:23:05 +01:00
David Mann bb864668bf Merge #11327 into the merge queue batch
fix(ui): close canvas menus when the active document changes
2026-11-20 15:06:03 +01:00
FredApps b6732645f0 Merge pull request #11861 from hnoerenberg/fix/gif-preserve-indexed-palette-11824
fix(io): GIF export keeps the indexed palette, unused entries and all
2026-11-20 21:04:09 +07:00
David Mann c142c65e06 Merge #15792 into the merge queue batch
Restore the Pen cursor benchmark on the shared UI framework
2026-11-20 14:16:38 +01:00
9ec43e905a Adopt the shared AGENTS.md (RFC-0072) (#15912)
* Adopt the shared AGENTS.md (RFC-0072) and test rules (RFC-0071)

* AGENTS.md: correct the repository facts

Correct the layer list (no psd or codecs crate; ipp, raw and tablet are standalone; test helper crates), name the example plug-in that uses unsafe, and renumber a stale rule reference in docs/contributing.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>

---------

Co-authored-by: FredApps <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
2026-11-20 18:10:25 +07:00
hnoerenberg 821e1bf576 Merge upstream/main into fix/gif-preserve-indexed-palette-11824 2026-11-20 05:55:15 +01:00
FredApps 514c04159a Merge pull request #14246 from HankGrimm/docs/affinity-readme-links
docs: point the Affinity format-notes links at craft-libs
2026-11-20 09:57:35 +07:00
HankGrimm fc034940b8 Merge branch 'main' into docs/affinity-readme-links 2026-11-20 09:25:49 +08:00
David Mann a792cac8c6 Merge #12094 into the merge queue batch
Add a contextual task bar to Free Transform
2026-11-20 02:04:27 +01:00
aiongg f63ed56fe8 Merge pull request #15782 from aiongg/engine-split-registry
Engine install registry (#15710)
2026-11-19 18:16:25 -05:00
yoriswind c56c5bfb5d Document implemented contextual task bar contexts and limits 2026-11-19 13:17:03 -08:00
aiongg 9406da9c6f engine_split: codemod usage says --head is pre-rebase, reports command_ids and private modules; contributing names TABLES 2026-11-19 20:22:30 +00:00
David Mann 47c5abbecd Merge #13714 into the merge queue batch
Batch: the error log is UTF-16 big-endian with Start Batch / End Batch and native paths (#13665)
2026-11-19 21:04:29 +01:00
haranishi 546104e0ff Restore the Pen cursor benchmark on the shared UI framework 2026-11-20 02:45:08 +09:00
David Mann 363f37f6c8 Merge pull request #15685 from davidmann4/integration-batch-21
Integration batch 21: EPIC-UI-REWORK PRs green on main (WIP)
2026-11-19 17:17:24 +01:00
aiongg 9d9b465e08 Merge pull request #15712 from aiongg/ci-build-once
ci: build the tests once per OS, keep compiled workspace crates, balance the shards
2026-11-19 10:08:34 -05:00
David MannandClaude Opus 5.5 81fe85e318 Regenerate docs/scorecard.md after merging main
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-19 15:19:27 +01:00
FredApps c0011b0142 Refresh generated reliability scorecard 2026-11-19 13:32:00 +01:00
hnoerenberg 563b7820c3 Merge upstream/main into fix/gif-preserve-indexed-palette-11824 2026-11-19 13:10:49 +01:00
aiongg c9746558d7 ci: build the tests once per OS, keep compiled workspace crates, balance the shards
- Both gate calls build the tests once into a nextest archive (cargo xtask ci archive); the
  shards run it, and the build job runs the doctests after the upload.
- The Linux gate keeps the compiled workspace crates in a rolling cache entry
  (cache-workspace-crates). A nightly cold build is its safety net; gate-cache-prune keeps the
  newest entry. test (without heif) restores that entry.
- The shards split the tests with nextest's slice partition, which spreads the slow modules:
  on one main run's times the non-GPU shards go from 728/493/523 s (hash) to about 602/506/625 s.

Fixes #15702
2026-11-19 08:06:05 +00:00
aiongg ec40c48cc2 ci: build the tests once per OS and run the shards from a nextest archive 2026-11-19 06:34:17 +00:00
David MannandClaude Opus 5.5 9be5f35235 Integration: regenerate docs/scorecard.md
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-19 01:47:44 +01:00
David Mann 49be48eb6c Merge PR #15631: Control channel: list and cancel every dialog by the id it replies with (#15544) 2026-11-19 01:40:36 +01:00
hnoerenberg f37cf8376d Merge upstream/main into fix/gif-preserve-indexed-palette-11824 2026-11-19 00:36:51 +01:00
David Mann dff012b56b Merge remote-tracking branch 'origin/main' into HEAD 2026-11-18 23:11:37 +01:00
David MannandClaude Opus 5.5 6cbcdc0ad4 Merge main into fix/title-bar-controls-13577
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
2026-11-18 23:07:17 +01:00
Mex b6b351cef4 Merge branch 'main' into fix/canvas-menu-document-switch-11325 2026-11-18 21:53:01 +01:00
aiongg 36aa7a8f69 Merge remote-tracking branch 'origin/gpu-test-group' into ci-fixes
# Conflicts:
#	.config/nextest.toml
#	crates/ui-egui/tests/it/main.rs
2026-11-18 20:11:50 +00:00
aiongg 5456a5a812 Tests: the nextest gpu group holds only the tests that build a GPU device
The gpu group (at most 4 at a time) was chosen by name: every ui-egui
integration test and every test whose path contained canvas, gpu, mip or
type_tool. On main's gate that put about 680 ui-egui tests that never
open a device on four slots.

The group is now photocraft-gpu plus every test in a module named
`gpu_tests` or `<name>_gpu_tests`:

- ui-egui integration tests that draw on a device move to
  tests/it/gpu_tests/; mixed files and unit tests keep their GPU tests in
  a nested `gpu_tests` module or a `*_gpu_tests` file.
- photocraft-automation's GPU backend tests are `gpu_backend::gpu_tests`.
- batch_export_options checks menus and exported bytes, so it runs on the
  CPU canvas instead of a GPU harness.

No test assertion changes. The Windows priority list follows the moved
test names.
2026-11-18 19:57:56 +00:00
aiongg eee31b0d11 CI: shards build their own tests instead of running from an archive
The gate's archive of ~98 test binaries would be 10-18 GB compressed, so
every shard restores the dependency cache, builds the tests and runs its
partition (scripts/ci-test-shard.sh). `cargo xtask ci tests` runs the test
steps on $NEXTEST_PARTITION, `ci build` builds exactly what a shard builds
(main's cache warm-up), and `ci doctest` runs in one shard. The `ci archive`
part, the archive's xtask binary and the extraction are gone.

The Linux GPU shard keeps the gpu group alone on lavapipe; shards 2-4 split
the rest. Windows uses six shards: ~55 min of tests on one runner, and its
slowest test alone takes ~9.6 min, so a seventh would not shorten the
slowest shard.
2026-11-18 19:09:59 +00:00
aiongg 0e3523cdcd CI: shard the Linux and Windows tests, lint leg, xtask environment fix, rust-cache v2.9.3
- xtask starts every cargo without the variables `cargo run` sets for xtask
  (CARGO_MANIFEST_DIR, CARGO_PKG_*, ...), so a build script that declares
  `rerun-if-env-changed` for them (ring) no longer reruns, with the whole
  craft facade above it, between builds inside and outside xtask.
- `cargo xtask ci` splits into the gate's parts without a second step list:
  `lint` (fmt, egui-fork, clippy, layers, panel-commands, scorecard, wasm,
  i18n report), `archive` (test build into the nextest archive, doctests),
  `tests --from <dir>` (test and panic_hunt from the extracted archive, on
  $NEXTEST_PARTITION; --gpu / --no-gpu select by the gpu test group) and
  `build` (cache warm-up). Plain `cargo xtask ci` still runs every step.
  PHOTOCRAFT_CI_EXCLUDE leaves packages out of the test build and doctests.
- The `ci` nextest profile's archive carries the xtask binary, so a shard
  builds nothing (scripts/ci-test-shard.sh).
- Linux gate: lint leg, one build, four shards. Shard 1 runs the gpu group
  alone on lavapipe and checks its output (scripts/ci-gpu-lavapipe.py now
  wraps that run); the second GPU run and its rebuild are gone.
- Windows unit, integration, clippy and warm legs move onto the shared gate
  (Windows runner, lint leg for Clippy, four shards), keeping the PR
  selection from the platforms job, rust-lld, /OPT:NOICF, /DEBUG:NONE and
  the D:\t target dir.
- The slowest-tests-first priorities apply on Linux too.
- Swatinem/rust-cache v2.9.3 by commit for this repository's own cache
  steps, with fresh keys; cache-version v2 for the gate and docs entries.
  `test (without heif)` restores the gate's entry through the shared action.
  Dispatch-only jobs no longer save caches no pull request reads; the quick
  perf suite restores perf-nightly's entry.
- windows_delay_loads reads the app from NEXTEST_BIN_EXE_photocraft, as the
  other app tests do, since archives relocate binaries.
2026-11-18 19:04:43 +00:00
ljkx 5dcb91a891 Control channel: list and cancel every dialog by the id it replies with (#15544)
Since the move onto the craft UI framework, four dialogs could not be
driven by the id the control channel gave for them:

- Keyboard Shortcuts and Menus draws outside the framework's dialog host,
  so ui.inspect never listed it and ui.dialog.cancel {"dialog":
  "shortcuts"} failed, leaving every command refused behind its modal.
  It is now listed under "shortcuts" while open (first: it draws beneath
  the host's dialogs), and ui.dialog.cancel with that id closes it without
  saving, as its Cancel does. ui.dialog.set/confirm/apply refuse it with a
  pointer to edit.keyboardShortcuts params.
- Preferences replied "preferences" but is listed under its host id. It
  now replies with that id, or with the reason it did not open.
- Select > Color Range replied {"dialog": {"Ok": id}}: json! serialised the
  Result. It now replies through dialog_reply like every other dialog, and
  an open that fails is an error instead of ok with {"Err": ...} inside.
- The unsaved-changes prompt was listed under a number with only
  `choice`. It is listed as "discard" again with the documented command,
  document, remaining, choices and default, and ui.dialog.confirm/cancel
  resolve "discard" to it (docs/control-protocol.md, #4920).

Tests drive each through the control channel (handle with a
ControlRequest). Two existing tests change with the documented ids: the
Preferences apply test asserted the old "preferences" reply, and the
save-authorization helper fed the listed prompt id to the host lookup.
docs/control-protocol.md now says which dialogs have fixed ids and what
menu items reply.
2026-11-18 18:58:04 +01:00
David MannandClaude Opus 5.5 f58fa07ea7 Merge main into fix/title-bar-controls-13577
Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-18 18:56:29 +01:00
aiongg a5759e84ce scorecard: regenerate docs/scorecard.md for the AUTO-219-8 note 2026-11-18 15:55:55 +00:00
aiongg 8bc1e51260 Merge storytold main into main-gate-fixes 2026-11-18 11:06:37 +00:00
FredApps d1981cb616 Merge pull request #9184 from dotCooCoo/fix/stale-parity-rows
docs: mark tool flyout press-and-hold, Direct Selection nudge and two brush rows as built
2026-11-18 16:39:55 +07:00
David Mann 2ff9614a90 Merge origin/main into fix/title-bar-controls-13577
Main moved the UI onto the craft framework (#15449), which rewrote the
top bar. The conflicts take main's files; the top bar's trailing region
is emptied again on top of them, and appearance_button and
workspace_ui::switcher go with it. The favourite theme stars stay for
now (#13581), so the prefs model, validation and scorecard match main.
2026-11-18 02:08:25 +01:00
aiongg e0003440dd Scorecard: regenerated from the port's checklist notes 2026-11-17 17:48:17 +00:00
aiongg ed14e1c413 PhotoCraft on the craft UI framework (#15449)
PhotoCraft's UI moves onto the shared craft UI framework in storytold/craft-libs (next branch): shell, dock and panels, hosted dialogs, keyboard, focus, IME and pointer routing, the canvas's view commands, themes and tokens. The engine, document model, file formats, commands and automation stay. PhotoCraft pins storytold/craft-libs next.
2026-11-17 10:41:35 -05:00
Mex f8706a07a0 Merge branch 'storytold:main' into fix/canvas-menu-document-switch-11325 2026-11-16 21:31:36 +01:00
FredApps f06fc89d31 Merge branch 'main' into switch-photocraft-io 2026-11-16 06:51:35 +01:00
dotCooCoo 1e814644f2 Merge main into fix/stale-parity-rows 2026-11-15 19:46:12 -08:00
hnoerenberg c9c9cba7f6 Merge upstream/main into fix/gif-preserve-indexed-palette-11824 2026-11-16 03:03:27 +01:00