From 3ecfe7b3f52bdae2ab37c5b40051f365e231a75d Mon Sep 17 00:00:00 2001 From: OG T Date: Thu, 2 Apr 2026 09:09:25 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=B8=85=E7=90=86=20NemoNodeAnimation?= =?UTF-8?q?=20=E6=AE=98=E7=95=99=20+=20=E4=BF=AE=E5=BE=A9=20Migration=20YA?= =?UTF-8?q?ML?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 nemo-node-animation.tsx (無人引用,已被 NemoClaw 取代) - Migration YAML: 修復 $$ 在 YAML heredoc 被 shell 解析問題 改用單引號字串 DO '' 語法 Co-Authored-By: Claude Opus 4.6 (1M context) --- .../src/components/ai/nemo-node-animation.tsx | 98 ------------------- k8s/jobs/migrate-knowledge-entries.yaml | 33 +------ 2 files changed, 4 insertions(+), 127 deletions(-) delete mode 100644 apps/web/src/components/ai/nemo-node-animation.tsx diff --git a/apps/web/src/components/ai/nemo-node-animation.tsx b/apps/web/src/components/ai/nemo-node-animation.tsx deleted file mode 100644 index b48d25eb..00000000 --- a/apps/web/src/components/ai/nemo-node-animation.tsx +++ /dev/null @@ -1,98 +0,0 @@ -'use client' - -/** - * NemoNodeAnimation - NemoClaw 截圖風格節點動畫 - * ================================================ - * 72×72 SVG,白底圓形 + 漸層藍球(orb-pulse) - * 4 主臂 + 4 斜臂 + 白色端點節點 - * 虛線旋轉軌道環(ring-spin 12s) - * ❌ 禁止使用 openclaw-panel.tsx 的龍蝦臂 SVG - */ - -export function NemoNodeAnimation({ size = 72 }: { size?: number }) { - const id = 'nemo-node' - return ( - <> - - - - - - - - - - {/* 白底圓形背景 */} - - - {/* 4 主臂(solid #4A90D9,opacity 0.7)*/} - - - - - - {/* 4 斜臂(細,opacity 0.35)*/} - - - - - - {/* 虛線旋轉軌道環 */} - - - {/* 主臂端點節點(r=3,白底+藍邊)*/} - - - - - - {/* 斜臂端點節點(r=2,白底+藍邊)*/} - - - - - - {/* 中央漸層藍球(orb-pulse 脈動)*/} - - {/* 高光 */} - - - - ) -} - -export default NemoNodeAnimation diff --git a/k8s/jobs/migrate-knowledge-entries.yaml b/k8s/jobs/migrate-knowledge-entries.yaml index 65255f58..1e5d2562 100644 --- a/k8s/jobs/migrate-knowledge-entries.yaml +++ b/k8s/jobs/migrate-knowledge-entries.yaml @@ -36,35 +36,10 @@ spec: psql -h "$DB_HOST" -p "$DB_PORT" -U "$DB_USER" -d "$DB_NAME" <<'EOSQL' -- 建立 Enum types (IF NOT EXISTS) - DO $$ - BEGIN - IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'entrytype') THEN - CREATE TYPE entrytype AS ENUM ('incident_case', 'runbook', 'best_practice', 'postmortem'); - RAISE NOTICE 'Created: entrytype enum'; - ELSE - RAISE NOTICE 'Exists: entrytype enum'; - END IF; - END $$; - - DO $$ - BEGIN - IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'entrysource') THEN - CREATE TYPE entrysource AS ENUM ('ai_extracted', 'human'); - RAISE NOTICE 'Created: entrysource enum'; - ELSE - RAISE NOTICE 'Exists: entrysource enum'; - END IF; - END $$; - - DO $$ - BEGIN - IF NOT EXISTS (SELECT 1 FROM pg_type WHERE typname = 'entrystatus') THEN - CREATE TYPE entrystatus AS ENUM ('draft', 'review', 'approved', 'archived'); - RAISE NOTICE 'Created: entrystatus enum'; - ELSE - RAISE NOTICE 'Exists: entrystatus enum'; - END IF; - END $$; + -- Create enum types if not exist (safe for re-run) + DO 'BEGIN CREATE TYPE entrytype AS ENUM (''incident_case'', ''runbook'', ''best_practice'', ''postmortem''); EXCEPTION WHEN duplicate_object THEN NULL; END'; + DO 'BEGIN CREATE TYPE entrysource AS ENUM (''ai_extracted'', ''human''); EXCEPTION WHEN duplicate_object THEN NULL; END'; + DO 'BEGIN CREATE TYPE entrystatus AS ENUM (''draft'', ''review'', ''approved'', ''archived''); EXCEPTION WHEN duplicate_object THEN NULL; END'; -- 建立 knowledge_entries table CREATE TABLE IF NOT EXISTS knowledge_entries (