From 6c9a77038f18b41cc6d9a9b3874c8d75c289de7e Mon Sep 17 00:00:00 2001 From: Script Generator Date: Fri, 12 Jun 2026 13:35:18 +0800 Subject: [PATCH] =?UTF-8?q?fix(dev-task):=20=E7=A7=BB=E9=99=A4=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E9=AA=8C=E8=AF=81/=E7=BC=BA=E9=99=B7=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E7=B1=BB=E5=9E=8B=EF=BC=8C=E6=B5=8B=E8=AF=95=E5=B7=B2?= =?UTF-8?q?=E7=8B=AC=E7=AB=8B=E4=B8=BA=E5=8D=95=E7=8B=AC=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 开发任务类型保留:前端开发、后端开发、数据库设计、接口联调、数据处理、实施支持 Co-Authored-By: Claude Opus 4.7 (1M context) --- apps/web/app/admin/categories/page.tsx | 2 +- apps/web/lib/task-category.ts | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/apps/web/app/admin/categories/page.tsx b/apps/web/app/admin/categories/page.tsx index 69fe688..078856e 100644 --- a/apps/web/app/admin/categories/page.tsx +++ b/apps/web/app/admin/categories/page.tsx @@ -15,7 +15,7 @@ export default function CategoriesPage() { const [editingId, setEditingId] = useState(null); const [editName, setEditName] = useState(''); - const groups: CategoryGroup[] = ['development', 'testing', 'implementation', 'other']; + const groups: CategoryGroup[] = ['development', 'implementation', 'other']; const handleAdd = () => { if (!newName.trim()) return; diff --git a/apps/web/lib/task-category.ts b/apps/web/lib/task-category.ts index 4e7e664..db07a62 100644 --- a/apps/web/lib/task-category.ts +++ b/apps/web/lib/task-category.ts @@ -1,4 +1,4 @@ -export type CategoryGroup = 'development' | 'testing' | 'implementation' | 'other'; +export type CategoryGroup = 'development' | 'implementation' | 'other'; export interface TaskCategory { id: string; @@ -11,7 +11,6 @@ export interface TaskCategory { export const CATEGORY_GROUP_LABEL: Record = { development: '开发', - testing: '测试', implementation: '实施', other: '其他', }; @@ -21,10 +20,8 @@ export const PRESET_CATEGORIES: TaskCategory[] = [ { id: 'cat-2', name: '后端开发', group: 'development', color: '#6366f1', sortOrder: 2, isSystem: true }, { id: 'cat-3', name: '数据库设计', group: 'development', color: '#8b5cf6', sortOrder: 3, isSystem: true }, { id: 'cat-4', name: '接口联调', group: 'development', color: '#0ea5e9', sortOrder: 4, isSystem: true }, - { id: 'cat-5', name: '测试验证', group: 'testing', color: '#a855f7', sortOrder: 5, isSystem: true }, - { id: 'cat-6', name: '缺陷修复', group: 'testing', color: '#ef4444', sortOrder: 6, isSystem: true }, - { id: 'cat-7', name: '数据处理', group: 'implementation', color: '#f59e0b', sortOrder: 7, isSystem: true }, - { id: 'cat-8', name: '实施支持', group: 'implementation', color: '#10b981', sortOrder: 8, isSystem: true }, + { id: 'cat-5', name: '数据处理', group: 'implementation', color: '#f59e0b', sortOrder: 5, isSystem: true }, + { id: 'cat-6', name: '实施支持', group: 'implementation', color: '#10b981', sortOrder: 6, isSystem: true }, ]; export function getCategoryById(categories: TaskCategory[], id: string): TaskCategory | undefined {