diff --git a/docs/operations.md b/docs/operations.md index 1975a32..ac93abb 100644 --- a/docs/operations.md +++ b/docs/operations.md @@ -12,7 +12,7 @@ - `internal/codex`: the `codex app-server` JSON-RPC client, with types generated from the CLI's schema by `go generate ./internal/codex` (see `docs/codex-protocol.md`). - `internal/tailscale`: `tailscale serve` for task previews (see "Previews"). - `internal/workflow`: validating workflow definitions and reading and writing their YAML files (see "Workflows"). -- `web/`: the SPA, frameworkless TypeScript compiled file-by-file to ES modules (no bundler). `web/src/*.ts` is the source; `web/src/api.gen.ts` holds types generated from `api/openapi.yaml`, and `web/src/api.ts` is the typed client over them. `go generate ./web` runs `npm ci`, regenerates the types and compiles `web/dist/`, which is committed so `go install` needs no Node. The binary embeds `index.html`, `style.css`, `dist/`, `src/` (for source maps), `fonts/` and `vendor/` (Mermaid, see "Inbox"; xterm.js, see "Terminals"). `byre serve --dev` serves `./web` from disk instead (run from the repo root); pair it with `npm --prefix web exec tsc -- --watch`. +- `web/`: the SPA, frameworkless TypeScript compiled file-by-file to ES modules (no bundler). `web/src/*.ts` is the source; `web/src/api.gen.ts` holds types generated from `api/openapi.yaml`, and `web/src/api.ts` is the typed client over them. `go generate ./web` runs `npm ci`, regenerates the types and compiles `web/dist/`, which is committed so `go install` needs no Node. The binary embeds `index.html`, `style.css`, `favicon.svg` (a lead dot in the accent colour with spokes to five task-coloured dots; its colours are copies of the `web/style.css` palette, switching with the light/dark scheme), `dist/`, `src/` (for source maps), `fonts/` and `vendor/` (Mermaid, see "Inbox"; xterm.js, see "Terminals"). `byre serve --dev` serves `./web` from disk instead (run from the repo root); pair it with `npm --prefix web exec tsc -- --watch`. ## Data diff --git a/web/embed.go b/web/embed.go index 0386191..71b44f2 100644 --- a/web/embed.go +++ b/web/embed.go @@ -5,5 +5,5 @@ import "embed" //go:generate npm ci --silent //go:generate npm run --silent generate -//go:embed index.html style.css dist src fonts vendor +//go:embed index.html style.css favicon.svg dist src fonts vendor var FS embed.FS diff --git a/web/favicon.svg b/web/favicon.svg new file mode 100644 index 0000000..1f55a26 --- /dev/null +++ b/web/favicon.svg @@ -0,0 +1,21 @@ + + + + + + + + + + + + + + diff --git a/web/index.html b/web/index.html index 57120fb..5b9f70f 100644 --- a/web/index.html +++ b/web/index.html @@ -4,6 +4,7 @@ byre +