Skip to content

Conversation

@KwonDeaGeun
Copy link
Contributor

@KwonDeaGeun KwonDeaGeun commented Dec 23, 2025

Summary

관련 있는 Issue를 태그해주세요. (e.g. > - #100)

해당 PR에 대한 작업 내용을 요약하여 작성해주세요.

Tasks

  • 해당 PR에 수행한 작업을 작성해주세요.
  • join-complete 보드 이동 로직 수정

Summary by CodeRabbit

릴리스 노트

  • 버그 수정
    • 보드 정보 누락 시 처리 개선: 자동 재인증 후 적절한 페이지로 사용자 안내
    • 하단 네비게이션 활성 상태 표시 개선

✏️ Tip: You can customize this high-level summary in your review settings.

@KwonDeaGeun KwonDeaGeun self-assigned this Dec 23, 2025
@vercel
Copy link

vercel bot commented Dec 23, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
2025-seasonthon-team-80-fe Ready Ready Preview, Comment Dec 23, 2025 3:16pm

@coderabbitai
Copy link

coderabbitai bot commented Dec 23, 2025

개요

join-complete-page 컴포넌트에서 useAuthStore의 boardShare 데이터를 추가로 활용하여 보드 인증 흐름을 개선했습니다. boardId 누락 시 인증을 재실행하고 결과에 따라 /board 또는 /join/nickname으로 조건부 네비게이션하도록 수정하였습니다.

변경사항

코호트 / 파일 변경 요약
join-complete-page 조건부 네비게이션
src/pages/joinPage/pages/join-complete-page.tsx
useAuthStore에서 boardShare 추가 활용; boardShare.boardId 누락 시 force: true로 인증 재실행; 인증 성공 시 /board, 실패 시 /join/nickname으로 네비게이션; NavigationButton에 active={true} prop 추가

예상 코드 리뷰 소요시간

🎯 2 (Simple) | ⏱️ ~10 minutes

관련 가능성 있는 PR

제안 라벨

🛠 Fix

제안 검토자

  • hyesngy

축하 시

🐰 보드 공유의 길을 따라,
인증의 흐름을 재정렬하니,
boardShare의 손을 잡고,
올바른 페이지로 나아가네요!
네비게이션의 여정, 더욱 매끄러워졌어요. ✨

Pre-merge checks and finishing touches

❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
Description check ❓ Inconclusive PR 설명이 필수 섹션들을 포함하고 있으나, Summary 섹션의 작업 내용 요약이 미작성 상태이고 관련 이슈 태그도 없습니다. Summary 섹션에 구체적인 작업 내용 요약을 작성하고, 관련된 이슈가 있다면 (#이슈번호) 태그를 추가해주세요.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed PR 제목이 실제 변경사항(join-complete 페이지의 보드 이동 로직 수정)을 명확하게 반영하고 있으며, 간결하고 구체적입니다.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/modify-join-complete-handle-to-board

📜 Recent review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 811f730 and 648b75d.

📒 Files selected for processing (1)
  • src/pages/joinPage/pages/join-complete-page.tsx
🧰 Additional context used
🧬 Code graph analysis (1)
src/pages/joinPage/pages/join-complete-page.tsx (1)
src/stores/useAuthStore.ts (1)
  • useAuthStore (20-75)
🔇 Additional comments (2)
src/pages/joinPage/pages/join-complete-page.tsx (2)

10-10: LGTM!

boardShare를 store에서 가져오는 로직이 올바르게 추가되었습니다.


51-51: LGTM!

NavigationButtonactive={true} prop을 추가하여 버튼의 활성 상태를 명확하게 표현했습니다.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
src/pages/joinPage/pages/join-complete-page.tsx (1)

18-37: 에러 처리가 누락되었습니다.

checkAuth 호출에 대한 에러 처리가 없습니다. 인증 재시도가 실패하거나 예상치 못한 오류가 발생할 경우 사용자에게 피드백이 제공되지 않습니다.

🔎 에러 처리 추가 제안
 if (!boardShare?.boardId) {
   // 보드 정보가 없으면 인증을 다시 시도
   void checkAuth({ force: true }).then((data) => {
     if (data?.boardId) {
       navigate("/board");
     } else {
       navigate("/join/nickname");
     }
-  });
+  }).catch((error) => {
+    console.error("인증 재시도 실패:", error);
+    navigate("/join/nickname");
+  });
   return;
 }

로딩 상태 추가를 권장합니다.

인증 재시도 중에 사용자에게 로딩 상태를 표시하여 UX를 개선하고 중복 클릭을 방지할 수 있습니다.

🔎 로딩 상태 추가 제안
+import { useEffect, useState } from "react";
 
 export default function JoinCompletePage() {
   const navigate = useNavigate();
   const { isLoggedIn, checkAuth, hasFetchedAuth, boardShare } = useAuthStore();
+  const [isNavigating, setIsNavigating] = useState(false);

   // ... useEffect code ...

   const handleToBoard = () => {
     if (!isLoggedIn) {
       navigate("/");
       return;
     }
     
+    if (isNavigating) {
+      return;
+    }
+
     if (!boardShare?.boardId) {
       // 보드 정보가 없으면 인증을 다시 시도
+      setIsNavigating(true);
       void checkAuth({ force: true }).then((data) => {
         if (data?.boardId) {
           navigate("/board");
         } else {
           navigate("/join/nickname");
         }
       }).catch((error) => {
         console.error("인증 재시도 실패:", error);
         navigate("/join/nickname");
+      }).finally(() => {
+        setIsNavigating(false);
       });
       return;
     }
     
     navigate("/board");
   };

   return (
     <PageLayout
       // ...
       bottomContent={
-        <NavigationButton className="w-full" active={true} onClick={handleToBoard}>
+        <NavigationButton className="w-full" active={true} onClick={handleToBoard} disabled={isNavigating}>
           다음으로
         </NavigationButton>
       }
     >
📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 811f730 and 648b75d.

📒 Files selected for processing (1)
  • src/pages/joinPage/pages/join-complete-page.tsx
🧰 Additional context used
🧬 Code graph analysis (1)
src/pages/joinPage/pages/join-complete-page.tsx (1)
src/stores/useAuthStore.ts (1)
  • useAuthStore (20-75)
🔇 Additional comments (2)
src/pages/joinPage/pages/join-complete-page.tsx (2)

10-10: LGTM!

boardShare를 store에서 가져오는 로직이 올바르게 추가되었습니다.


51-51: LGTM!

NavigationButtonactive={true} prop을 추가하여 버튼의 활성 상태를 명확하게 표현했습니다.

@KwonDeaGeun KwonDeaGeun merged commit 4aa97bd into develop Dec 23, 2025
6 checks passed
@KwonDeaGeun KwonDeaGeun deleted the fix/modify-join-complete-handle-to-board branch December 27, 2025 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants