You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 19943bf
Browse filesBrowse the repository at this point in the historyBrowse files
Bill Leoutsakos
authored and
Bill Leoutsakos
committed
fix(design): scope working-tree checks and validate Studio
Copy file name to clipboardExpand all lines: CLAUDE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,9 @@ This file (also `AGENTS.md`) holds the repo-wide rules. Area detail lives in `.c
10
10
-**Logging**: `createLogger` from `@sim/logger`; `logger.info` / `logger.warn` / `logger.error`, never `console.log`. Inside `withRouteHandler` the logger already carries the request ID — no manual `withMetadata({ requestId })`.
11
11
-**Comments**: TSDoc for documentation. An inline `//` only for a terse, non-obvious why, or for a script-enforced `// <tag>: <reason>` annotation (`boundary-raw-fetch`, `double-cast-allowed`, `boundary-raw-json`, `untyped-response`, `rq-lint-allow`, `client-boundary-allow`, …). No `====` separators.
12
12
-**ID generation**: `generateId()` (UUID v4, the default) or `generateShortId(size?)` (URL-safe, 21 chars by default) from `@sim/utils/id` — never `crypto.randomUUID()`, `nanoid`, or `uuid`. Both use `crypto.getRandomValues()`, so they also work in non-secure (HTTP) browsers.
13
-
-**Common utilities**: use the shared helpers from `@sim/utils` instead of inline implementations:
14
13
-**Design conformance**: Run `bun run check:design --base origin/staging --working-tree` while editing product UI. Reuse suitable EMCN components and global tokens; explain intentional Extras in the PR. Design findings are advisory, while an incomplete check is an error. See `scripts/design-conformance/README.md`.
15
14
-**Styling**: Derive product styling from central tokens, component props and recipes where they fit. Keep product composition local. Explain intentional changes to shared standards. Landing and docs are outside the product design check.
15
+
-**Common utilities**: use the shared helpers from `@sim/utils` instead of inline implementations:
16
16
-`sleep(ms)` from `@sim/utils/helpers` — never `new Promise(resolve => setTimeout(resolve, ms))`
17
17
-`toError(e)` from `@sim/utils/errors` — normalize caught values to `Error`; never `e instanceof Error ? e : new Error(String(e))`
18
18
-`getErrorMessage(e, fallback?)` from `@sim/utils/errors` — never `e instanceof Error ? e.message : 'fallback'`
Copy file name to clipboardExpand all lines: packages/emcn/src/AGENTS.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,4 +6,4 @@ Applies to `packages/emcn/**`. Read `.claude/rules/emcn-components.md` before ch
6
6
- Components own their exact geometry tokens (e.g. `Button` uses `rounded-[5px]`) but never their own font-weight: every primitive inherits the document 400 and steps up only deliberately.
7
7
- TSDoc for public components and APIs.
8
8
9
-
Central component, recipe and icon changes are design-system decisions. Run `bun run check:design --base origin/staging --working-tree` and explain intended shared changes in the PR. Review warnings remain visible. See `scripts/design-conformance/README.md`.
9
+
Central component, recipe and icon changes are design-system decisions. Run `bun run check:design --base origin/staging --working-tree`(using the actual PR target as the base) and explain intended shared changes in the PR. Review warnings remain visible. See `scripts/design-conformance/README.md`.
0 commit comments