yoi/web/workspace
Hare 4ab696b434
Merge branch 'orchestration' into impl/00001KVNG9B9Z-workspace-sidebar
# Conflicts:
#	web/workspace/src/routes/+page.svelte
2026-06-22 01:52:53 +09:00
..
src Merge branch 'orchestration' into impl/00001KVNG9B9Z-workspace-sidebar 2026-06-22 01:52:53 +09:00
.gitignore feat: bootstrap workspace web control plane 2026-06-21 16:34:36 +09:00
deno.json dev: add workspace web hot reload setup 2026-06-22 01:06:37 +09:00
deno.lock fix: declare deno workspace frontend deps 2026-06-21 22:08:37 +09:00
package.json feat: migrate workspace spa tooling to deno 2026-06-21 20:04:08 +09:00
README.md dev: add workspace web hot reload setup 2026-06-22 01:06:37 +09:00
svelte.config.js feat: bootstrap workspace web control plane 2026-06-21 16:34:36 +09:00
tsconfig.json feat: bootstrap workspace web control plane 2026-06-21 16:34:36 +09:00
vite.config.ts dev: add workspace web hot reload setup 2026-06-22 01:06:37 +09:00

Workspace web UI

SvelteKit static SPA for the Yoi workspace control plane.

The frontend is intentionally static. Workspace authority, validation, and API behavior live in the Rust yoi-workspace-server backend.

Development

Use two terminals from the repository checkout.

Backend terminal:

cd web/workspace
deno task dev:backend

Frontend terminal:

cd web/workspace
deno task dev

The Vite dev server proxies /api/* to http://127.0.0.1:8787, so frontend hot reload works while the Rust backend serves the workspace API. Open the Vite URL printed by deno task dev.

If you want to run the backend from the repository root instead:

cargo run -p yoi-workspace-server -- serve \
  --workspace . \
  --db .yoi/workspace.db \
  --listen 127.0.0.1:8787

Static build served by Rust backend

Build the SPA:

deno task build

Then serve the static build and API from the Rust backend:

cargo run -p yoi-workspace-server -- serve \
  --workspace ../.. \
  --db ../../.yoi/workspace.db \
  --frontend build \
  --listen 127.0.0.1:8787

From the repository root, the equivalent command is:

cargo run -p yoi-workspace-server -- serve \
  --workspace . \
  --db .yoi/workspace.db \
  --frontend web/workspace/build \
  --listen 127.0.0.1:8787

Checks

deno task check
deno task build