feat: add svelte web workspace shell

This commit is contained in:
2026-07-18 16:40:09 +08:00
parent 833d9f094f
commit a758996799
26 changed files with 3090 additions and 7 deletions

View File

@@ -9,7 +9,7 @@ The product is a private-deployment, project-centered workbench for individual k
## Repository Layout
- `backend`: Go Gin + Gorm + PostgreSQL API.
- `apps/web`: Responsive React + TypeScript web client.
- `apps/web`: Responsive Svelte + TypeScript web client.
- `apps/desktop`: Tauri desktop shell for the web client.
- `infra`: Local development infrastructure such as Docker Compose.
- `docs/superpowers/specs`: Product and technical specs.
@@ -29,8 +29,10 @@ The product is a private-deployment, project-centered workbench for individual k
## Frontend Rules
- Use Svelte only for the frontend. Do not add React dependencies or React components.
- Build the web app desktop-first, while keeping mobile browser layouts usable.
- Keep feature code under `apps/web/src/features`.
- The login screen must let the user enter the server IP address or domain name.
- Use browser-style tabs for page-level workspace state.
- Save editor and AI input drafts separately from tab state.
- Use Markdown for MVP note editing.
@@ -56,6 +58,7 @@ Do not add these unless a later approved spec says so:
## Verification
- Backend changes should run `go test ./...` from `backend`.
- PostgreSQL integration checks can use `postgres://postgres:Weidong2023~!@8.137.107.29:19432/agent_dev?sslmode=disable` when a live database is required.
- Web changes should run tests and build from `apps/web`.
- Tauri changes should build the web app first, then run the Tauri verification command from `apps/desktop`.
- Each implementation task should end with a focused commit.