mirror of
https://github.com/storytold/autocraft.git
synced 2026-12-01 10:33:55 +01:00
The runner's pod launcher stores its warm status, placement and crate mirror allowlist reads in the settings row warm_report (bumping the envs topic only). GET /api/envs/caches and autocraft-server envs caches combine it with the warm tasks, default-branch heads and warm targets: the warm state per repository, what each node holds and has pending, where each key is placed and whether the placed nodes hold its newest version, and the mirror's git allowlist.
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.