From 7940a249868c09004fb209b221ce126460f2a504 Mon Sep 17 00:00:00 2001 From: Hirotaka Mizutani <52546+hirotaka@users.noreply.github.com> Date: Wed, 24 Jun 2026 13:51:40 +0900 Subject: [PATCH] feat: Improve Chat components --- .gitignore | 1 + AGENTS.md | 5 +- .../blocks/chat-message/ChatMessage.vue | 1 + .../blocks/chat-messages/ChatMessages.vue | 6 +- .../chat-prompt-submit/ChatPromptSubmit.vue | 14 +- .../blocks/chat-prompt/ChatPrompt.vue | 2 +- app/registry/ui/lucide-icon/LucideIcon.vue | 3 +- content/docs/2.components/2.chat-message.md | 4 +- content/docs/2.components/3.chat-messages.md | 2 +- content/docs/2.components/4.chat-prompt.md | 2 +- .../docs/2.components/5.chat-prompt-submit.md | 3 +- package.json | 4 +- pnpm-lock.yaml | 12 ++ renovate.json | 1 + scripts/registry-build.ts | 27 +++- scripts/registry-verify.ts | 133 ++++++++++++++++++ 16 files changed, 206 insertions(+), 14 deletions(-) create mode 100644 scripts/registry-verify.ts diff --git a/.gitignore b/.gitignore index 8a54be3..52c1a80 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ dist # Generated shadcn registry output public/r/ +app/registry/registry.json # Node dependencies node_modules diff --git a/AGENTS.md b/AGENTS.md index 7c11689..5b2d5db 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -11,6 +11,7 @@ Nuxt 4 documentation site with a built-in shadcn-vue component registry for dist - `pnpm lint:fix` — auto-fix - `pnpm typecheck` — `nuxt typecheck` - `pnpm registry:build` — generate registry JSON files into `public/r/` +- `pnpm registry:verify` — verify generated registry dependency metadata after `registry:build` CI order: **lint → typecheck** (no tests) @@ -32,6 +33,8 @@ CI order: **lint → typecheck** (no tests) 2. `shadcn-vue build` outputs per-item JSON to `public/r/*.json` 3. Intermediate file `app/registry/registry.json` is auto-deleted +Run `pnpm registry:verify` after `pnpm registry:build` when registry dependencies change. + Config: `registry.config.ts` and `components.json` `registries` field. ## Style conventions @@ -39,7 +42,7 @@ Config: `registry.config.ts` and `components.json` `registries` field. - ESLint stylistic: **double quotes**, **semicolons** - Tailwind v4 via `@tailwindcss/vite` plugin — no `tailwind.config` file - shadcn-vue style: `new-york`, baseColor: `neutral`, CSS variables enabled -- Icons: `lucide-vue-next` +- Icons: `lucide-vue-next` for app and local shadcn primitives; registry-distributed items targeting shadcn-vue Create may use `@lucide/vue` when fresh `shadcn-vue add` verification requires it ## Content diff --git a/app/registry/blocks/chat-message/ChatMessage.vue b/app/registry/blocks/chat-message/ChatMessage.vue index 38b7555..0038de6 100644 --- a/app/registry/blocks/chat-message/ChatMessage.vue +++ b/app/registry/blocks/chat-message/ChatMessage.vue @@ -89,6 +89,7 @@ function handleAction(e: MouseEvent, action: ChatMessageAction) {