From 54fce6273cfc2fc18b296e5bc976d836f48824fd Mon Sep 17 00:00:00 2001 From: Sam Dornan Date: Sat, 12 Sep 2026 15:44:19 +0000 Subject: [PATCH] docs: correct stale Vuetify claims in v2 skills and architecture doc The v2 skills described a Vuetify-backed component layer that v2 no longer has: src/v2/ contains zero `from "vuetify"` imports and zero `` tags. Agents following the skills would write code against a layer that is gone. Corrected across the four frontend-v2 skills: - layout guidance (Vuetify utility classes) now describes scoped CSS + tokens - wrapper contract reframed around attribute forwarding, not Vuetify wrapping - RForm wraps a native
, not v-form; rules are plain functions - RVirtualScroller is a custom windowed list, not a v-virtual-scroll wrapper - overlay scope rationale now cites the primitives' own Teleport to body, and drops the RDialog .v-overlay__content override that no longer exists - scroll restoration describes the scrollRestoration store actually in use Also dropped four Known debt entries that are implemented and wired (virtualisation migration, useGalleryFilterUrl, scroll restoration, useSocketEvent). FRONTEND_ARCHITECTURE.md documents v1 only but never said so, reading as repo-wide. Added a scope banner pointing at the v2 skills, marked the Vuetify/Tailwind rows v1-only, corrected the Tailwind version to 4.3.1, and noted that the Tailwind import lives in console/index.css which main.ts loads app-wide. Co-Authored-By: Claude Opus 5 Claude-Session: https://claude.ai/code/session_01LnHWknZwwZcm89JuXjrugK --- .../skills/frontend-v2-components/SKILL.md | 14 +++++------- .claude/skills/frontend-v2-input/SKILL.md | 2 +- .claude/skills/frontend-v2-patterns/SKILL.md | 8 +++---- .claude/skills/frontend-v2-theming/SKILL.md | 13 +++++------ docs/FRONTEND_ARCHITECTURE.md | 22 +++++++++++-------- 5 files changed, 28 insertions(+), 31 deletions(-) diff --git a/.claude/skills/frontend-v2-components/SKILL.md b/.claude/skills/frontend-v2-components/SKILL.md index 094b59fd7..a2471581d 100644 --- a/.claude/skills/frontend-v2-components/SKILL.md +++ b/.claude/skills/frontend-v2-components/SKILL.md @@ -19,9 +19,9 @@ Related skills: `frontend-v2-theming` (tokens/colors), `frontend-v2-input` (focu 2. **Three component tiers** (below). 3. **Shared resources are canonical.** Pinia stores, API services, OpenAPI types (`src/__generated__/`), locales, utils — v2 _imports_ them, never forks them. Additive changes to shared resources are allowed; changing a shared store API to work around a v2 call-site issue is not. 4. **TypeScript strict.** Zero `any` (justify with a comment if unavoidable). No `as unknown as ...`; fix the source or define an intermediate type. -5. **Universal substitution.** When an `R*` primitive exists, use it. If it doesn't, create or extend it. Never drop to raw HTML or raw Vuetify when a primitive applies. -6. **Wrapper contract.** Wrappers around Vuetify use `defineOptions({ inheritAttrs: false })` + `v-bind="$attrs"` + slot passthrough, and accept every prop/slot of the wrapped component. -7. **Layout via Vuetify utility classes + our wrappers, not plain CSS.** Use `d-flex`, `pa-4`, `align-center` directly. Vuetify layout components (`v-row`, `v-col`, `v-container`, `v-spacer`, `v-app`, `v-main`) get wrapped as `R*` on first use (lazy). +5. **Universal substitution.** When an `R*` primitive exists, use it. If it doesn't, create or extend it. Never drop to raw HTML when a primitive applies. +6. **Attribute forwarding contract.** A primitive whose root is polymorphic (``) or that forwards to an inner element uses `defineOptions({ inheritAttrs: false })` + `v-bind="$attrs"` + slot passthrough, so call-site attrs and listeners land on the intended node instead of vanishing silently. +7. **Layout in scoped CSS against tokens.** v2 uses no utility-class framework and no component library: no Tailwind, no Vuetify. Write `display: flex` / `gap: var(--r-space-*)` in the component's own `