From d65d46e856017a42801b1f277ef272304b8722e0 Mon Sep 17 00:00:00 2001 From: hyoseong-Choi Date: Tue, 11 Feb 2025 10:34:59 +0900 Subject: [PATCH 01/26] =?UTF-8?q?:rocket:=20[cicd]=20:=20CD=EC=9B=8C?= =?UTF-8?q?=ED=81=AC=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EB=A6=B4=EB=A6=AC?= =?UTF-8?q?=EC=A6=88=20V=EB=8C=80=EB=AC=B8=EC=9E=90=20=EB=AC=B8=EC=A0=9C?= =?UTF-8?q?=EC=9D=B8=EC=A7=80=20=EA=B2=80=EC=A6=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index a3fb3932..079ac822 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -4,6 +4,9 @@ name: CD for front using github actions on: release: types: [created, edited, published, released, prereleased] + push: + branches: + - "CLAP-234" permissions: From 1729b9a842131a4d3facd2542d63f4d16185c6da Mon Sep 17 00:00:00 2001 From: hyoseong-Choi Date: Tue, 11 Feb 2025 10:37:02 +0900 Subject: [PATCH 02/26] =?UTF-8?q?:rocket:=20[cicd]=20:=20CD=EC=9B=8C?= =?UTF-8?q?=ED=81=AC=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EB=A6=B4=EB=A6=AC?= =?UTF-8?q?=EC=A6=88=20=EB=B2=84=EC=A0=84=20=EC=B6=9C=EB=A0=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 079ac822..e307c41e 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -31,7 +31,9 @@ jobs: - name: Extract release version id: version - run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT + run: | + echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT + echo "VERSION=${{ steps.version.outputs.VERSION }}" - name: Install Dependencies run: npm install From e29813178c0fca970f265531cad8ce0d1bb0b6d8 Mon Sep 17 00:00:00 2001 From: hyoseong-Choi Date: Tue, 11 Feb 2025 10:39:10 +0900 Subject: [PATCH 03/26] =?UTF-8?q?:rocket:=20[cicd]=20:=20CD=EC=9B=8C?= =?UTF-8?q?=ED=81=AC=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EB=A6=B4=EB=A6=AC?= =?UTF-8?q?=EC=A6=88=20=EB=B2=84=EC=A0=84=20=EC=B6=9C=EB=A0=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index e307c41e..40ccd18c 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -33,7 +33,8 @@ jobs: id: version run: | echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT - echo "VERSION=${{ steps.version.outputs.VERSION }}" + echo ${{ steps.version.outputs.VERSION }} + echo $GITHUB_OUTPUT - name: Install Dependencies run: npm install From 3315afcce32e9705da401bc470f2cd945978fae9 Mon Sep 17 00:00:00 2001 From: hyoseong-Choi Date: Tue, 11 Feb 2025 10:43:24 +0900 Subject: [PATCH 04/26] =?UTF-8?q?:rocket:=20[cicd]=20:=20CD=EC=9B=8C?= =?UTF-8?q?=ED=81=AC=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EB=A6=B4=EB=A6=AC?= =?UTF-8?q?=EC=A6=88=20=EB=B2=84=EC=A0=84=20=EB=A7=8C=EB=93=A4=EC=96=B4?= =?UTF-8?q?=EC=A7=80=EB=8A=94=EC=A7=80=20=ED=99=95=EC=9D=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 40ccd18c..ea5b8fe2 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -34,7 +34,9 @@ jobs: run: | echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT echo ${{ steps.version.outputs.VERSION }} - echo $GITHUB_OUTPUT + echo ${{GITHUB_OUTPUT}} + echo ${GITHUB_REF#refs/tags/} + echo ${GITHUB_OUTPUT} - name: Install Dependencies run: npm install From 912504a7dd0ffddf23018683e04a597100ead395 Mon Sep 17 00:00:00 2001 From: hyoseong-Choi Date: Tue, 11 Feb 2025 10:45:08 +0900 Subject: [PATCH 05/26] =?UTF-8?q?:rocket:=20[cicd]=20:=20CD=EC=9B=8C?= =?UTF-8?q?=ED=81=AC=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EB=A6=B4=EB=A6=AC?= =?UTF-8?q?=EC=A6=88=20=EB=B2=84=EC=A0=84=20=EB=A7=8C=EB=93=A4=EC=96=B4?= =?UTF-8?q?=EC=A7=80=EB=8A=94=EC=A7=80=20=ED=99=95=EC=9D=B82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index ea5b8fe2..ed51070e 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -36,7 +36,6 @@ jobs: echo ${{ steps.version.outputs.VERSION }} echo ${{GITHUB_OUTPUT}} echo ${GITHUB_REF#refs/tags/} - echo ${GITHUB_OUTPUT} - name: Install Dependencies run: npm install From f4a1352226348cc9c4f5d9db21059f6d13034655 Mon Sep 17 00:00:00 2001 From: hyoseong-Choi Date: Tue, 11 Feb 2025 10:46:56 +0900 Subject: [PATCH 06/26] =?UTF-8?q?:rocket:=20[cicd]=20:=20CD=EC=9B=8C?= =?UTF-8?q?=ED=81=AC=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EB=A6=B4=EB=A6=AC?= =?UTF-8?q?=EC=A6=88=20=EB=B2=84=EC=A0=84=20=ED=99=95=EC=9D=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index ed51070e..079ac822 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -31,11 +31,7 @@ jobs: - name: Extract release version id: version - run: | - echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT - echo ${{ steps.version.outputs.VERSION }} - echo ${{GITHUB_OUTPUT}} - echo ${GITHUB_REF#refs/tags/} + run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT - name: Install Dependencies run: npm install From 91060d31615100e4c25fac6be1de8d3b5ffb5808 Mon Sep 17 00:00:00 2001 From: hyoseong-Choi Date: Tue, 11 Feb 2025 11:09:47 +0900 Subject: [PATCH 07/26] =?UTF-8?q?:rocket:=20[cicd]=20:=20CD=EC=9B=8C?= =?UTF-8?q?=ED=81=AC=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EB=A6=B4=EB=A6=AC?= =?UTF-8?q?=EC=A6=88=20=EB=B2=84=EC=A0=84=20=ED=99=95=EC=9D=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 079ac822..2ac4b56c 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -4,10 +4,6 @@ name: CD for front using github actions on: release: types: [created, edited, published, released, prereleased] - push: - branches: - - "CLAP-234" - permissions: contents: read @@ -51,8 +47,9 @@ jobs: - name: Docker build & push run: | docker login clap.kr-central-2.kcr.dev -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} - docker build -t ${{ secrets.DOCKER_REPO }}:${{ steps.version.outputs.VERSION }} . + docker build -t ${{ secrets.DOCKER_REPO }}:${{ steps.version.outputs.VERSION }} -t ${{ secrets.DOCKER_REPO }}:latest . docker push ${{ secrets.DOCKER_REPO }}:${{ steps.version.outputs.VERSION }} + docker push ${{ secrets.DOCKER_REPO }}:latest ## deploy - name: Deploy uses: appleboy/ssh-action@master From f238d84d50769d5149af7f30e3355557e1212f3b Mon Sep 17 00:00:00 2001 From: hyoseong-Choi Date: Tue, 11 Feb 2025 11:22:32 +0900 Subject: [PATCH 08/26] =?UTF-8?q?:rocket:=20[cicd]=20:=20CD=EC=9B=8C?= =?UTF-8?q?=ED=81=AC=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EB=A6=B4=EB=A6=AC?= =?UTF-8?q?=EC=A6=88=20=ED=83=80=EC=9E=85=20=EC=9B=90=EC=83=81=EB=B3=B5?= =?UTF-8?q?=EA=B5=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 2ac4b56c..5c10b051 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -3,7 +3,7 @@ name: CD for front using github actions on: release: - types: [created, edited, published, released, prereleased] + types: [created] permissions: contents: read From bbd0436de7ff40581fc6b09059ea0da013d09465 Mon Sep 17 00:00:00 2001 From: hyoseong-Choi Date: Tue, 11 Feb 2025 11:28:11 +0900 Subject: [PATCH 09/26] =?UTF-8?q?:rocket:=20[cicd]=20:=20CD=EC=9B=8C?= =?UTF-8?q?=ED=81=AC=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EB=A6=B4=EB=A6=AC?= =?UTF-8?q?=EC=A6=88=20=EB=8F=84=EC=BB=A4=EB=B9=8C=EB=93=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 5c10b051..67b193f2 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -47,8 +47,8 @@ jobs: - name: Docker build & push run: | docker login clap.kr-central-2.kcr.dev -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} - docker build -t ${{ secrets.DOCKER_REPO }}:${{ steps.version.outputs.VERSION }} -t ${{ secrets.DOCKER_REPO }}:latest . - docker push ${{ secrets.DOCKER_REPO }}:${{ steps.version.outputs.VERSION }} + docker build -t ${{ secrets.DOCKER_REPO }}${{ steps.version.outputs.VERSION }} -t ${{ secrets.DOCKER_REPO }}:latest . + docker push ${{ secrets.DOCKER_REPO }}${{ steps.version.outputs.VERSION }} docker push ${{ secrets.DOCKER_REPO }}:latest ## deploy - name: Deploy From 8afd67c6c80b9b79a64ac93f55e8ce3b84aef645 Mon Sep 17 00:00:00 2001 From: hyoseong-Choi Date: Tue, 11 Feb 2025 11:37:11 +0900 Subject: [PATCH 10/26] =?UTF-8?q?:rocket:=20[cicd]=20:=20CD=EC=9B=8C?= =?UTF-8?q?=ED=81=AC=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EB=A6=B4=EB=A6=AC?= =?UTF-8?q?=EC=A6=88=20=EB=8F=84=EC=BB=A4=EB=B9=8C=EB=93=9C=20latest=20?= =?UTF-8?q?=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 67b193f2..736047c3 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -47,9 +47,8 @@ jobs: - name: Docker build & push run: | docker login clap.kr-central-2.kcr.dev -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} - docker build -t ${{ secrets.DOCKER_REPO }}${{ steps.version.outputs.VERSION }} -t ${{ secrets.DOCKER_REPO }}:latest . + docker build -t ${{ secrets.DOCKER_REPO }}${{ steps.version.outputs.VERSION }} . docker push ${{ secrets.DOCKER_REPO }}${{ steps.version.outputs.VERSION }} - docker push ${{ secrets.DOCKER_REPO }}:latest ## deploy - name: Deploy uses: appleboy/ssh-action@master From a468a2ac299742b2edc84b3f06945b907c30a4dd Mon Sep 17 00:00:00 2001 From: hyoseong-Choi Date: Tue, 11 Feb 2025 11:50:51 +0900 Subject: [PATCH 11/26] =?UTF-8?q?:rocket:=20[cicd]=20:=20CD=EC=9B=8C?= =?UTF-8?q?=ED=81=AC=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EB=A6=B4=EB=A6=AC?= =?UTF-8?q?=EC=A6=88=20=EB=8F=84=EC=BB=A4=ED=91=B8=EC=89=AC=20=ED=83=9C?= =?UTF-8?q?=EA=B7=B8=20:=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/CD.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CD.yml b/.github/workflows/CD.yml index 736047c3..6d20c956 100644 --- a/.github/workflows/CD.yml +++ b/.github/workflows/CD.yml @@ -48,7 +48,7 @@ jobs: run: | docker login clap.kr-central-2.kcr.dev -u ${{ secrets.DOCKER_USERNAME }} -p ${{ secrets.DOCKER_PASSWORD }} docker build -t ${{ secrets.DOCKER_REPO }}${{ steps.version.outputs.VERSION }} . - docker push ${{ secrets.DOCKER_REPO }}${{ steps.version.outputs.VERSION }} + docker push ${{ secrets.DOCKER_REPO }}:${{ steps.version.outputs.VERSION }} ## deploy - name: Deploy uses: appleboy/ssh-action@master From 22c85f15bb91924565fb7237b509be670e700bc5 Mon Sep 17 00:00:00 2001 From: Minkyu0424 Date: Tue, 11 Feb 2025 14:24:40 +0900 Subject: [PATCH 12/26] =?UTF-8?q?:recycle:=20[refactor]=20:=20=EC=8B=9C?= =?UTF-8?q?=EA=B0=84=ED=91=9C=ED=98=84=20=EC=B6=95=EC=95=BD=20+=20?= =?UTF-8?q?=EC=98=A4=EC=A0=84,=20=EC=98=A4=ED=9B=84=20=ED=91=9C=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/date.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/utils/date.ts b/src/utils/date.ts index b52a8b5e..08acb4aa 100644 --- a/src/utils/date.ts +++ b/src/utils/date.ts @@ -119,3 +119,12 @@ export const formatOnlyTime = (timeString: string) => { return `${period} ${formattedHours}시 ${String(minutes).padStart(2, '0')}분` } + +export const formatTimeShort = (timeString: string) => { + const [hours, minutes] = timeString.split(':').map(Number) + + const period = hours < 12 ? '오전' : '오후' + const formattedHours = hours % 12 || 12 + + return `${period} ${formattedHours}:${String(minutes).padStart(2, '0')}` +} From f577b92c5c0a129cf2bd464719b22e8c1d54c6ab Mon Sep 17 00:00:00 2001 From: Minkyu0424 Date: Tue, 11 Feb 2025 14:25:24 +0900 Subject: [PATCH 13/26] =?UTF-8?q?:recycle:=20[refactor]=20:=20=ED=9E=88?= =?UTF-8?q?=EC=8A=A4=ED=86=A0=EB=A6=AC=20=EC=96=91=EC=B8=A1=20=EC=9A=94?= =?UTF-8?q?=EC=B2=AD=EC=9E=90=20=EC=8B=A0=EB=B6=84=EA=B3=BC=20=EC=9E=91?= =?UTF-8?q?=EC=84=B1=EC=9E=90=EC=9D=98=20=EC=A0=95=EB=B3=B4=20=EB=8C=80?= =?UTF-8?q?=EC=A1=B0=EB=A1=9C=20=EA=B5=AC=EB=B6=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../task-detail/TaskDetailHistory.vue | 4 +-- .../task-detail/TaskDetailHistoryChat.vue | 26 ++++++++------- .../task-detail/TaskDetailHistoryFile.vue | 32 +++++++++++-------- 3 files changed, 35 insertions(+), 27 deletions(-) diff --git a/src/components/task-detail/TaskDetailHistory.vue b/src/components/task-detail/TaskDetailHistory.vue index 4c4fd9ee..99d2e4a9 100644 --- a/src/components/task-detail/TaskDetailHistory.vue +++ b/src/components/task-detail/TaskDetailHistory.vue @@ -19,7 +19,7 @@
- {{ formatOnlyTime(item.time) }} + {{ formatTimeShort(item.time) }}

{{ HistoryMessageBefore[item.taskHistoryType] }}

@@ -59,7 +59,7 @@ From 3b761516ead483c26229d79053e659c32750c885 Mon Sep 17 00:00:00 2001 From: Minkyu0424 Date: Tue, 11 Feb 2025 14:46:09 +0900 Subject: [PATCH 14/26] =?UTF-8?q?:recycle:=20[refactor]=20:=20=EA=B1=B0?= =?UTF-8?q?=EB=B6=80=EB=A5=BC=20=EB=B0=98=EB=A0=A4=EB=A1=9C=20=EC=9B=8C?= =?UTF-8?q?=EB=94=A9=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/requested/RequestedListCard.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/requested/RequestedListCard.vue b/src/components/requested/RequestedListCard.vue index d525a442..0774c2f8 100644 --- a/src/components/requested/RequestedListCard.vue +++ b/src/components/requested/RequestedListCard.vue @@ -40,20 +40,19 @@ :is-approved="true" :selected-id="selectedID" :close-task-detail="() => handleModal(null)" /> - - + - + diff --git a/src/components/request-task/RequestTaskFileInput.vue b/src/components/request-task/RequestTaskFileInput.vue index f5a4afa6..13a7e871 100644 --- a/src/components/request-task/RequestTaskFileInput.vue +++ b/src/components/request-task/RequestTaskFileInput.vue @@ -38,7 +38,7 @@ type="failType" @close="handleModal"> - +
From 8807fef9f35bc712478bd8593dba7b4d155166a4 Mon Sep 17 00:00:00 2001 From: Minkyu0424 Date: Tue, 11 Feb 2025 16:26:28 +0900 Subject: [PATCH 17/26] =?UTF-8?q?:recycle:=20[refactor]=20:=20=EC=83=81?= =?UTF-8?q?=ED=83=9C=20=EB=B3=80=EA=B2=BD=EC=8B=9C=20=EB=8D=B0=EC=9D=B4?= =?UTF-8?q?=ED=84=B0=20=EC=B5=9C=EC=8B=A0=ED=99=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/task-detail/TaskDetail.vue | 4 +--- src/components/task-detail/TaskStatusList.vue | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/task-detail/TaskDetail.vue b/src/components/task-detail/TaskDetail.vue index 226175f3..222f91f7 100644 --- a/src/components/task-detail/TaskDetail.vue +++ b/src/components/task-detail/TaskDetail.vue @@ -51,9 +51,7 @@ const { data } = useQuery({ queryFn: info.value.role === 'ROLE_USER' ? () => getTaskDetailUser(selectedId) - : () => getTaskDetailManager(selectedId), - refetchOnWindowFocus: false, - staleTime: 1000 * 60 * 5 + : () => getTaskDetailManager(selectedId) }) const { data: historyData } = useQuery({ diff --git a/src/components/task-detail/TaskStatusList.vue b/src/components/task-detail/TaskStatusList.vue index 86b3ce88..d870a4c8 100644 --- a/src/components/task-detail/TaskStatusList.vue +++ b/src/components/task-detail/TaskStatusList.vue @@ -100,6 +100,7 @@ const rejectRequest = async () => { toggleModal('success') emit('update:status', 'TERMINATED') currentStatus.value = 'TERMINATED' + queryClient.invalidateQueries({ queryKey: ['taskDetailUser', taskId] }) queryClient.invalidateQueries({ queryKey: ['historyData', taskId] }) } catch { toggleModal('fail') @@ -119,6 +120,7 @@ const changeStatus = async (newStatus: Status) => { try { currentStatus.value = newStatus await patchChangeStatus(taskId || 0, newStatus) + queryClient.invalidateQueries({ queryKey: ['taskDetailUser', taskId] }) queryClient.invalidateQueries({ queryKey: ['historyData', taskId] }) } catch (error) { console.error('Failed to update status:', error) From 3b5a3ff3a711740ddfd465caeec249c8dfccc00c Mon Sep 17 00:00:00 2001 From: Minkyu0424 Date: Tue, 11 Feb 2025 17:19:15 +0900 Subject: [PATCH 18/26] =?UTF-8?q?:recycle:=20[refactor]=20:=20=EA=B3=A0?= =?UTF-8?q?=EC=9C=A0=EC=BD=94=EB=93=9C=20=EC=9E=91=EC=97=85=EC=BD=94?= =?UTF-8?q?=EB=93=9C=EB=A1=9C=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/request-task/RequestTaskInput.vue | 2 +- src/components/task-detail/TaskDetailRight.vue | 2 +- src/components/task-management/CategoryAdd.vue | 4 ++-- src/components/task-management/CategoryManagement.vue | 4 ++-- src/constants/manager.ts | 4 ++-- src/constants/user.ts | 2 +- 6 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/components/request-task/RequestTaskInput.vue b/src/components/request-task/RequestTaskInput.vue index aa08c8cf..5d675614 100644 --- a/src/components/request-task/RequestTaskInput.vue +++ b/src/components/request-task/RequestTaskInput.vue @@ -18,7 +18,7 @@

- 사용할 수 없는 고유코드입니다. + 사용할 수 없는 작업코드입니다.

diff --git a/src/components/task-detail/TaskDetailRight.vue b/src/components/task-detail/TaskDetailRight.vue index 8007e443..72fee564 100644 --- a/src/components/task-detail/TaskDetailRight.vue +++ b/src/components/task-detail/TaskDetailRight.vue @@ -1,7 +1,7 @@ diff --git a/src/components/request-task/RequestTask.vue b/src/components/request-task/RequestTask.vue index 3b20bddc..8019679a 100644 --- a/src/components/request-task/RequestTask.vue +++ b/src/components/request-task/RequestTask.vue @@ -66,6 +66,7 @@ const description = ref('') const file = ref(null as File[] | null) const isInvalidate = ref('') const isModalVisible = ref('') +const isSubmitting = ref(false) const mainCategoryArr = ref([]) const subCategoryArr = ref([]) @@ -103,7 +104,6 @@ const handleCancel = () => { router.back() } -const isSubmitting = ref(false) const handleSubmit = async () => { if (isSubmitting.value || isModalVisible.value) return From 0cd7e136eedb4448865370fbc022cc3fde56b804 Mon Sep 17 00:00:00 2001 From: Minkyu0424 Date: Wed, 12 Feb 2025 02:30:58 +0900 Subject: [PATCH 26/26] =?UTF-8?q?:recycle:=20[refactor]=20:=20=EC=9E=91?= =?UTF-8?q?=EC=97=85=EC=88=98=EC=A0=95=EC=97=90=EC=84=9C=20=EC=97=90?= =?UTF-8?q?=EB=9F=AC=EC=97=90=20=EB=94=B0=EB=A5=B8=20=EC=9E=85=EB=A0=A5?= =?UTF-8?q?=EB=9E=80=20=EA=B2=BD=EA=B3=A0=ED=91=9C=EC=8B=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/request-task/RequestTask.vue | 1 - .../user-manage/UserRegistration.vue | 1 + src/components/user-manage/UserUpdate.vue | 41 +++++++++++++------ 3 files changed, 30 insertions(+), 13 deletions(-) diff --git a/src/components/request-task/RequestTask.vue b/src/components/request-task/RequestTask.vue index a290c8dd..9be1863f 100644 --- a/src/components/request-task/RequestTask.vue +++ b/src/components/request-task/RequestTask.vue @@ -104,7 +104,6 @@ const handleCancel = () => { router.back() } - const handleSubmit = async () => { if (isSubmitting.value || isModalVisible.value) return diff --git a/src/components/user-manage/UserRegistration.vue b/src/components/user-manage/UserRegistration.vue index 7286f464..9c58796e 100644 --- a/src/components/user-manage/UserRegistration.vue +++ b/src/components/user-manage/UserRegistration.vue @@ -69,6 +69,7 @@ import RequestTaskInput from '../request-task/RequestTaskInput.vue' import DepartmentDropDown from './DepartmentDropDown.vue' const router = useRouter() + const isModalVisible = ref(false) const userRegistrationForm = ref(INITIAL_USER_REGISTRATION) const isInvalidate = ref('') diff --git a/src/components/user-manage/UserUpdate.vue b/src/components/user-manage/UserUpdate.vue index 5a40dab1..48d96f3a 100644 --- a/src/components/user-manage/UserUpdate.vue +++ b/src/components/user-manage/UserUpdate.vue @@ -14,6 +14,7 @@ v-model="userRegistrationForm.nickname" :placeholderText="'회원의 아이디를 입력해주세요'" :isEdit="true" + :is-invalidate="isInvalidate" :labelName="'아이디'" />
+ - userRegistrationForm.value.role === '담당자') +const isInvalidate = ref('') const userId = ref(route.query.id) const userData = ref(null) const isModalVisible = ref(false) +const isError = ref(false) + +const isManager = computed(() => userRegistrationForm.value.role === '담당자') watch( () => router.currentRoute.value.query.id, @@ -108,16 +115,26 @@ const handleCancel = async () => { } const handleSubmit = async () => { - if (typeof userId.value === 'string') { - const userData = { - role: RoleTypeMapping[userRegistrationForm.value.role], - name: userRegistrationForm.value.name, - isReviewer: isManager.value ? userRegistrationForm.value.isReviewer : false, - departmentId: userRegistrationForm.value.departmentId, - departmentRole: userRegistrationForm.value.departmentRole + try { + if (typeof userId.value === 'string') { + const userData = { + role: RoleTypeMapping[userRegistrationForm.value.role], + name: userRegistrationForm.value.name, + isReviewer: isManager.value ? userRegistrationForm.value.isReviewer : false, + departmentId: userRegistrationForm.value.departmentId, + departmentRole: userRegistrationForm.value.departmentRole + } + await updateMemberAdmin(userId.value, userData) + isModalVisible.value = true + } + } catch (error) { + if (error instanceof Error && error.message === 'MEMBER_DUPLICATED') { + isInvalidate.value = 'duplicate' + } else if (error instanceof Error && error.message === 'MEMBER_REVIEWER') { + isInvalidate.value = 'reviewer' + } else { + isError.value = true } - await updateMemberAdmin(userId.value, userData) - isModalVisible.value = true } }