refactor: 작업자 진행상태(대기/진행중/완료) 라벨·색 SSOT 통합 (Phase 4)
StatusSelect 와 업무 상세에 각각 중복 정의되던 WORK_STATUS_META/ORDER 를 shared/constants/workStatus.ts 단일 소스로 추출(값 동일, 표시 변화 없음). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import type { ChecklistWorkStatus } from '@/mock/relay.mock'
|
||||
|
||||
// 작업자 진행상태(대기/진행 중/완료) 라벨·색 — 단일 진실 공급원(SSOT).
|
||||
// StatusSelect(드롭다운)·업무 상세(보고서)에서 공통 사용한다.
|
||||
export interface WorkStatusMeta {
|
||||
label: string
|
||||
color: string
|
||||
weak: string
|
||||
}
|
||||
|
||||
export const WORK_STATUS_META: Record<ChecklistWorkStatus, WorkStatusMeta> = {
|
||||
todo: { label: '대기', color: '#9298a3', weak: '#eef0f2' },
|
||||
doing: { label: '진행 중', color: '#2563eb', weak: '#e9f0fd' },
|
||||
done: { label: '완료', color: '#1f9d57', weak: '#e7f5ed' },
|
||||
}
|
||||
|
||||
// 표시 순서(대기 → 진행 중 → 완료)
|
||||
export const WORK_STATUS_ORDER: ChecklistWorkStatus[] = ['todo', 'doing', 'done']
|
||||
Reference in New Issue
Block a user