mirror of
https://github.com/storytold/autocraft.git
synced 2026-11-29 17:44:04 +01:00
openDb() opens the process's app-key store with its database, so job processes and commands read the stored keys too, and the planner thread opens its own; readAppSecrets and the minter no longer fall back to the secrets file, which is read only for the one-time import. Stored keys the session_key cannot open are logged once and shown on the GitHub App page; a new registration may replace them. The webhook-secret copy updates only the same app's readable row. A dev server seals with its secrets file's session_key when it has one.
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.