refactor: 업무 상태 'todo' 라벨을 '대기' 로 통일 (Phase 4)

todo 표기가 화면마다 '할 일'(taskStatusLabel) vs '대기'(ProjectDetail 배지)로
갈리던 불일치 해소. SSOT(format.taskStatusLabel)를 '대기' 로 통일하고
ProjectDetailPage 의 자체 STATUS_LABEL 제거 → taskStatusLabel 사용.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-23 00:02:42 +09:00
parent 3380bbdcff
commit daff61c85e
2 changed files with 5 additions and 11 deletions
+4 -10
View File
@@ -15,7 +15,8 @@ import EmptyState from '@/components/common/EmptyState.vue'
import { useProjectStore } from '@/stores/project.store'
import { useTaskStore } from '@/stores/task.store'
import type { TaskListQuery, TaskSegment, TaskSort } from '@/types/task'
import type { Project, TaskStatus } from '@/mock/relay.mock'
import { taskStatusLabel } from '@/shared/utils/format'
import type { Project } from '@/mock/relay.mock'
const route = useRoute()
const projectId = computed(() => String(route.params.projectId))
@@ -108,14 +109,7 @@ const isFiltered = computed(() => keyword.value.trim() !== '' || segment.value !
// 지연 건수 — 현재 로드된 목록 기준(전역 정확 집계는 백엔드 미지원, 알려진 한계)
const overdueCount = computed(() => tasks.value.filter((t) => t.overdue).length)
// 업무 상태 → 배지 라벨
const STATUS_LABEL: Record<TaskStatus, string> = {
prog: '진행 중',
review: '승인 대기',
todo: '대기',
done: '완료',
changes: '수정 요청',
}
// 업무 상태 → 배지 라벨은 공용 SSOT(taskStatusLabel) 사용
</script>
<template>
@@ -383,7 +377,7 @@ const STATUS_LABEL: Record<TaskStatus, string> = {
<span
class="st-badge"
:class="task.status"
>{{ STATUS_LABEL[task.status] }}</span>
>{{ taskStatusLabel(task.status) }}</span>
<span class="chev">
<svg
viewBox="0 0 24 24"
+1 -1
View File
@@ -101,7 +101,7 @@ const WEEKDAYS_KO = ['일', '월', '화', '수', '목', '금', '토']
/** 업무 상태 → 한국어 라벨 */
const TASK_STATUS_LABEL: Record<TaskStatus, string> = {
todo: '할 일',
todo: '대기',
prog: '진행 중',
review: '승인 대기',
done: '완료',