From 77ab6644d7586e89558656c29e105af672cb587d Mon Sep 17 00:00:00 2001 From: Junseo Kim Date: Sun, 27 Jul 2025 14:07:08 +0900 Subject: [PATCH 1/6] =?UTF-8?q?feat:=20=EC=A7=80=EC=9B=90=EC=84=9C=20?= =?UTF-8?q?=EC=A0=9C=EC=B6=9C=20=EC=84=B1=EA=B3=B5=20=EB=B0=8F=20=EC=8B=A4?= =?UTF-8?q?=ED=8C=A8=20=EC=95=8C=EB=A6=BC=20=EB=A9=94=EC=8B=9C=EC=A7=80=20?= =?UTF-8?q?=EA=B0=9C=EC=84=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../pages/ApplicationFormPage/ApplicationFormPage.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx b/frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx index 9ff91ffc6..1f9fc682b 100644 --- a/frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx +++ b/frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx @@ -90,9 +90,14 @@ const ApplicationFormPage = () => { try { await applyToClub(clubId, answers); localStorage.removeItem(STORAGE_KEY); - alert('답변이 성공적으로 제출되었습니다.'); + alert( + `"${clubDetail.name}" 동아리에 성공적으로 지원되었습니다.\n좋은 결과 있으시길 바랍니다🤗`, + ); + navigate(`/club/${clubId}`); } catch { - alert('답변 제출에 실패했습니다. 잠시 후 다시 시도해 주세요.'); + alert( + '⚠️ 답변 제출에 실패했어요.\n네트워크 상태를 확인하거나 잠시 후 다시 시도해 주세요.', + ); } }; From fab83c59c74ec0bd2c4235e2b4981b9ec9f7eeba Mon Sep 17 00:00:00 2001 From: Junseo Kim Date: Sun, 27 Jul 2025 14:07:30 +0900 Subject: [PATCH 2/6] =?UTF-8?q?fix:=20=EC=A7=80=EC=9B=90=EC=84=9C=20?= =?UTF-8?q?=EC=A0=9C=EC=B6=9C=20=ED=9B=84=20=EB=8F=99=EC=95=84=EB=A6=AC=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=EB=A1=9C=20=EB=A6=AC=EB=8B=A4?= =?UTF-8?q?=EC=9D=B4=EB=A0=89=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx b/frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx index 1f9fc682b..d4770f73e 100644 --- a/frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx +++ b/frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx @@ -93,7 +93,6 @@ const ApplicationFormPage = () => { alert( `"${clubDetail.name}" 동아리에 성공적으로 지원되었습니다.\n좋은 결과 있으시길 바랍니다🤗`, ); - navigate(`/club/${clubId}`); } catch { alert( '⚠️ 답변 제출에 실패했어요.\n네트워크 상태를 확인하거나 잠시 후 다시 시도해 주세요.', From 310a42cb6f550c69165a15cbea86af6b7d8c4280 Mon Sep 17 00:00:00 2001 From: Junseo Kim Date: Sun, 27 Jul 2025 14:07:37 +0900 Subject: [PATCH 3/6] =?UTF-8?q?feat:=20=EC=A7=80=EC=9B=90=EC=84=9C=20?= =?UTF-8?q?=EC=A0=9C=EC=B6=9C=20=ED=9B=84=20=EB=8F=99=EC=95=84=EB=A6=AC=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=EB=A1=9C=20=EB=A6=AC=EB=8B=A4?= =?UTF-8?q?=EC=9D=B4=EB=A0=89=ED=8A=B8=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx b/frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx index d4770f73e..1f9fc682b 100644 --- a/frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx +++ b/frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx @@ -93,6 +93,7 @@ const ApplicationFormPage = () => { alert( `"${clubDetail.name}" 동아리에 성공적으로 지원되었습니다.\n좋은 결과 있으시길 바랍니다🤗`, ); + navigate(`/club/${clubId}`); } catch { alert( '⚠️ 답변 제출에 실패했어요.\n네트워크 상태를 확인하거나 잠시 후 다시 시도해 주세요.', From d64f0a5086264ead4088735805c6328bc86d061d Mon Sep 17 00:00:00 2001 From: seongwon030 <105052068+seongwon030@users.noreply.github.com> Date: Sun, 27 Jul 2025 15:58:17 +0900 Subject: [PATCH 4/6] =?UTF-8?q?fix:=20navigate=20=EC=8B=9C=20replace=20?= =?UTF-8?q?=EC=98=B5=EC=85=98=20=EC=B6=94=EA=B0=80=EB=A1=9C=20=EB=92=A4?= =?UTF-8?q?=EB=A1=9C=EA=B0=80=EA=B8=B0=20=EC=8B=9C=20=EC=A4=91=EB=B3=B5=20?= =?UTF-8?q?alert=20=EB=B0=A9=EC=A7=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 지원서 제출 후 리다이렉트 시 replace: true 적용 - 뒤로가기 시 이전 페이지로 돌아가서 alert가 반복되는 문제 해결 --- frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx b/frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx index 1f9fc682b..2a71a683d 100644 --- a/frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx +++ b/frontend/src/pages/ApplicationFormPage/ApplicationFormPage.tsx @@ -93,7 +93,7 @@ const ApplicationFormPage = () => { alert( `"${clubDetail.name}" 동아리에 성공적으로 지원되었습니다.\n좋은 결과 있으시길 바랍니다🤗`, ); - navigate(`/club/${clubId}`); + navigate(`/club/${clubId}`, { replace: true }); } catch { alert( '⚠️ 답변 제출에 실패했어요.\n네트워크 상태를 확인하거나 잠시 후 다시 시도해 주세요.', From 0aa3b9b70f76f1d9665198e2273b15cc6f4d3b0c Mon Sep 17 00:00:00 2001 From: seongwon030 <105052068+seongwon030@users.noreply.github.com> Date: Sun, 27 Jul 2025 16:04:23 +0900 Subject: [PATCH 5/6] =?UTF-8?q?fix:=20=EC=A7=80=EC=9B=90=EC=84=9C=20?= =?UTF-8?q?=EC=9E=91=EC=84=B1=20=ED=8E=98=EC=9D=B4=EC=A7=80=EB=A1=9C=20?= =?UTF-8?q?=EC=9D=B4=EB=8F=99=20=EC=8B=9C=20replace=20=EC=98=B5=EC=85=98?= =?UTF-8?q?=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - ClubApplyButton에서 navigate에 replace: true 추가 - 뒤로가기 시 지원모집 마감 alert 반복 노출 방지 --- .../components/ClubApplyButton/ClubApplyButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/ClubDetailPage/components/ClubApplyButton/ClubApplyButton.tsx b/frontend/src/pages/ClubDetailPage/components/ClubApplyButton/ClubApplyButton.tsx index 354ce363a..bdbbe96ff 100644 --- a/frontend/src/pages/ClubDetailPage/components/ClubApplyButton/ClubApplyButton.tsx +++ b/frontend/src/pages/ClubDetailPage/components/ClubApplyButton/ClubApplyButton.tsx @@ -49,7 +49,7 @@ const ClubApplyButton = ({ isRecruiting }: ButtonProps) => { alert('지원모집이 마감되었습니다. 다음에 지원해 주세요.'); return; } - navigate(`/application/${clubId}`); + navigate(`/application/${clubId}`, { replace: true }); }; return ; From 414d529d5324c586ffc070fc0fc09bca2edea75b Mon Sep 17 00:00:00 2001 From: seongwon030 <105052068+seongwon030@users.noreply.github.com> Date: Sun, 27 Jul 2025 16:14:57 +0900 Subject: [PATCH 6/6] =?UTF-8?q?Revert=20"fix:=20=EC=A7=80=EC=9B=90?= =?UTF-8?q?=EC=84=9C=20=EC=9E=91=EC=84=B1=20=ED=8E=98=EC=9D=B4=EC=A7=80?= =?UTF-8?q?=EB=A1=9C=20=EC=9D=B4=EB=8F=99=20=EC=8B=9C=20replace=20?= =?UTF-8?q?=EC=98=B5=EC=85=98=20=EC=A0=81=EC=9A=A9"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 0aa3b9b70f76f1d9665198e2273b15cc6f4d3b0c. --- .../components/ClubApplyButton/ClubApplyButton.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/pages/ClubDetailPage/components/ClubApplyButton/ClubApplyButton.tsx b/frontend/src/pages/ClubDetailPage/components/ClubApplyButton/ClubApplyButton.tsx index bdbbe96ff..354ce363a 100644 --- a/frontend/src/pages/ClubDetailPage/components/ClubApplyButton/ClubApplyButton.tsx +++ b/frontend/src/pages/ClubDetailPage/components/ClubApplyButton/ClubApplyButton.tsx @@ -49,7 +49,7 @@ const ClubApplyButton = ({ isRecruiting }: ButtonProps) => { alert('지원모집이 마감되었습니다. 다음에 지원해 주세요.'); return; } - navigate(`/application/${clubId}`, { replace: true }); + navigate(`/application/${clubId}`); }; return ;