Files
artcraft/frontend
Dylan M. Taylor 4ecd4b7eea Add manual verified updates and bump ArtCraft to 0.42.1 (#2835)
ArtCraft’s Help menu has news but no application update check, and its
Flatpak cannot invoke the host updater. Add **Help → Check for
Updates…** with background checks, current/available versions, explicit
Update and restart, progress and failure states, and Releases fallback.
Browser users are offered a reload and the desktop releases.

Use the same verified `craft-update` core as the native Craft apps,
pinned to the immutable reviewed commit in
https://github.com/storytold/craft-libs/pull/970. Keep ArtCraft’s
existing `ai.artcraft.app` identity and release naming. Honor launcher
pins, reject active generation tasks before download and again before
replacement, preserve the native window during installation, defer the
helper until accepted exit, and report helper outcomes on startup.
Registered NSIS copies use Releases; they are not overwritten as
portable folders.

Grant the host update interface and read-only launcher choices in the
existing Flatpak manifest. No frontend network-policy expansion. Add a
separate version commit changing the canonical Tauri configuration and
display version to **0.42.1**, with a regression keeping them
synchronized. Once this and the shared-library prerequisite are green
and merged, merge main into the release branch, finish all platform
drafts, verify signed checksums/assets, and publish.

Validation: native all-target cargo check inside GNOME SDK 51; all six
focused Rust updater tests; all ten Help-menu/UI tests; TypeScript
project build; production frontend build; Flatpak permission regression
red before and green after. All six native SDK tests also pass at the
final 0.42.1 version. The existing lockfile needs compatible chrono and
crc32fast updates for the shared updater; other dependency revisions are
preserved.
2026-11-11 21:36:49 -05:00
..
2026-09-11 14:19:51 -04:00
2026-09-27 14:48:34 -04:00
2026-09-11 14:19:51 -04:00
2026-09-11 14:19:51 -04:00
2026-09-11 14:19:51 -04:00
2026-09-11 14:19:51 -04:00
2026-09-11 14:19:51 -04:00
2026-09-11 14:19:51 -04:00

Artcraft frontend

This Nx workspace contains the Tauri desktop frontend in apps/artcraft and its shared libraries in libs. Website and Netlify builds live in artcraft-services.

Use Node.js 20 or newer and npm. Run the following commands from frontend/:

npm ci
npx nx dev artcraft
npx nx build artcraft

The frontend development server uses port 5173. Start the Rust app separately from the repository root:

./script/artcraft/unix_rust_dev.sh

The repository-root frontend launcher installs dependencies and starts the same server:

./script/artcraft/unix_frontend_dev.sh

On Windows, use script/artcraft/windows_frontend_dev.ps1 and script/artcraft/windows_rust_dev.ps1 in separate terminals. See development setup for Rust and Tauri prerequisites.

The Vite build writes apps/artcraft/dist, which Tauri bundles. Public resources come from apps/artcraft/app/public. The app also needs its retained libraries, root package lock, TypeScript project references, and Nx/Vite configuration. The aliases in tsconfig.base.json resolve shared libraries to their source for both development and production. The app's Vite configuration loads this file explicitly so imports inside shared libraries use the same aliases. The desktop build does not require library dist/ outputs or a separate library build.

Import shared libraries by the names declared in their package.json files:

import { Button } from "@storyteller/ui-button";
import { Modal } from "@storyteller/ui-modal";

Use the workspace-local Nx version through npx nx. npm ci and the release workflows use the checked-in lockfile; do not reinstall different Nx versions inside CI.

clean_modules.sh is an explicit cleanup command that removes build outputs, Nx caches, and frontend dependencies. Do not run it when preserving local build outputs during repository pruning.