diff options
| author | Adam Malczewski <[email protected]> | 2026-06-07 14:07:12 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-07 14:07:12 +0900 |
| commit | 2663fe7f7b7eb438dc295fe9dea221aa8b8b8f81 (patch) | |
| tree | 03d419553785d1beae73bbc304fe4b640557cadd | |
| parent | b3f0d4101e4335f5fb1da6f053f771bd5d073530 (diff) | |
| download | dispatch-web-2663fe7f7b7eb438dc295fe9dea221aa8b8b8f81.tar.gz dispatch-web-2663fe7f7b7eb438dc295fe9dea221aa8b8b8f81.zip | |
docs(harness): add frontend-styling rule + parallel-build verify caveat
- add .dispatch/rules/frontend-styling.md (DaisyUI v5 + dracula; thin components)
- package-agent: verify section explains whole-project svelte-check under
parallel builds (judge only YOUR files)
| -rw-r--r-- | .dispatch/package-agent.md | 8 | ||||
| -rw-r--r-- | .dispatch/rules/frontend-styling.md | 12 |
2 files changed, 18 insertions, 2 deletions
diff --git a/.dispatch/package-agent.md b/.dispatch/package-agent.md index c98b326..73e960c 100644 --- a/.dispatch/package-agent.md +++ b/.dispatch/package-agent.md @@ -61,8 +61,12 @@ the read — STOP and write the need in your report, then end. - **Strict TS:** respect `exactOptionalPropertyTypes` + `noUncheckedIndexedAccess`. ## Verify before finishing — YOUR UNIT IN ISOLATION -Run, and paste the output into your report: -- `bunx svelte-check --tsconfig ./tsconfig.json` → 0 errors +Sibling units may be built IN PARALLEL, so do NOT judge yourself by the whole project. +`svelte-check` is whole-project: if it reports errors in files OUTSIDE your unit's directory, +that is concurrent work-in-progress — IGNORE it and ensure only YOUR files (plus any existing +consumer you must not break) are error-free. The SCOPED checks below are your authoritative +signals. Run them, and paste the output into your report: +- `bunx svelte-check --tsconfig ./tsconfig.json` → 0 errors in YOUR files - `bunx vitest run src/<your-dir>` → all pass (count goes up) - `bunx biome check src/<your-dir>` → clean The orchestrator runs the authoritative full `typecheck`/`test`/`check`/`build`. diff --git a/.dispatch/rules/frontend-styling.md b/.dispatch/rules/frontend-styling.md new file mode 100644 index 0000000..e123619 --- /dev/null +++ b/.dispatch/rules/frontend-styling.md @@ -0,0 +1,12 @@ +# Rule: styling is DaisyUI v5 + the dracula theme (UI units only) + +The global stylesheet already enables **DaisyUI v5** with the **dracula** theme +(`data-theme` on `<html>`). Do NOT add or change theme config, re-import Tailwind/DaisyUI, +or hand-roll a design system — just apply DaisyUI / Tailwind utility classes in your +`.svelte` files (e.g. `select`, `textarea`, `btn btn-primary`, `tabs`, `chat chat-start` / +`chat-end` + `chat-bubble`). + +Keep components THIN: a `.svelte` file wires props/events to pure logic and applies classes +— it holds NO business logic (that stays in `logic/` / the reducer). Render plain semantic +HTML decorated with classes. biome lints `.ts`/`.js` only; `.svelte` correctness is +`svelte-check`'s job. |
