mirror of
https://github.com/storytold/autocraft.git
synced 2026-11-29 17:44:04 +01:00
Offline steps that mount the build dirs run rustc through sccache against the read-only WebDAV endpoint set with --sccache-url, when the repo has a CI gate. sccache keys a compile on the compiler, its own release, the arguments, every CARGO_* variable and the working directory, so a cached step matches the gate's job: the CI checkout path with its default target dir, CARGO_HOME, the gate's job env (CARGO_TERM_COLOR given to rustc only), dev-strip, and the store sccache/<cache-version>. The pod carries craft.build/cache=read; the step ends with sccache --show-stats. The rust-stable image pins Rust 1.100.0 and installs the checksum-verified sccache 0.18.0 release.
Triage dashboard frontend
React + TypeScript + Vite + Tailwind. Design: docs/ui-design.md.
pnpm install
pnpm dev # http://127.0.0.1:5173, mock API with fixture data
pnpm build # tsc, then dist/ (no inline scripts or styles; fonts bundled)
VITE_MOCK=1 pnpm build # the mockup: dist/ on fixture data, no server needed
A normal build talks to the dashboard server's JSON API (src/api/http.ts), and
the server serves dist/ behind sign-in. The dev server and the mockup build run
against createMockApi() (src/api/mock/); pick the signed-in role with
?as=operator|maintainer|viewer or the user menu.
A feature is a module in src/modules/<name>/ listed in src/registry/index.ts.