From dfba314f3e65b25f17fbe5c69f13cee0abbdd4d4 Mon Sep 17 00:00:00 2001 From: seorang42 Date: Wed, 5 Feb 2025 18:45:25 +0900 Subject: [PATCH 1/3] =?UTF-8?q?:sparkles:=20[feat]=20:=20TaskLabel=20?= =?UTF-8?q?=EC=BB=B4=ED=8F=AC=EB=84=8C=ED=8A=B8=20=EA=B5=AC=ED=98=84=20?= =?UTF-8?q?=EB=B0=8F=20PENDING=5FCOMPLETED=20->=20IN=5FREVIEWING=EC=9C=BC?= =?UTF-8?q?=EB=A1=9C=20ENUM=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TaskCard.vue | 8 +++++++- src/components/common/TaskLabel.vue | 17 +++++++++++++++++ src/components/task-board/TaskBoard.vue | 12 ++++++------ src/constants/common.ts | 2 +- src/types/common.ts | 2 +- src/types/manager.ts | 2 +- src/utils/statusAsColor.ts | 2 +- src/utils/statusAsText.ts | 2 +- 8 files changed, 35 insertions(+), 12 deletions(-) create mode 100644 src/components/common/TaskLabel.vue diff --git a/src/components/TaskCard.vue b/src/components/TaskCard.vue index ac134507..b4947851 100644 --- a/src/components/TaskCard.vue +++ b/src/components/TaskCard.vue @@ -5,7 +5,12 @@ @click="onTaskClick">
- {{ data.title }} +
+ + {{ data.title }} +
@@ -34,6 +39,7 @@ import { computed } from 'vue' import type { TaskCardProps } from '@/types/manager' import CommonIcons from './common/CommonIcons.vue' import { statusAsColor } from '@/utils/statusAsColor' +import TaskLabel from './common/TaskLabel.vue' const { data } = defineProps<{ data: TaskCardProps; draggable?: boolean }>() diff --git a/src/components/common/TaskLabel.vue b/src/components/common/TaskLabel.vue new file mode 100644 index 00000000..9d829489 --- /dev/null +++ b/src/components/common/TaskLabel.vue @@ -0,0 +1,17 @@ + + + diff --git a/src/components/task-board/TaskBoard.vue b/src/components/task-board/TaskBoard.vue index 8670a4ba..07f51035 100644 --- a/src/components/task-board/TaskBoard.vue +++ b/src/components/task-board/TaskBoard.vue @@ -8,7 +8,7 @@
- 검토 중 {{ data?.tasksPendingComplete.length }} + 검토 중 {{ data?.tasksInProgress.length }}
@@ -47,7 +47,7 @@
{{ '상태를 변경할 작업을\n끌어 놓으세요' }} @@ -59,7 +59,7 @@ group="taskList" item-key="task" class="flex flex-col gap-4 h-full" - @change="event => onListChange(event, 'PENDING_COMPLETED')"> + @change="event => onListChange(event, 'IN_REVIEWING')">