refactor(ui): standardize boolean inputs on ToggleSwitch
Build / build (push) Successful in 11m22s

Replace raw <input type="checkbox"> with the ToggleSwitch component on
sites/[id] (encrypt-secret), sites/new (render-markdown, enable-storage),
and stacks/new (deploy-immediately). Document the convention in CLAUDE.md
so future forms keep the same control instead of mixing styles.
This commit is contained in:
2026-05-07 00:57:18 +03:00
parent a4362b842d
commit 134fe22fde
4 changed files with 23 additions and 40 deletions
+4
View File
@@ -8,3 +8,7 @@ Start/restart with: `./scripts/dev-server.sh`
- Auto-generates `ENCRYPTION_KEY` if not set
- Default login: `admin` / `admin123`
- Override port: `LISTEN_ADDR=:9000 ./scripts/dev-server.sh`
## Frontend
- **Boolean inputs use `ToggleSwitch`** (`$lib/components/ToggleSwitch.svelte`) — the slide-style switch is the unified control across the WebUI. Do not introduce raw `<input type="checkbox">` elements; place a `<ToggleSwitch>` next to a label/help block instead.