fix(dev-task): 移除测试验证/缺陷修复类型,测试已独立为单独模块

开发任务类型保留:前端开发、后端开发、数据库设计、接口联调、数据处理、实施支持

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Script Generator
2026-06-12 13:35:18 +08:00
parent 7fe3a3854a
commit 6c9a77038f
2 changed files with 4 additions and 7 deletions

View File

@@ -15,7 +15,7 @@ export default function CategoriesPage() {
const [editingId, setEditingId] = useState<string | null>(null);
const [editName, setEditName] = useState('');
const groups: CategoryGroup[] = ['development', 'testing', 'implementation', 'other'];
const groups: CategoryGroup[] = ['development', 'implementation', 'other'];
const handleAdd = () => {
if (!newName.trim()) return;

View File

@@ -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<CategoryGroup, string> = {
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 {