Commit Graph
16113 Commits
Author SHA1 Message Date
David Mann edd366190f Merge #16618 into the merge queue batch
Path Selection Delete removes paths, not the layer; Properties eyedropper picks
2026-11-24 12:32:14 +01:00
David Mann 873dc95464 Merge #15357 into the merge queue batch
Polygon tool: Align Edges checkbox (#13326)
2026-11-24 12:32:14 +01:00
David Mann d6c1546d5d Merge #13931 into the merge queue batch
Artboards to Files: Include Background in Export leaves the board's fill out (#13631)
2026-11-24 12:32:13 +01:00
David Mann 1b83dbc49a Merge #13891 into the merge queue batch
Create Droplet: the Play options are saved in the droplet and used by each run (#13709)
2026-11-24 12:32:13 +01:00
David Mann 27c629f789 Merge pull request #13421 from superplay2021/fix-cmyk-eyedropper-color-picker
fix(cmyk): preserve accurate CMYK values across color picking, sampling and painting
2026-11-24 12:30:30 +01:00
David Mann a8760de7bb Merge pull request #16570 from davidmann4/mq-batch-5d3bca79-mwtr0apl
Merge queue batch: 3 PRs (#14458, #16251, #14812)
2026-11-24 11:18:31 +01:00
superplay2021 8231269c60 Merge latest main and preserve the CMYK command export 2026-11-24 11:55:21 +02:00
ljkx 898f507d6c Artboards to Files background tests: fill the boards' layers directly, since edit.fill moved to the paint crate 2026-11-24 09:26:46 +01:00
ljkx 6303a04b11 Merge remote-tracking branch 'origin/main' into artboards-include-background 2026-11-24 09:25:48 +01:00
ljkx 2ce8fb7ed7 Merge remote-tracking branch 'origin/main' into polygon-align-edges 2026-11-24 09:22:09 +01:00
aiongg 4a136a64bb Path delete test: start from an installed session 2026-11-24 04:56:42 +00:00
aionggandDan 32704afb63 Path Selection Delete removes paths, not the layer; Properties eyedropper picks
With Path Selection, Delete removes the selected components of a shape
layer, saved path or vector mask (path.deleteComponents), or the targeted
saved path when nothing is selected, instead of deleting the layer.

The Properties panel Fill and Stroke popovers now hold the screen pick and
feed the sampled colour back, as the options bar does.

Fixes #13269

Co-authored-by: Dan <[email protected]>
2026-11-24 04:56:42 +00:00
aiongg b609bc7d3c Merge pull request #16616 from aiongg/rc-menus-arrange
macOS menus list each system item once; arrange uses the document area
2026-11-23 23:34:50 -05:00
aiongg 784694f559 Merge pull request #16609 from aiongg/engine-split-step8
Engine split step 8: the vector crate (`photocraft-engine-vector`)
2026-11-23 23:29:04 -05:00
FredApps 8aa347f2b0 Merge pull request #16540 from storytold/build/craft-develop-clip-mask-pin-587
build: pin craft-develop for the shared sensor clip mask
2026-11-24 05:13:37 +01:00
aiongg 400c351ac6 macOS menus list each system item once; arrange uses the document area 2026-11-24 03:56:33 +00:00
aiongg 4467301615 cargo xtask scorecard 2026-11-24 02:41:56 +00:00
aiongg fcda1c5b4b cargo fmt --all 2026-11-24 02:41:56 +00:00
aiongg 8cd8e5e2e4 Engine split step 8: hand fixes after the test move (atn name_ref fixture, imports, core test helpers whose last users moved) 2026-11-24 02:41:56 +00:00
aiongg db03b87aba Engine split step 8: core tests that run vector commands move to the top crate's tests/it (move_tests.py output) 2026-11-24 02:41:56 +00:00
aiongg 6d73dcee09 Engine split step 8: the vector crate (install, incomplete-docs list, layer comp recorded step, top wiring, corpus feature, core items vector uses made public, tooling) 2026-11-24 02:41:56 +00:00
aiongg eb982b0c82 Engine split step 8: engine_cut.py split vector (vector modules to crates/engine-vector/src) 2026-11-24 02:41:56 +00:00
aiongg 722cb812ef Split scripts: whole use trees in the trait check, re-exported traits through globs, inner attributes nest, mod.rs unit names, inline modules named from other files, assigned .ok() results count (review on #16587) 2026-11-24 02:41:56 +00:00
aiongg b84c777860 Merge pull request #16608 from aiongg/engine-split-cuts8b
Engine tests before the vector cut: two registry-wide checks that hold across crate cuts
2026-11-23 21:36:26 -05:00
Dylan M. Taylor b5ec96591b Merge branch 'main' into build/craft-develop-clip-mask-pin-587 2026-11-23 21:18:36 -05:00
aiongg ac0dfaf774 Engine tests before the vector cut: the closed-doc check's coverage floor is a share of core's commands
Core's test process installs only core's commands, so the count of checked commands drops at
each crate cut; the floor is now 85 % of the commands with a parsed doc (91 % today, before and
after the vector cut).
2026-11-24 01:35:39 +00:00
aiongg 4b67fd4b9b Engine tests before the vector cut: the .atn table's commands are checked against the app's registry order
Core's own tests install only core's commands, so the check that every command the .atn table
names exists reads crates/engine/src/install/command_ids.txt, which lists every engine crate's
ids, instead of a list of the commands other crates register.
2026-11-24 00:56:26 +00:00
David Mann 4680042efe Merge #14812 into the merge queue batch
Alt+click on the new group button groups one active layer (#14717)
2026-11-24 01:42:48 +01:00
David Mann bb45da908d Merge #16251 into the merge queue batch
Magic Eraser: its own icon cursor
2026-11-24 01:42:47 +01:00
David Mann 47107a2c90 Merge #14458 into the merge queue batch
feat(type-tool): Alt+drag opens the Paragraph Text Size dialog
2026-11-24 01:42:45 +01:00
aiongg 089ce879e0 Merge pull request #16587 from aiongg/engine-split-cuts8
Engine tests and split scripts before the vector cut
2026-11-23 19:42:14 -05:00
skylar taylor-barrick a545419924 Prepare dormant PhotoCraft release-ref nightly callers (#16459)
* Prepare dormant PhotoCraft release-ref nightly callers

* Keep dormant nightly callers lintable and guarded

* Refresh dormant nightly policy and shared-source pin

* Pin the dormant nightly callers to merged craft-common-actions main

craft-common-actions #330 merged as 077d4657. Both reusable workflows keep the
same inputs and secrets; the callers stay literally off.

* Finish the Nightly session in the app's exit hook

On macOS every quit (Cmd+Q, the close button, File > Quit, app.quit) leaves
through craft::quit, which sends -[NSApplication terminate:]. winit's
applicationWillTerminate: delivers LoopExiting, eframe runs the app's
on_exit, and AppKit then ends the process, so eframe::run_native never
returns there and the controlled-return code after it (the Nightly
session finish) never ran: every Mac Nightly start reported the previous
session as unclean.

Services gets an at_exit hook that on_exit runs once, last. The desktop
app finishes the shared Nightly session there, and again after run_native
for the paths that create no window (renderer failure), where the second
call is a no-op.

* Add the Apple-silicon Nightly build, signing and verification scripts

packaging/macos/nightly.sh compiles the GUI-only PhotoCraft Nightly.app
for aarch64 with no signing material (it refuses any) and writes the
unsigned photocraft-<version>-macos-aarch64-nightly.zip: the nightly-common
source and identity checks, nightly_plist.py's Info.plist, the Nightly icon
and notices, no CLI, DMG or document types, zipped without xattrs. It no
longer runs the bundle before signing.

packaging/macos/nightly-sign.sh is the trusted step the shared signer calls
(--arch aarch64 --input <unsigned zip> --output <final zip>). It requires
all six release secrets, imports the Developer ID with import-cert.sh into
a private keychain it deletes on exit, signs inside-out with the hardened
runtime, timestamp and entitlements, notarizes with notarytool, staples the
ticket into the bundle, and checks the final archive as the Launcher
unpacks it (signature, team, ticket, Gatekeeper) before writing it without
replacing anything. It never compiles or runs the payload.

packaging/macos/nightly-verify.sh runs in a job without secrets (it refuses
any): the same archive checks, then the bundle's --version with an empty
environment, for the signed feed artifact or the unsigned compile output.

nightly-common.sh splits the compile from the version query; Linux keeps
both. The new suite runs the scripts against stand-in Apple tools.

* Build the unsigned macOS Nightly in pull-request CI

A hosted macos-15 job, with no secrets or environment, builds the
aarch64 Nightly bundle with packaging/macos/nightly.sh when a pull
request changes the Mac Nightly packaging or flavor, and checks it with
nightly-verify.sh --expect unsigned, including the bundle's version.

* Add the Linux row to the dormant nightly callers

The single unsigned producer job lists linux-x86_64 beside windows-x86_64:
one producer run builds both platforms for one all-or-nothing release, and
the release-ref signer admits platforms from the protected policy, so there
is no separate Linux job and nightly-sign.yml is unchanged. The pinned shared
revision has no platforms input or Linux leg yet; the callers must be
re-pinned to a reviewed commit that defines them before activation. Every
job stays literally off.

The policy example moves to v3 with a per-platform map; each platform keeps
only its own trust anchor and every authority value stays null.

Packaging lint path filters now cover the files the contract tests read: the
policy example, the installed policy and Linux key paths, and the Sonar
properties.

* Cap the failure-only notarization log in nightly-sign.sh

The shared signer bounds a step's output at 256 KiB; notarytool's log on a
rejected submission is the one large output, now cut at 128 KiB.

* Add the macOS row and stable trust anchors to the dormant nightly callers

The single producer job now lists windows-x86_64, linux-x86_64 and
macos-aarch64, so one producer run builds all three platforms for one
all-or-nothing release. The signer caller still has no platform input; the
release-ref signer admits platforms from the protected v3 policy and reads
signing secrets from the release environment, so neither caller forwards
secrets.

Both callers pin a placeholder for the unmerged multi-platform shared
signer. It must be replaced with the reviewed merged commit before this is
published or activated. Every job stays literally off with no schedule.

The v3 policy example now carries each platform's fixed
nightly-unsigned-<platform> artifact kind and stable's public identities:
the Windows Authenticode subject, the Linux release key fingerprint and the
Apple Developer ID team DJ6XS33FX8 (read from the v0.23.1 macOS code
signature). Other authority values stay null and no policy is installed.

.github/nightly-linux-signing-key.asc is the v0.23.1 release-signing-key.asc
byte for byte. The contract tests check that it holds exactly one public
primary key matching the policy fingerprint, that every platform row names its
artifact kind and identity, and that both callers share one pin.

* Address review: macOS-only exit hook, clean-tree recheck, wider refusals

- The Nightly exit hook is installed only on macOS; Linux and Windows keep
  finishing the session after run_native returns.
- nightly_build_gui checks the tree is still clean after --version (Linux).
- nightly_refuse_signing_env also refuses the Windows, Azure and Linux
  signing names release.yml passes.
- nightly-sign.sh drops the single spctl run before the retried final check.
- nightly-macos.yml also runs for Cargo.toml, Cargo.lock and the text and
  ui-egui build scripts.

* List the macOS Nightly signing tests as tests for Sonar

packaging/macos/nightly_sign_tests.py is a fixture runner like the other
nightly suites; without this Sonar counts it as production code.

* Run the macOS Nightly PR build only with the full-ci label

macOS runners are shared with release builds: no path filters, and a pull
request runs the job only when it carries full-ci (a labeled event only
when the added label is full-ci). ci.yml's concurrency pattern keeps other
labels from running or cancelling a run. workflow_dispatch stays.

* Pin the nightly callers to the merged multi-platform shared signer

Both callers now name craft-common-actions a4f6fd51e854773de8b24b4f92e1ad7e770c08d7, the main
commit that merged #342 (policy v3, the platforms input and the Linux and
macOS legs, all switched off), in uses and tooling-revision. The contract
test now also requires a full 40-character commit for the shared pin.
Every job stays literally off with no schedule.

* Keep the unsigned macOS Nightly archive as a short-lived artifact

Seven-day retention, unsigned zip only, no secrets. It lets keyless signer tests and hand
testing use the exact verified build.

* Keep unlabelled events out of the macOS build's concurrency group

A push to a full-ci PR and the label event arrive together; the event that would be skipped
was sharing the group and cancelling the real build.

* Stop the macOS Nightly scripts' --help at their header comment

* Answer the Launcher's profile-form version query before startup (#16559)

`PhotoCraft --launch-profile nightly-v1 --profile-root <dir> --version`,
the shared producer's smoke, was refused by the strict launch-profile
parser (no `--`), and the refusal opens a native dialog on macOS, which
never returns on a headless runner: the hosted run did not exit in 180 s.

A Nightly build now treats exactly the selector/root pair followed by
`--version` or `-V` as a version query: the same line as plain
`--version`, exit 0, before root validation, process identity, IPC or any
window. Only parse()'s lexical checks apply; every other refusal is
unchanged and `-- --version` stays a file name.

nightly-verify.sh checks both forms, each within 15 seconds and with
nothing on standard error, so the PR's Mac build covers the smoke.

* Harden the Mac Nightly signing helpers (review of #16559)

- nightly_publish_archive runs python3 -I: nightly-sign.sh calls it with
  the signing secrets loaded, so no module from the working directory or
  user site may be imported.
- nightly-sign.sh and nightly-verify.sh list the archive's entries before
  unpacking (python3 -I, zipfile) and refuse absolute paths, `..`, empty
  or backslash components, entries outside PhotoCraft Nightly.app, links
  and special files. The check after unpacking stays.
- The signature check matches the Identifier line literally (grep -F).

* Describe the three-platform nightly and the two signing entities

releasing.md now covers Windows, Linux and macOS and names the macOS signing
scripts and the Linux public key in the release trust review. The preparation
guide lists `platforms` among the unsigned inputs and states the exact macOS
Developer ID leaf (Learning Machines LLC, team DJ6XS33FX8). The Windows
certificate names Learning Machines Inc, and only the team ID is enforced on
macOS.
2026-11-23 18:38:20 -06:00
ljkx bdb914d6e3 Artboards to Files background tests: PNG-24 from the dialog's list 2026-11-24 01:25:53 +01:00
hnoerenberg 7a110ed37a Merge upstream/main into feat/type-paragraph-text-size-12044 2026-11-24 00:47:36 +01:00
hnoerenberg 3765708ac7 feat(ui-egui): the Paragraph Text Size dialog creates from a settings snapshot
#12044 review: the reference application's dialog is modal, so nothing can
change the tool or its options between the Alt+drag and OK, and the box it
makes always uses what was active at the drag. open() now snapshots the
tool (horizontal or vertical), the type options and the placeholder
preference into the family's captured value, and OK hands that snapshot to
create_params and create_layer instead of reading the live app. A control
that switches to the vertical Type tool, edits the font size or turns the
placeholder preference off while the dialog is open therefore cannot leak
into the new layer.

A plain drag and a click take the snapshot at their own release, so they
keep reading the live settings as they do today; both are pinned.
2026-11-24 00:47:14 +01:00
skylar taylor-barrick 88b71cb141 Add the Apple-silicon Nightly build (#16559)
* Finish the Nightly session in the app's exit hook

On macOS every quit (Cmd+Q, the close button, File > Quit, app.quit) leaves
through craft::quit, which sends -[NSApplication terminate:]. winit's
applicationWillTerminate: delivers LoopExiting, eframe runs the app's
on_exit, and AppKit then ends the process, so eframe::run_native never
returns there and the controlled-return code after it (the Nightly
session finish) never ran: every Mac Nightly start reported the previous
session as unclean.

Services gets an at_exit hook that on_exit runs once, last. The desktop
app finishes the shared Nightly session there, and again after run_native
for the paths that create no window (renderer failure), where the second
call is a no-op.

* Add the Apple-silicon Nightly build, signing and verification scripts

packaging/macos/nightly.sh compiles the GUI-only PhotoCraft Nightly.app
for aarch64 with no signing material (it refuses any) and writes the
unsigned photocraft-<version>-macos-aarch64-nightly.zip: the nightly-common
source and identity checks, nightly_plist.py's Info.plist, the Nightly icon
and notices, no CLI, DMG or document types, zipped without xattrs. It no
longer runs the bundle before signing.

packaging/macos/nightly-sign.sh is the trusted step the shared signer calls
(--arch aarch64 --input <unsigned zip> --output <final zip>). It requires
all six release secrets, imports the Developer ID with import-cert.sh into
a private keychain it deletes on exit, signs inside-out with the hardened
runtime, timestamp and entitlements, notarizes with notarytool, staples the
ticket into the bundle, and checks the final archive as the Launcher
unpacks it (signature, team, ticket, Gatekeeper) before writing it without
replacing anything. It never compiles or runs the payload.

packaging/macos/nightly-verify.sh runs in a job without secrets (it refuses
any): the same archive checks, then the bundle's --version with an empty
environment, for the signed feed artifact or the unsigned compile output.

nightly-common.sh splits the compile from the version query; Linux keeps
both. The new suite runs the scripts against stand-in Apple tools.

* Build the unsigned macOS Nightly in pull-request CI

A hosted macos-15 job, with no secrets or environment, builds the
aarch64 Nightly bundle with packaging/macos/nightly.sh when a pull
request changes the Mac Nightly packaging or flavor, and checks it with
nightly-verify.sh --expect unsigned, including the bundle's version.

* Cap the failure-only notarization log in nightly-sign.sh

The shared signer bounds a step's output at 256 KiB; notarytool's log on a
rejected submission is the one large output, now cut at 128 KiB.

* Address review: macOS-only exit hook, clean-tree recheck, wider refusals

- The Nightly exit hook is installed only on macOS; Linux and Windows keep
  finishing the session after run_native returns.
- nightly_build_gui checks the tree is still clean after --version (Linux).
- nightly_refuse_signing_env also refuses the Windows, Azure and Linux
  signing names release.yml passes.
- nightly-sign.sh drops the single spctl run before the retried final check.
- nightly-macos.yml also runs for Cargo.toml, Cargo.lock and the text and
  ui-egui build scripts.

* List the macOS Nightly signing tests as tests for Sonar

packaging/macos/nightly_sign_tests.py is a fixture runner like the other
nightly suites; without this Sonar counts it as production code.

* Run the macOS Nightly PR build only with the full-ci label

macOS runners are shared with release builds: no path filters, and a pull
request runs the job only when it carries full-ci (a labeled event only
when the added label is full-ci). ci.yml's concurrency pattern keeps other
labels from running or cancelling a run. workflow_dispatch stays.

* Keep the unsigned macOS Nightly archive as a short-lived artifact

Seven-day retention, unsigned zip only, no secrets. It lets keyless signer tests and hand
testing use the exact verified build.

* Keep unlabelled events out of the macOS build's concurrency group

A push to a full-ci PR and the label event arrive together; the event that would be skipped
was sharing the group and cancelling the real build.

* Stop the macOS Nightly scripts' --help at their header comment

* Answer the Launcher's profile-form version query before startup (#16559)

`PhotoCraft --launch-profile nightly-v1 --profile-root <dir> --version`,
the shared producer's smoke, was refused by the strict launch-profile
parser (no `--`), and the refusal opens a native dialog on macOS, which
never returns on a headless runner: the hosted run did not exit in 180 s.

A Nightly build now treats exactly the selector/root pair followed by
`--version` or `-V` as a version query: the same line as plain
`--version`, exit 0, before root validation, process identity, IPC or any
window. Only parse()'s lexical checks apply; every other refusal is
unchanged and `-- --version` stays a file name.

nightly-verify.sh checks both forms, each within 15 seconds and with
nothing on standard error, so the PR's Mac build covers the smoke.

* Harden the Mac Nightly signing helpers (review of #16559)

- nightly_publish_archive runs python3 -I: nightly-sign.sh calls it with
  the signing secrets loaded, so no module from the working directory or
  user site may be imported.
- nightly-sign.sh and nightly-verify.sh list the archive's entries before
  unpacking (python3 -I, zipfile) and refuse absolute paths, `..`, empty
  or backslash components, entries outside PhotoCraft Nightly.app, links
  and special files. The check after unpacking stays.
- The signature check matches the Identifier line literally (grep -F).
2026-11-23 17:28:21 -06:00
hnoerenberg 0c1a7d9578 Merge upstream/main into feat/type-paragraph-text-size-12044 2026-11-24 00:00:32 +01:00
aiongg 4653c2a2a3 Engine split scripts: step 8 crate map, review fixes, move_tests appends and copies only what moved tests use
crates.tsv: the vector cut moves 13 command modules; the 11 shared engines
(float, frame, slice, symmetry, transform, type, type_extra, type_spell, warp,
smart, vector) map to model and stay in core until step 12; notes'
stored-values tests move with notes.

engine_cut.py: super:: paths are rewritten only at a moved file's own depth;
trait imports are added per module scope; import names come from whole use
trees; branch moves TABLES entries into the crate's install.rs before removing
them from core and finishes the moved files at their new paths; a widened name
keeps its use statement's cfg; single-name groups widen as whole imports;
re-exports from lib.rs resolve from the crate root.

move_tests.py: an existing target module gets the new tests appended (in a
module of their own when a name would clash or the file is organised by
source file); helpers are copied as written, and only those the moved tests
name unqualified; trait imports stay only when a method of the trait is
called; path rewrites skip string literals; ci-test-times remaps only this
run's tests, without duplicate rows; list reads the crate's spec functions for
its ids, ignores ids whose result is dropped, and lists test functions at the
top of production files, which move without their production siblings;
test-module parents are found inside inline modules; cleanup touches only the
modules the move emptied and keeps those other code names; --previous needs
--old-ref.

install_tables.py matches a table's full module path to its crate;
table_fragments.py reports a branch-added entry whose handler is in a crate the
predecessor's fragment can't reach.
2026-11-23 22:41:12 +00:00
aiongg bdb340c21c Engine tests before the vector cut: source cache statistics, core cache tests in core, pattern fill placement in the paint tests
Step 8 of the engine split moves the vector commands into their own crate. The
tests in those files that read core's cfg(test) counters, or test core's own
smart-object caches, are changed first:

- smart_cmds::source_cache_statistics() counts SVG source renders and native
  source bytes hashed per thread; it replaces the cfg(test) counters, and the
  test-only memo limit override goes.
- The WarningRenderSources memo tests and the native digest test move to
  core's smart_cmds source_work tests; the digest test sets up the source and
  its verified preview through the document instead of running the vector
  update, with the same assertions.
- The ignored 24 MP update timing test is removed: its memo-off pass needed a
  test-only production setting.
- rasterize_style's tests fill their layer through a local helper instead of
  core's test helper.
- The pattern placement checks for edit.fill and paint.bucket move to the
  paint tests in tests/it, where those commands are installed.
2026-11-23 22:30:00 +00:00
qvest-ssels 5bc88ca51d Layers footer: Alt-click with a lone artboard keeps New Group
An artboard can't go into a group, so New Group from Layers failed on OK when an artboard was the only active layer and no group was made. The single-layer route of #14717 now leaves artboards out, so a lone artboard gets the New Group dialog and its empty group as before.
2026-11-23 23:17:59 +01:00
superplay2021 15c984ab59 Merge latest main and preserve CMYK through the paint engine split 2026-11-24 00:10:22 +02:00
qvest-ssels c64ec699b3 Merge main into fix/alt-click-group-one-layer-14717 2026-11-23 23:06:53 +01:00
aiongg f078999fce Merge pull request #16539 from aiongg/engine-split-step7
Engine split step 7: the paint crate (photocraft-engine-paint)
2026-11-23 17:05:27 -05:00
aiongg 3ab64de0ff Move the batch's paint-dependent core tests to the engine crate 2026-11-23 20:54:27 +00:00
aiongg ff2588c2ca Merge storytold main into engine-split-step7 2026-11-23 20:51:19 +00:00
David Mann 5d3bca793d Merge pull request #16408 from davidmann4/mq-batch-fc3cc747-mwrxurel
Merge queue batch: 8 PRs (#15400, #15435, #15289, #15060, #15352, #15355, #15383, #15629)
2026-11-23 21:44:37 +01:00
superplay2021 92a5105eff Fix CMYK test initialization and canonicalize saved colors 2026-11-23 22:09:20 +02:00
David Mann 5a0390b711 Merge #15629 into the merge queue batch
Canvas Size: Gray extension colour, 128,128,128, also in recorded steps (#14543)
2026-11-23 20:46:50 +01:00
David Mann 5f98c48c41 Merge #15383 into the merge queue batch
Place Embedded: choose several files and place them one after another (#14107)
2026-11-23 20:46:49 +01:00
David Mann 1464b24ad1 Merge #15355 into the merge queue batch
Polygon tool: a Radius field after Sides rounds the next polygon (#13302)
2026-11-23 20:46:49 +01:00