- main.rs: acknowledge the interrupted-session notice only once a frame has drawn it, so a
renderer failure before the first frame keeps the record the next start reports.
- profile_root.rs: a fresh exclusive name per write probe, removing only this attempt's entry,
so a probe left by a killed run no longer blocks a writable profile.
- profile_root.rs: fence the XDG bases the Linux wrapper overrides (FIGCRAFT_STABLE_<key>), so
the stable ~/.config/FigCraft folders stay excluded from a nightly profile.
- nightly-launch.sh: pass those pre-override bases; the launch test checks them.
- docs: name craft-common-actions #363 as the prerequisite port.
nightly_compile_gui now calls nightly_refuse_signing_env before cargo, so a
signing key exported by a caller cannot reach the build or its dependency
build scripts. The macOS entrypoint keeps its earlier call.
docs/nightly-release-preparation.md now records that the pinned shared
producer and signer admit only PhotoCraft, so that port is a go-live
prerequisite before a dispatch can build or sign.
On top of dylanmtaylor's #2603, whose packaging this keeps: one launcher
(packaging/linux/nightly-launch.sh) is now the nightly entry point in every format, so a Linux
Nightly started from a menu, a shell, an AppImage, a Flatpak or an unpacked tarball runs the
nightly-v1 profile instead of refusing to start:
exec <real-bin> --launch-profile nightly-v1 --profile-root "$XDG_DATA_HOME/profile" -- "$@"
- deb/rpm: the wrapper runs /usr/lib/figcraft-nightly/figcraft on the profile.
- .tar.gz: a new bin/figcraft-nightly member beside the GUI (bin/figcraft); both are allowlisted
and required by packaging/nightly-archive.py, so an unpacked tarball is isolated too.
- Arch handoff: the launcher replaces nightly-arch-launch.sh (deleted, superseded).
- AppImage: usr/bin/figcraft-nightly, and AppRun's exec line runs it instead of carrying inline
XDG exports; the AppDir registers no MIME type.
- Flatpak: the manifest runs and installs figcraft-nightly, so the sandboxed bundle starts on its
own profile (profile_root accepts the Nightly's own Flatpak id and still refuses another app's).
Also fixed here, from the re-review of this PR:
- StartupWMClass matches the window id the binary really sets
(ai.storyteller.figcraft.nightly-v1), in the tar, deb/rpm, AppImage and Flatpak.
- No document associations for a Nightly: MimeType lines, share/mime and the metainfo
<mediatype> entries are dropped in every format, and the nightly metainfo names the nightly id,
launcher and icon.
- The version self-check passes as written: the flavour prints FigCraft <version> (nightly-v1)
and reads the wrapper's FIGCRAFT_OVERRIDE_VERSION, so nightly-common.sh needed no change.
- The nightly tar from package.sh is GUI only (no CLI).
- packaging/check-app-specific.sh now runs the nightly suites, the new launcher test and bash -n
over the nightly scripts, so packaging-lint covers nightly-release-tests.py and the Arch tar
test that no workflow ran before.
- packaging/nightly-tests.py, launch and Arch tests all re-run locally; no local compile (the
load gate never opened).
Port Skylar's (@skylartaylor) storytold/photocraft#16594 (Enable nightly
for supervised manual runs) to FigCraft:
- Add .github/nightly-signing-policy.json (v3 policy adapted for
storytold/figcraft, CI workflow 379864519, Sonar project
storytold_figcraft; producer_workflow_id left null until nightly.yml
is registered on main).
- Add .github/workflows/nightly.yml and .github/workflows/nightly-sign.yml
pinned to craft-common-actions@605d58766e8f536564da8fc81d3676ac86816dea
for supervised manual workflow_dispatch runs.
- Add docs/nightly-release-preparation.md and
packaging/nightly-release-tests.py contract tests.
Co-authored-by: skylartaylor <hi@skylar.cc>
* M6: restore full JPEG export chroma
* M6: check the JPEG matte away from the painted edge
* docs: keep the parity header's change level and describe the JPG chroma fix
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: FredApps <FredApps@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
The engine draws superscript and subscript (#1868), but nothing in the
interface set them. Details now starts with Position: None, Superscript
or Subscript for the selected text layers, through text.setFeatures
(choosing one clears the other), showing the layers' current position
and none when they differ. Raising a range of characters on its own
needs per-run features and is left for later.
Shift did nothing with the Pencil: the stroke stayed freehand, while the
Line tool and the Pen keep theirs to 45° steps. pencil_add, shared by the
drag and the release, now keeps one straight segment from where the
stroke started to the pointer at the nearest 45° step while Shift is
held (the Marker and Highlighter too); a Shift-click without a move still
draws nothing.
In a right-to-left UI language the rows inside the panels run from the
right as well: the shared Design panel row (right::block), section
headers, tight_end, sub-labels, checkboxes, radios, disclosures and the
selection header, and the layers and pages lists (indent, disclosure,
icon and name from the right, eye and padlock on the left). Names and
rename fields align to their start.
Hand-placed layouts stay written left to right and are mirrored inside
their row with widgets::flip_x / flip_rect, so an English window takes
the same code path unchanged. Inside a control nothing turns round.
A layers list made wider than the panel by a long name (#1904)
mirrors across its whole width, so it starts scrolled to its right
end, where its rows start (stick_to_right, with a scroll state per
direction so a language switch doesn't leave it at the left end).
The Assets panel, version history, Dev Mode's layouts, the colour
picker, the toolbar, the tab bar and the home screen stay left to right.
Gap 5 had two copies of its "Missing" paragraph, left by merges: one
now.
#2468 moved SVG import onto craft_svg::tree::parse, which runs the size,
entity, attribute and nesting checks itself, but left FigCraft's own
scanners (too_wide, too_deep, nesting) and import/budget.rs unused and
import.rs unformatted: main failed cargo fmt, clippy -D warnings and the
svg tests, which still passed budget::Limits to import_within.
The dead code goes; budget_tests use craft-svg's tree::Limits (bytes,
embedded_bytes, embedded_depth) and its error texts, and hostile_tests
check attribute width with craft_svg::guard::too_wide at the default
limits and the nesting refusal at craft-svg's 256 levels.
Publishing keeps the variables its styles bind and where its copies of other libraries' assets came
from; importing files such a copy under that library when the file links it.
Without a device, a frame taller than the window scrolled its content and then panned whole, taking
fixed and sticky layers off the top. A frame with them now takes the window as its screen.
From review: the asset list follows the layers placed in the tree, so a
smaller tree (maxNodes, or the MCP tool's retry for maxBytes) means a smaller
list, and `truncated.assetsLeftOut` counts the rest; following aliases reports
`truncated.variables` when it stops at its budget with variables still to
read; and a font is checked with figcraft_text::has_family by its trimmed name,
as the missing-fonts list does, so a family stored with outer spaces isn't
taken for installed. A regression test for each fails without its fix.
From review: the variables a style binds and those an alias or colour
calculation reads are joined too, followed to any depth; fonts come from the
text layers placed in the tree, so a second target's font isn't lost to a
separate walk's budget; and a malformed `id` or `ids` entry is an error
instead of reading the selection or dropping the entry. A regression test for
each fails without its fix.
inspect.designContext and the MCP tool design_context read the selection (or
ids, or a scope) in one call. Each layer keeps apart the values the designer
set (explicit), those layout or the file worked out (derived) and those with no
direct CSS equivalent (unsupported, with the reason). The variables (every
mode's stored and resolved value), styles, components, fonts and assets the
tree uses are joined once, and `missing` says what the design doesn't specify.
A connected instance gives its code snippet instead of its layers. Large trees
are capped and say so, and the MCP tool asks for fewer layers until the result
fits the client.
A fill-only text was left as it was: Outline stroke skipped every layer
without a visible stroke. A text now flattens in place into a vector of
its glyphs, filled as the text was and keeping its colour style,
constraints, visibility and lock; a text with no glyphs stays.
A press on a layer inside a selected one now drags the selection, and a click
without a drag selects that layer (also in Dev Mode and for a single selection),
as in Figma. Cmd/Ctrl, Shift and layers outside the selection are unchanged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
transform.nudge applied the step in the parent's local space, so Down inside a frame
rotated 90 degrees moved the layer sideways. The step is now turned into the parent's
space first (falling back to the plain step if the parent's transform is not invertible).
Auto layout children are unchanged.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
Applying a style or variable, or copying or duplicating content that uses it,
inserts it; the Detach button detaches it; an instance counts as its component
alone. Show usage and library.usage give them over the chosen period.
A property added to a set goes to all its variants (component.addProperty), but
Combine as variants kept each component's own definitions, so a property made
on one component before combining was missing from the others: their layers
couldn't be bound to it ("the component has no property") and an instance
switched to one of them dropped its value. make_variant_set now gives every
variant the properties any of them has (share_props, through the give_prop step
addProperty uses too); a variant with a property of that name keeps its own.
Tests: variant_shared_props_tests.
Cmd/Ctrl+V with one layer inside a frame selected pasted onto the page on top of the frame. It now pastes into the layer's parent just above it, in an auto layout frame the item after it.
Page-level layers, several layers, instance children, board atoms, component sets and copied components keep today's behaviour.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Model-Effort: Opus 5.5 drove; Opus 5.5 briefed; Sonnet 5.5 wrote at medium
In vector edit mode, align.* and distribute.* act on the selected
points instead of moving the whole vector. The Design panel shows the
alignment row, and the existing shortcuts apply to those points.
Closes#2109.
In a hugging parent, Fill on the other axis follows the line the way
Figma does, instead of forcing the parent Fixed. This also covers item 2
of #2090 on both axes: a hugging main that becomes Fixed is followed by
its instances' roots.
Fixes#2091 item 3. Fixes#2034. Fixes item 2 of #2090.