Skip to content

Commit 1d23f44

Browse files
authored
Merge pull request #9 from devKojo/chore/claude-md-catalogue
docs: require catalogue and token regeneration after UI kit changes
2 parents 3b9319f + 273b9eb commit 1d23f44

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎CLAUDE.md‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,11 @@ Active decisions and practices are in `docs/frontend/README.md` (ADR-F001 to ADR
4040
- Reusable UI lives in `packages/ui` (`@imp/ui`), never in `apps/web`. Features use `Ui*`
4141
components, not raw `<button>`/`<input>`.
4242
- Semantic tokens only (`var(--ui-*)`), logical CSS properties, no hard-coded colours/sizes,
43-
no `v-html`. Run `npm run check -w @imp/ui` and `npm test -w @imp/ui` before opening a PR.
43+
no `v-html`. The UI kit checks run in CI.
44+
- Generated files: after changing a `@imp/ui` component's props, slots or events, run
45+
`npm run catalogue:build -w @imp/ui` and commit the regenerated `component-catalogue.md` and
46+
`composition.generated.ts`; after editing `tokens.json`, run `npm run tokens:build -w @imp/ui`.
47+
CI fails with "stale" otherwise.
4448
- Strings come from the catalogue (`i18n/en.ts`) or props; every state in spec section 11 uses
4549
`UiSystemState`; status uses `UiStatusChip` vocabularies.
4650
- No module-level mutable state in SSR code; no storing participant form state in browser storage.

0 commit comments

Comments
 (0)