Commit Graph
2959 Commits
Author SHA1 Message Date
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
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
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
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
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
David Mann 0362120fc4 Merge pull request #11674 from yoriswind/codex/actions-library-commands-10706
Add Clear All, Reset, and Replace Actions to the Classic panel
2026-11-15 16:53:01 +01:00
David Mann dbd7f5d928 Merge remote-tracking branch 'origin/main' into HEAD
# Conflicts:
#	docs/scorecard.md
2026-11-15 16:08:00 +01:00
David Mann 52d2e76357 Merge pull request #14475 from RickiNano/fix/14043-new-doc-save-preset-icon
New Document: save a preset from an icon right of Name (#14043)
2026-11-15 15:57:33 +01:00
David Mann 3156a726e3 Merge pull request #12506 from ljkx/atn-conditional-mode-change
Actions: map File › Automate › Conditional Mode Change (#10723)
2026-11-15 15:46:26 +01:00
David Mann e84450d4d8 Merge pull request #14644 from hectorviov/fix/toolbar-group-layout
Toolbar: slots come from a stored group layout that edit.toolbar changes (#14459)
2026-11-15 15:46:01 +01:00
FredApps ba12f3e9f4 Merge main into switch-photocraft-io
Main's #14220 already landed the KRA/ORA/XCF/PDN cutover, so conflicts take
main's io code, manifests and lockfile. crates/cms is gone on main, so its
synth.rs clippy edit is dropped. XCF metadata cancellation is already in main
(parse_with); the PR's regression test is kept and still fails without it.
PDN cancellation already stops before the next surface through keep_going.
2026-11-15 15:18:27 +01:00
RickiNano 07cdcca77a New Document: save a preset from an icon right of Name (#14043)
The Save Preset… button under Preset Details is gone. An icon right of
the Name field turns the pane into SAVE DOCUMENT PRESET, proposing the
next free "Saved N" with its text selected, with Save Preset / Cancel.
Cancel returns to Preset Details without saving.
2026-11-15 14:39:13 +01:00
yoriswind dc69bb6e1e Merge current main to repair inherited Classic CI failures
Retain the Classic Actions feature unchanged and incorporate official main fixes for workspace write policy, Format persistence, RAW fixtures and SVG resource accounting. No manual merge resolution.
2026-11-15 05:04:53 -08:00
FredApps abb30dff47 Merge pull request #2929 from FredApps/fix/apprun-preserve-custom-launcher-2905
fix(linux): preserve customized AppImage desktop launchers
2026-11-15 11:25:02 +01:00
dotCooCoo 95a29798ea Merge main into fix/stale-parity-rows 2026-11-14 20:09:10 -08:00
Hector Villarreal 599568db9e Scorecard: regenerate docs/scorecard.md (the gate's scorecard step)
The two preference fields this PR adds make the count of settings 205, not 203.
2026-11-14 13:01:34 -06:00
FredApps 0d3b1e8523 Merge pull request #11699 from ZIDAN44/fix/11353-wheel-gesture-ownership
Wheel: a panel scrolled past a dropdown, slider or font field keeps scrolling (#11353)
2026-11-14 15:21:12 +01:00
FredApps b044610e5d Merge pull request #4931 from FredApps/docs/canvas-rotation-4911
Add 15-degree rotate-left/right canvas shortcuts
2026-11-14 12:16:43 +01:00
dotCooCoo f3c00ffd16 Merge main into fix/stale-parity-rows 2026-11-14 02:11:58 -08:00
yoriswind 2b3aa8de44 Merge main into Classic Actions library commands 2026-11-13 21:27:41 -08:00
Dylan M. Taylor 13fe2864af Fix CI formatting, clippy, scorecard, and format routing regressions 2026-11-14 04:52:59 +00:00
dotCooCoo 4c79523db8 Merge main into fix/stale-parity-rows 2026-11-13 20:43:59 -08:00
Dylan M. Taylor b0e0bcc6c4 Merge pull request #14236 from storytold/codex/photocraft-format-migration
Move remaining file formats and codecs to craft-libs (#778)
2026-11-13 23:03:16 -05:00
Dylan M. Taylor 8c7544ed2a Use craft-affinity from craft-libs; remove crates/affinity 2026-11-14 00:16:50 +00:00
Dylan M. Taylor 040962a5b4 Merge photo-cms-port: use craft-cms and remove crates/cms (#13393) 2026-11-14 00:02:22 +00:00
Dylan M. Taylor 8f5aad2360 Merge switch-craft-kra-ora-xcf: use craft-kra, craft-ora, craft-xcf and craft-pdn (#13415) 2026-11-13 23:55:49 +00:00
Zinadin Zidan 1df79b19e1 Merge main (d37da956f) into the wheel gesture branch
main's dropdowns skip greyed options on the wheel: wheel_steps takes
this branch's notches and main's enabled filter. docs/ui-parity.md: main's
rows and status line, with this branch's entries first.

main's slider is now as tall as a text field (#9320), so the open-list
test's point beside the list landed on it; the point is now below the
slider.
2026-11-14 02:47:57 +06:00
FredApps 645b329095 Merge branch 'main' into docs/canvas-rotation-4911
# Conflicts:
#	crates/ui-egui/src/i18n/cs.tsv
#	crates/ui-egui/src/i18n/de.tsv
#	crates/ui-egui/src/i18n/el.tsv
#	crates/ui-egui/src/i18n/es.tsv
#	crates/ui-egui/src/i18n/fr.tsv
#	crates/ui-egui/src/i18n/hu.tsv
#	crates/ui-egui/src/i18n/id.tsv
#	crates/ui-egui/src/i18n/it.tsv
#	crates/ui-egui/src/i18n/ja.tsv
#	crates/ui-egui/src/i18n/ko.tsv
#	crates/ui-egui/src/i18n/nl.tsv
#	crates/ui-egui/src/i18n/pl.tsv
#	crates/ui-egui/src/i18n/pt-br.tsv
#	crates/ui-egui/src/i18n/ru.tsv
#	crates/ui-egui/src/i18n/sr.tsv
#	crates/ui-egui/src/i18n/tr.tsv
#	crates/ui-egui/src/i18n/uk.tsv
#	crates/ui-egui/src/i18n/vi.tsv
#	crates/ui-egui/src/i18n/zh-hans.tsv
#	crates/ui-egui/src/i18n/zh-hant.tsv
2026-11-13 20:55:58 +01:00
FredApps 7cf4a2fa64 Merge branch 'main' into fix/apprun-preserve-custom-launcher-2905 2026-11-13 20:43:25 +01:00
Cristi RaduandClaude Opus 5.5 e248c7288b Control protocol: sampleColor matches the Eyedropper only with its size and sample too
Answers CodeRabbit on #13533: size defaults to Point Sample and sampleLayer to all,
so the zoom alone doesn't reproduce a 3 by 3 Average.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 20:08:13 +02:00
Cristi RaduandClaude Opus 5.5 8b4460a7ac Control protocol: give sampleColor's zoomed box rounding, position and clipping
Answers CodeRabbit on #13533: the side is (N+1)/zoom rounded, the box starts
ceil(side/2)-1 pixels before the sampled pixel, and it is clipped to the canvas,
as sample_rect_at does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-11-13 20:08:13 +02:00