feat: showProgress toggle and auto display flags on task type move
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -18,7 +18,7 @@ import { DepartmentColumn } from '../components/dashboard/DepartmentColumn';
|
||||
import { TaskManager } from '../components/dashboard/TaskManager';
|
||||
import { useSocket } from '../contexts/SocketContext';
|
||||
import { sendTaskSelected, openDetailWindow } from '../lib/dualMonitor';
|
||||
import { isRoutineTask } from '../lib/taskType';
|
||||
import { isRoutineTask, displayFlagsForTaskType } from '../lib/taskType';
|
||||
|
||||
const QUARTER = '2026-Q2';
|
||||
const SECTIONS = ['인사관리', '학습성장', '운영지원', '전산관리'] as const;
|
||||
@@ -134,8 +134,10 @@ export default function DashboardPage() {
|
||||
if (targetSection !== srcSection) updateData.section = targetSection;
|
||||
if (areaType === 'routine' && !isRoutineTask(draggedTask.taskType)) {
|
||||
updateData.taskType = '기반업무';
|
||||
Object.assign(updateData, displayFlagsForTaskType('기반업무'));
|
||||
} else if (areaType === 'project' && isRoutineTask(draggedTask.taskType)) {
|
||||
updateData.taskType = '실행과제';
|
||||
Object.assign(updateData, displayFlagsForTaskType('실행과제'));
|
||||
}
|
||||
if (Object.keys(updateData).length > 0) {
|
||||
patchTask.mutate({ id: activeId, data: updateData });
|
||||
@@ -154,7 +156,9 @@ export default function DashboardPage() {
|
||||
const updateData: Record<string, any> = {};
|
||||
if (dstSection !== srcSection) updateData.section = dstSection;
|
||||
if (typeChanged) {
|
||||
updateData.taskType = isRoutineTask(overTask.taskType) ? '기반업무' : '실행과제';
|
||||
const newType = isRoutineTask(overTask.taskType) ? '기반업무' : '실행과제';
|
||||
updateData.taskType = newType;
|
||||
Object.assign(updateData, displayFlagsForTaskType(newType));
|
||||
}
|
||||
patchTask.mutate({ id: activeId, data: updateData });
|
||||
if (dstSection !== srcSection) return;
|
||||
|
||||
Reference in New Issue
Block a user