A handled startup error is a controlled return: only a caught panic keeps the
Nightly session record (finish_after(outcome.is_ok())), and the unclean-session
notice no longer replaces a graphics, plug-in or hang message that is already up.
The profile fences cover HOME's own XDG folders when an override moves the
effective ones, a dangling stable entry point keeps its fence instead of
refusing every launch, and an empty VECTORCRAFT_NO_PREFS is refused as the app
treats it. The recovery store refuses to write through a linked entry, as it
already refused to read one.
The Arch handoff stages the GUI in the hidden folder and leaves the launcher in
place; the launcher answers a version, help or Launcher query before it needs a
profile root; the archive collision test follows the volume's case rule; the
Windows nightly copies ASSETS.md, builds into the target folder it then reads,
and the stable packager refuses an executable with no stable VERSIONINFO; the
macOS signing fixtures name no credential and no /tmp.
`a_nightly_never_checks_downloads_or_installs_an_update` panicked on `dialogs().unwrap()`:
the host exists only after the app's first frame, and the test never ran one (the neighbouring
test in the module uses `crate::unsaved::ready_for_test`). It now runs that frame first and
asserts the frame itself opens no dialog, then keeps the tick/pump/exit-hook checks. Verified
with `cargo +1.100.0 test -p vectorcraft-ui-egui --lib -- updates_ui::tests::a_nightly…`: 1
passed.
The pinned candidate validator needs each reviewed issue type to map from an accepted gate
condition, and the installed policy does not. Note that the policy is corrected in the activation
review with Skylar before any run, since the callers cannot run before then.
- `nightly_compile_gui` calls `nightly_refuse_signing_env` before cargo, so an exported signing
key cannot reach the compiler or any dependency build script. The helper existed but no path
called it.
- Drop the Sonar issue-scope helper and its fixture that 6b38347326 carried: they assert a policy
contract the installed policy does not meet, and the policy is reviewed separately, so the suite
must not decide it here. The push-block helper and its fixture stay.
The push: assertion matched contiguous four-space lines, so a path filter after a blank
line (still inside the mapping) escaped it. It now walks the block by indentation and rejects
paths and paths-ignore, with a test for the blank-line case. Carried over from the batch-1
review work in this worktree; the suite passes here (21 tests).
`cargo xtask assets` failed shard 5: every asset file must be listed with author,
source and licence. The four `assets/app-icon/vectorcraft-nightly.*` files are recoloured from
the stable tile by packaging/nightly-icons.py; they are now listed beside it.
The repo's own packaging guard (xtask bundle::tests::packaging_describes_a_vector_app)
refuses raster-editor wording anywhere under packaging/, and the nightly signing tests used
`photocraft-signing.keychain-db` to stand for another app's keychain. The fixture is
`another-app-signing.keychain-db`; the assertion is unchanged (only
`vectorcraft-signing.keychain-db` is this run's).
The cognitive-complexity fix moved the channel setup into `control_channel`, whose
return type then tripped `type_complexity` under `-D warnings`. A one-line alias keeps both
lints quiet without changing behaviour.
clippy's cognitive_complexity limit is 30 and main reached 39: the nightly profile, the
process identity, the control channel, the startup log and the session record were inline.
They are helpers now, in the order they ran; main keeps only calls, so its complexity is the
stable one again. Exit statuses and messages are unchanged.
shellcheck reads `A && B || C` as a possible false branch: C may run when A is true.
The check and its refusal are now an explicit `if`, with the same behaviour and message.
Closes every finding in the batch-1 review of our two commits:
- main.rs: the version log line passed a call as an inline format argument (a compile
error); it is now a positional argument. Same for the joined-flag test in
launch_profile.rs.
- profile_root.rs: the accepted Windows + FLATPAK_ID case creates the root, so the
"a refused launch creates nothing" assertion could not hold; it is now made per
refused case, and the accepted case cleans up after itself.
- The updater is off in a Nightly: the runtime keeps no Updater unless
os_window::stable_services_allowed(), tick/pump/start_pending_update return early
without one, and Help > Check for Updates says ArtCraft Launcher manages the
Nightly's updates instead of offering a stable release (whose records live in the
stable app's folders the profile fence refuses). New test.
- AppInfo.id stays "vectorcraft" in both channels (it is the craft-settings id a
theme's [apps.<id>] pins key on); only name and version vary. New test.
- A caught panic no longer clears the session record: nightly_session::release()
drops the lease and keeps the record. New test.
- The Nightly window title and drawn title bar carry "VectorCraft Nightly". New test.
- .gitignore gains __pycache__/ (the producer checks for a clean tree).
- nightly-signing-tests.ps1 names the real HEAD and run date, so Assert-NightlySource
passes and the mocked compiler boundary is what stops the run.
- eframe's persistence_path is a folder of its own (<profile>/eframe), not craft's
window.json file; the docs stop claiming an app.ron is written today.
Standard Nightly layout: `<app>` is the launcher and `<app>-bin` the GUI it starts, in
every Linux format, through one launcher (packaging/linux/nightly-launch.sh, replacing
the per-format heredocs and nightly-arch-launch.sh): tar vectorcraft/vectorcraft-bin,
deb+rpm /usr/bin/vectorcraft-nightly + /usr/lib/vectorcraft-nightly/vectorcraft-bin,
AppImage AppRun + usr/bin/vectorcraft-bin, Arch bin/vectorcraft +
bin/.vectorcraft-nightly/vectorcraft-bin, Flatpak /app/bin/vectorcraft +
/app/libexec/vectorcraft-bin. It finds the GUI from its own directory, adds
--launch-profile nightly-v1 --profile-root ... --, and passes a version/help query, the
Launcher's own invocation or a caller-written -- through untouched. New suite
packaging/linux/nightly-launch-tests.py drives all five placements; the archive policy,
its tests, the arch test and the docs follow the layout. The nightly deb/rpm tree also
stops shipping stable's /usr/bin/vectorcraft-cli beside the nightly CLI. The Nightly tar
ships the Nightly art instead of stable's icon.
Deviation recorded in RESULT.md: the refusal message still goes to standard error rather
than a native dialog (workspace denies unsafe_code, winsafe is wgpu-only, a dialog crate
would change Cargo.lock; a modal box also risks hanging a headless run).
Second commit on top of Dylan Taylor's #9233; his commits, names and files stay his.
The nightly build refuses VECTORCRAFT_CONFIG_DIR (its profile root comes from the Launcher), so his
wrappers, which set that variable, would have been refused at startup. Every one of them now passes
the protocol instead - `--launch-profile nightly-v1 --profile-root <dir> --` - with the exact
--version/-V passthrough kept in front, because a version flag after `--` is a file name:
- the deb/rpm wrapper in packaging/linux/package.sh;
- the AppImage AppRun (a script, not a symlink);
- the Flatpak wrapper in packaging/linux/flatpak-bundle.sh;
- the Arch launcher, and its test;
- and a new launcher inside the flat nightly tar (packaging/linux/nightly-launch.sh), so an
unpacked tar is isolated too; the archive helper allows exactly that one extra member.
The profile folder is `${XDG_DATA_HOME:-$HOME/.local/share}/vectorcraft-nightly` everywhere:
outside every stable boundary and inside the nightly Flatpak's own sandbox home.
profile_root now accepts the nightly's own Flatpak instance (ai.storyteller.vectorcraft.nightly) and
refuses the stable app's or any other, with a test; before, any FLATPAK_ID was refused, which
PhotoCraft can do and this app cannot.
The nightly CLI is wrapped again: it stays in /usr/lib/vectorcraft-nightly and a
vectorcraft-nightly-cli wrapper exports the VECTORCRAFT_CONFIG_DIR the CLI honours, so it no longer
reads the stable profile.
nightly-common.sh now requires exactly `VectorCraft <version> (nightly-v1)` rather than a bare
`vectorcraft ` prefix, so a stable or wrong-identity binary fails the build.
Already right here: the window class matches the nightly desktop entry (os_window::app_id), the
nightly metainfo declares no mediatypes, the nightly build needs no extra features, and
sonar.coverage.exclusions already covers packaging/**.
Co-authored-by: dylanmtaylor <dylan@dylanmtaylor.com>
Co-authored-by: skylartaylor <skylartaylor@users.noreply.github.com>
Ports PhotoCraft's nightly flavor into VectorCraft, on top of Dylan Taylor's Linux
packaging (#9233), and credits him there.
Build side: VECTORCRAFT_BUILD_CHANNEL=nightly-v1 emits cfg(vectorcraft_nightly_v1);
build.rs embeds the exact feed identity (VECTORCRAFT_VERSION, or the
VECTORCRAFT_OVERRIDE_VERSION this repository's packaging already passes) as
VECTORCRAFT_BUILT_VERSION, with the nightly icon, ProductName "VectorCraft Nightly"
and ProductVersion for the Launcher's check.
Launch side: prepare_launch() is the first thing main does. It answers --version, -V
and the Launcher form (--launch-profile nightly-v1 --profile-root <abs> --version) with
"VectorCraft <version> (nightly-v1)" before root validation, logging, IPC or any
window; parses the strict selector/root protocol; refuses a nightly without a profile
and a stable build with one; sets the Windows AUMID and the window identity
(ai.storyteller.vectorcraft.nightly-v1); and installs the private data root.
Isolation: profile::install_data_root makes the validated profile the one folder every
data path follows - config.toml, logs, hang reports, the GPU start record, Data
Recovery, plug-ins, fonts, the user's libraries, script data, PDF presets, the
single-instance record - and the nightly alone gets eframe's persistence_path and the
framework's window.json inside it. profile_root fences the profile off every stable
folder, the installation, a portable copy and the shared env overrides on each OS.
The updater, the control channel and the automation roots stay off; a nightly session
record reports an unclean exit once and is finished on on_exit (the macOS Cmd+Q path);
a hand-off child inherits the profile.
Packaging: packaging/windows/nightly.ps1 with the -Nightly/-BuildOnly hook,
the stable refusal of a nightly executable, sign.ps1 -Required/-CheckOnly/
-CheckBuildEnvironment, and their PowerShell suites; packaging/macos/nightly.sh,
nightly-lib.sh, nightly-sign.sh, nightly-verify.sh and nightly_plist.py with their
tests; nightly art (deeper field, unchanged figure) from the committed tile;
nightly_paths.py and the archive tests for the Linux helper; a doc section; and
nightly-check.yml (synthetic + Windows suites) and nightly-macos.yml (full-ci).
Co-authored-by: dylanmtaylor <dylan@dylanmtaylor.com>
Co-authored-by: skylartaylor <skylartaylor@users.noreply.github.com>
- Remove invalid 'queue: max' key from .github/workflows/nightly-sign.yml
concurrency block (fixing actionlint syntax-check) and update
packaging/nightly-release-tests.py accordingly.
- Preserve explicitly empty VECTORCRAFT_CONFIG_DIR='' in Linux deb/rpm,
AppImage, Arch, and Flatpak wrappers by checking unset state with +x,
and add an empty-override test case to nightly-arch-tar-test.sh.
- Include '-nightly' in BASENAME for channel-only Nightly builds so
AppImage/zsync artifact names match the Nightly UPDATE_INFO pattern.
Ports Skylar's (@skylartaylor) storytold/photocraft#16594 into VectorCraft:
- Add .github/nightly-signing-policy.json (v3 policy adapted for storytold/vectorcraft,
CI workflow 380135806, and SonarCloud project storytold_vectorcraft; 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
storytold/craft-common-actions@605d58766e for supervised
manual workflow_dispatch runs by the reviewed release-managers list
- Add docs/nightly-release-preparation.md and packaging/nightly-release-tests.py
Credit: @skylartaylor (storytold/photocraft#16594)
Co-authored-by: skylartaylor <hi@skylar.cc>
The row's help joins its notes with the setting's own sentence, which names
VECTORCRAFT_TITLEBAR too, so on Linux the check held with the variable unset.
Fixes main's red Linux gate leg 1 (`panels::glyphs::tests::east_asian_glyph_forms_in_the_panel_menu_set_the_selected_characters_form`, `glyphs/tests.rs:243`). It was a real bug on every platform. The test skips without the craft fonts, so only Linux CI ran it.
**Cause.** The Glyphs panel menu's East Asian glyph form rows read the selection's faces from a cache that only the shown panel's `show` filled. With the panel hidden, the cache was empty, and the "unknown" arm enabled every form, so JIS 2004 was offered for a font with no `jp04`. Production always read the faces when it built the items (prod `panels/glyphs.rs:1407`, `:1492`).
**Fix.** `form_faces` returns the cached faces while their key is current and reads them otherwise, as `symbols::instance_flags` does. The unknown-means-enabled arm is gone. `refresh_form_faces` runs from the menu rebuild next to `symbols::cache_instances`, so the faces are read once per change of document, selection or fonts, whether or not the panel is shown.
Checks: `vectorcraft-ui-egui` lib tests 3779 passed, 0 failed, with `CRAFT_FONTS_DIR` set so the glyph tests run in full. Clippy (`-D warnings`, all targets) and `cargo fmt --check` are clean.
The Contextual Task Bar for direct-selected anchor points draws Convert Selected Anchor Points to Corner and to Smooth as icon buttons, named and tooltipped by their label, as production did (prod `canvas/task_bar.rs:953` `icon_only`). The port had spelled out both labels, which made the bar very long.
Checks: `task_bar` and `tests::taskbar` tests 44 passed; clippy (`vectorcraft-ui-egui`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
VectorCraft's controls, padding, gaps, type and corners take production's sizes, through the framework's size layer in one place: the app's `AppSizes` block (`crates/ui-egui/src/theme.rs` `SIZES`, under `compact`). Every component follows; nothing is set per component.
| Metric | Production (source) | Before | Now |
|---|---|---|---|
| Field and spinner height (`size.control.md`) | 26 (`widgets/text.rs:266`, `widgets/numeric.rs:1251`) | 24 | 26 |
| Panel inset (`space.pad.regular`) | 10 (`dock.rs:12`) | 8 | 10 |
| Row gap (`space.gap.row`) | 5 (`theme.rs:646`) | 4 | 5 |
| Panel tab strip | 33 (`panel_docking.rs:1508`) | 28 | 33 |
| Body / label / caption type | 13 / 12.5 / 11 (`theme.rs:655-656`, `labels.rs:11`) | 12 / 11.5 / 10.5 | 13 / 12.5 / 11 |
| Field and control corners | 5 (`text.rs:283`) | 3 | 5 |
| Menus and popups | 8 (`theme.rs:627`) | 4 | 8 |
| Windows and dialogs | 10 (`theme.rs:626`) | 6 | 10 |
Compact density stays: Comfortable's 30pt controls, 38pt title bar and 12pt control corners are all larger than production's. The title bar stays 32, as production's. Push buttons now share the 26pt control height; production's text buttons were 24.
Tests:
- `panels::tests_effectedit::effect_rows_drag_to_reorder_and_into_an_item`: the drop offset goes back to production's +9.
- `chrome::tests::label_links_open_their_panels`: its Control bar fixture is wider (2400) to fit production's type; assertions unchanged.
Both are listed in the port's test map.
Checks: `vectorcraft-ui-egui` lib tests 3779 passed, 0 failed. Clippy (`vectorcraft-ui-egui`, `vectorcraft`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
More of the window's chrome looks like production's VectorCraft, through craft-libs options already on the app's pin.
- **Title bar:** drawn on the background surface, as production's app bar was. Its trailing items leave by rank as the window narrows (Discord, then Learn, then Arrange, then the search) before the menus fold, as production's did.
- **Search:** the command search is a field (`CommandSearch`).
- **Workspace switcher:** quiet, and as wide as the workspace it shows.
- **Menus:** menu titles sit closer together (`MenuTitlePad::Control`).
- **Document tab:** the unsaved mark follows the document's name: "Untitled-1* @ 92 % (RGB/Preview)".
- **Status bar:** the position and timings sit at the bar's end and leave first when it narrows.
- **Tools rail:** shown as a card on the dock's background (`rail_cards`). Window › Toolbars › Compact packs it densely.
- **Option links** ("Opacity:", "Style:", "Character:" and the Appearance list's links) are drawn in the normal ink with an underline, as production drew them. Links that leave the panel's subject keep the accent. The Stroke field's label link still takes the accent; it needs a framework option and follows separately.
Tests: the app-bar fit test now expects the search field to keep its width until it drops; production narrowed it to its icon first. A framework option for a ranked unit with a short form is an open follow-up.
Checks: `vectorcraft-ui-egui` lib tests 3780 passed, 0 failed. Clippy (`vectorcraft-ui-egui`, `vectorcraft`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
More of the port looks like production's VectorCraft. VectorCraft moves to craft-libs `next` at a4b6d3b6c (the pdf-deps check with it) and switches on the framework's new opt-in looks.
- **Highlights:** every icon button that is on shows production's highlight, the pressed fill (`#633f3e` in Medium Dark, production's `tool_active`) with no accent edge (`ActiveLook::Pressed` at the root, and on the tool rail). This covers the current tool, Snap, Guides and the panel toggles.
- **Paint chips:** Fill and Stroke chips show the dropdown arrow. The task bar's chips are compact, and the tool rail's colour chips are swatches.
- **Contextual Task Bar:** one rounded grip bar, members an item gap apart, and the bar hangs clear of the selection handles.
- **Properties:** the object-kind title is quiet (muted caption). "Ellipse Properties:" and the Align and Pathfinder sub-headings are production's sub-headings (normal ink, no rule). The Align panel draws production's divider above its options.
- **Labels:** glyph captions take a form's colon (X:, Y:, W:, H:); "#" and the colour channel letters stay bare.
- **Dock:** every panel group shows the panel menu button with the ≡ icon.
- **Status bar:** the help icon is production's 16 px.
Checks: `vectorcraft-ui-egui` lib tests 3779 passed, 0 failed. Clippy (`vectorcraft-ui-egui`, `vectorcraft`, `xtask`, all targets, `-D warnings`) and `cargo fmt --check` are clean. The active tool's fill was sampled from an offscreen render of the whole window: `#633f3e`, production's.
Fixes main's two red Linux gate legs.
- **Leg 5 (`pdf-deps`)**: `xtask/src/pdf_deps.rs` pinned craft-libs `945e849cb`, the revision before #9211, so the check failed once the app moved to `3238a3eca`. It now expects `3238a3eca`; `cargo xtask pdf-deps` passes.
- **Leg 1 (`original_editor::tests`)**: the test helper `editor()` called `set_mode` on a copy of the file's permissions and never applied it, so on Linux the stand-in editor had no executable bit and the platform's application check (craft-libs `platform/src/open.rs`, `mode() & 0o111 != 0`) refused it. `native_choice_commits_persists_cancels_and_resets` and `original_editor_async_picker_validates_and_commits_only_on_ok` failed on Linux only; this leg was already red before the re-pin. The helper now writes the mode with `set_permissions`.
Checks: `original_editor` tests pass on Windows (6/6; the Linux path is what this PR's CI checks); clippy (`vectorcraft-ui-egui`, `xtask`, all targets, `-D warnings`) and `cargo fmt --check` are clean.
The app bar's Discord button loses its outline: it now takes the app's default push-button look, a filled tile with no edge at rest and the hover fill on hover, as production's app bar drew it (`t.button` fill, `t.hover` on hover, no stroke). Discord's colour stays on its icon alone.
Checks: `chrome::` and `community` tests 62 passed; clippy (`vectorcraft-ui-egui`, all targets, `-D warnings`) and `cargo fmt --check` are clean.