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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user