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 {