* --version: name the commit of a dev build from git (#5247)
A plain cargo build reported only '0.8.2 (dev build)'. The desktop and
CLI build scripts now read the checkout's commit (git rev-parse HEAD,
rerun when HEAD moves) and the binaries hand it to build_info at start,
giving '0.8.2 (dev build, 6f8505421)'. Release builds keep
PHOTOCRAFT_BUILD_SHA and their format; without git, or when the
workspace isn't the root of the checkout (a source tarball unpacked in
another repository), it stays '(dev build)'. The engine itself still
doesn't shell out, so a commit doesn't rebuild it.
* --version: only watch git paths that exist (#5247)
Cargo treats a missing rerun-if-changed path as always changed: it re-ran
the build script and recompiled photocraft and photocraft-cli on every
build when packed-refs (or the branch's loose ref) did not exist. Watch
HEAD and packed-refs only when present, and for a packed branch the
nearest existing directory under refs/, so the first commit on it, which
writes the loose ref, still triggers a rebuild.
* --version: watch an unborn branch and reftable checkouts (#5247)
The git paths are now registered before asking for the commit, so the first
commit on an unborn branch re-runs the build script. A reftable checkout
watches reftable/tables.list, which every ref update rewrites, instead of a
loose ref or packed-refs.
* --version: git fixtures ignore the caller's repository and ref format (#5247)
The test fixtures run git without GIT_DIR, GIT_WORK_TREE, GIT_COMMON_DIR,
GIT_INDEX_FILE and GIT_DEFAULT_REF_FORMAT, and the files-format fixtures pass
init.defaultRefFormat=files, so a reftable default or an inherited GIT_DIR
can't move or reshape them.
* --version: the git fixtures join the app's tests/it binary (#5247)
Main builds each crate's integration tests as one binary. The desktop
--version test now hands the checkout's commit to build_info as the
binary does, so both print the same dev build string.
---------
Co-authored-by: FredApps <[email protected]>
The dialog is titled with the document's name without its extension, and OK edits the document it opened on even if another tab becomes active. The Basic labels are already title case on current main.
Signed-off-by: MaheshDesu <[email protected]>
The parity report gets a headless column computed from the engine command registry that photocraft-cli and the MCP server load: 517 yes, 48 no (window), 0 partial, 99 unknown of 664 items, per RFC-0052.
The framework shows a document window on its fallback layer inside the app window in one more state than `desktop_origin` reads: while OS windows are available, a mount also falls back when the app window is full screen or, on Wayland, maximized (craft-libs `ui-contract/src/runtime/windows.rs`, `opens_over`). View > Screen Mode reaches that state inside the app.
`WindowHost::opens_windows()` answers for the viewport of the running pass and not for the app window, so a menu command cannot decide this from the app window's state; the gate therefore stays as it is, and the doc comment now says the offset is still added there and points at #16846, the epic's item for full-screen modes with floating document windows. No code change: only this function's doc comment.
`space` handed the framework the document area in the app window's own points, while a document window that opens as an OS window opens at a desktop rect. With the app window anywhere but at the screen's origin, Float in Window, Float All in Windows, New Window for Document and Cascade placed their windows at the document area's offset inside the app window read as a desktop place, so they landed outside the app window instead of over the document area.
The area now moves into desktop points by the origin the host reports for the app window, and the `position` a torn-off tab carries (a point of the app window) takes the same offset, so the window opens under the pointer where the tab was dropped. Window sizes, the cascade step and the docked panes keep what they are today: only the origin the placements work from changes. Where the host reports no rect for the app window, or where the document window shows on the framework's fallback layer inside the app window instead of an OS window of its own, the offset is zero and placement stays as it is today.
Tests go in the new file `crates/ui-egui/src/canvas/arrange_window_origin_tests.rs`: 11 tests run the real commands with the app window standing at a desktop rect away from the screen's origin, and compare every opened window's rect against the app window's rect and the document area the passes laid out, never against a literal pixel.
A large group's box opens only when its preparing job lands, so Warp
now checks for a group before Free Transform starts. The open-box rule
that greys the Warp block for several layers or a group now runs before
the pending-commit branch too.
Thumbnail Ctrl+click and Select Pixels are Load Selection (Selection
Change for a shape or a vector mask), Shift+click and the chain name
their direction, and a mask drop is one Add Layer Mask step. The menu
calls (no layer id, plain toggles) keep their names.
A box over a group now opens with warp off, as the box over several
layers does: Warp is greyed in its right-click menu and Edit > Transform
> Warp (with the split-warp rows) is greyed while it is open. Warp asked
through automation, or from the menu with no box open, refuses on a
group instead of opening a plain box. Pixel, type and smart object
layers keep Warp.
The n-up and Tile layouts ran Fit on Screen on every view, so each
document took a new zoom fitted to its pane. They now leave the views
alone: every document keeps its zoom and the document point at its
centre, so it shows centred in its new pane, and Consolidate All to
Tabs shows the zoom it had before the layout.
The window's body runs document_area::each_pass before the dock, so a harness that shows the
document area alone ran none of it: a crop left pending by a tool switch was never committed and
the pen pressure curve never reached the stylus. canvas::testing::document_area runs that work and
then the area, and every harness that shows the area without the window goes through it.
Inside the selection the Patch tool opens Use Pattern to Patch Selection
(greyed: no pattern patch yet), Use Patch as Source / Destination (they set
the options bar's mode), Color Range... and Load Selection... (greyed until a
selection is saved). Outside it opens the Lasso's selection menu, and with no
selection the selection tools' no-selection menu.
Rename, reveal and Find Layers focus are one-time requests the app passes to LayersPanel. The app cleared them after every call, also after a measuring run that applies none. It now clears them on LayersOutput::requests_taken (craft-layers), which the panel sets from its real run.
The Properties panel handed the editor a one-time tone and dropped it after a run that did not apply it (a measuring run). The host now keeps the tone as the editor reports it each pass (ColorBalanceOutput::tone, the editor's host-kept contract); Reset to defaults sets Midtones.
wait_until_landed waits for each running job with Session::wait_job, then lets jobs_ui::tick take its end, instead of a wall-clock deadline.
The dock's column around the document area replays while the canvas version holds, so the
area's per-pass work (GPU documents and budget, landed redraw blocks, tablet settings, a pending
crop) runs in the window's body before the dock. The canvas version holds where the Brush Preset
picker is open and, while it is, the brush and presets; the Batch input shown in place of the
documents; and the GPU canvas's texture budget. The options bar, Character, Properties and Glyphs
hold the font families key, so a family installed while a font menu is open reaches it. A panel
whose body does not show keys its column by the shared version only. An area run that shows no
canvas clears the crop task bar's rect. The Properties Reset session ends when a run shows no
adjustment layer's controls, decided from what the panel shows, since a pass that reuses the
inspector's measurement runs none of its content.
Tests: the Remove tool's landing wait is bounded by wall time instead of 40 frames; the idle
picker trial accepts the picker replaying with the area around it.
file.export.artboardsToPdf takes "encoding": "jpeg" (default, today's
DCT pages) or "zip": each page is the board's exact 8-bit RGB samples in
a /FlateDecode stream, and quality is ignored. Any other value is an error.
The dialog gets the Encoding radios ZIP and JPEG; ZIP greys out Quality.