-
Notifications
You must be signed in to change notification settings - Fork 1
π fix: μ€λ₯ λͺ¨λ¬+μ΄λ μ²λ¦¬ #226
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
π WalkthroughWalkthroughλ‘κ·ΈμΈ λ° νμκ°μ νλ‘μ°μμ λͺ¨λ¬ λ©μμ§ μ²λ¦¬λ₯Ό λμ μΌλ‘ κ΄λ¦¬νλλ‘ λ³κ²½λμμ΅λλ€. μλ¬ λ°μ μ λͺ¨λ¬μ νμλλ λ©μμ§κ° μν λ³μλ‘ μ μ΄λλ©°, λͺ¨λ¬ λ«κΈ° μ νλ‘μ°μ λ°λΌ λ‘κ·ΈμΈ λλ νμκ°μ νμ΄μ§λ‘ 리λ€μ΄λ νΈνλ λ‘μ§μ΄ μΆκ°λμμ΅λλ€. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant KakaoCallbackPage
participant Modal
participant Router
User->>KakaoCallbackPage: μΉ΄μΉ΄μ€ μ½λ°± μ§μ
KakaoCallbackPage->>KakaoCallbackPage: λ‘κ·ΈμΈ/νμκ°μ
μλ
alt 404 μλ¬ (νμκ°μ
νμ)
KakaoCallbackPage->>Modal: "λ¨Όμ νμκ°μ
μ ν΄μ£ΌμΈμ." λ©μμ§λ‘ λͺ¨λ¬ μ€ν
Modal-->>User: λ©μμ§ νμ
User->>Modal: λͺ¨λ¬ λ«κΈ°
Modal->>KakaoCallbackPage: onClose μ΄λ²€νΈ
KakaoCallbackPage->>Router: νμκ°μ
νμ΄μ§λ‘ 리λ€μ΄λ νΈ
else 400 μλ¬ (μ΄λ―Έ λ±λ‘λ μ¬μ©μ)
KakaoCallbackPage->>Modal: "μ΄λ―Έ λ±λ‘λ μμ΄λ μ
λλ€." λ©μμ§λ‘ λͺ¨λ¬ μ€ν
Modal-->>User: λ©μμ§ νμ
User->>Modal: λͺ¨λ¬ λ«κΈ°
Modal->>KakaoCallbackPage: onClose μ΄λ²€νΈ
KakaoCallbackPage->>Router: λ‘κ·ΈμΈ νμ΄μ§λ‘ 리λ€μ΄λ νΈ
end
Estimated code review effortπ― 2 (Simple) | β±οΈ ~8 minutes Possibly related PRs
Suggested reviewers
Poem
Note β‘οΈ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. π Recent review detailsConfiguration used: .coderabbit.yaml π Files selected for processing (1)
π§ Files skipped from review as they are similar to previous changes (1)
β° Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
β¨ Finishing Touches
π§ͺ Generate unit tests
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. πͺ§ TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
|
π§· λ°°ν¬ λ―Έλ¦¬λ³΄κΈ°: https://global-nomad-pc7gbkedn-yun-jinwoos-projects.vercel.app |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 1
π§Ή Nitpick comments (2)
src/app/login/callback/kakaocallback.tsx (2)
88-88: λμ λ©μμ§ μ€μ μΌλ‘ κ°μ λμμ΅λλ€.νλμ½λ©λ λ©μμ§μμ λμ λ©μμ§λ‘ λ³κ²½λ κ²μ μ’μ κ°μ μ¬νμ λλ€. λ€λ§ μλ² μλ΅ λ©μμ§("μ΄λ―Έ λ±λ‘λ μ¬μ©μμ λλ€.")μ ν΄λΌμ΄μΈνΈ νμ λ©μμ§("μ΄λ―Έ λ±λ‘λ μμ΄λ μ λλ€.") κ°μ μΌκ΄μ±μ κ²ν ν΄λ³΄μκΈ° λ°λλλ€.
58-58: νμ μμ ν μλ¬ νΈλ€λ§μ μν΄ axios.isAxiosError() μ¬μ©μ κΆμ₯ν©λλ€.νμ¬
err as ApiErrorλ‘ νμ λ¨μΈμ μ¬μ©νκ³ μλλ°,axios.isAxiosError()λ₯Ό μ¬μ©νλ©΄ λ νμ μμ νκ² μλ¬λ₯Ό μ²λ¦¬ν μ μμ΅λλ€.λ€μκ³Ό κ°μ΄ κ°μ ν μ μμ΅λλ€:
+import axios from 'axios'; } catch (err) { - const apiErr = err as ApiError; - if (apiErr.response?.status === 404) { + if (axios.isAxiosError(err) && err.response?.status === 404) { setIsModalOpen(true); setMsg('λ¨Όμ νμκ°μ μ ν΄μ£ΌμΈμ.'); return; } }Also applies to: 81-81
π Review details
Configuration used: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
π Files selected for processing (1)
src/app/login/callback/kakaocallback.tsx(4 hunks)
π§° Additional context used
π§ Learnings (2)
π Common learnings
Learnt from: two678
PR: Act-It-FE/global-nomad#22
File: src/app/page.tsx:3-3
Timestamp: 2025-07-16T04:52:59.478Z
Learning: User two678 has requested that all future PR reviews should be conducted in Korean language. All CodeRabbit reviews for this repository should be written in Korean from now on.
Learnt from: Moon-ju-young
PR: Act-It-FE/global-nomad#87
File: src/components/common/Gnb.tsx:70-76
Timestamp: 2025-07-25T04:52:40.190Z
Learning: change requestedλ κΌ νμν λ²κ·Έ μμ μ΄λ κΈ°λ₯μ λ¬Έμ μλ§ μ¬μ©νκ³ , μ κ·Όμ± κ°μ μ΄λ μ νμ μ μμ¬νμ commentλ‘λ§ μ μν΄μΌ ν¨
π Learning: axios.isaxioserror()λ₯Ό μ¬μ©νμ¬ axios μλ¬λ₯Ό νμ μμ νκ² μ²΄ν¬νλ κ²μ΄ κΆμ₯λλ λ°©λ²μ λλ€. μ΄λ error.response?.data?.message κ°μ...
Learnt from: two678
PR: Act-It-FE/global-nomad#122
File: src/hooks/useErrorHandler.ts:1-9
Timestamp: 2025-07-27T07:24:43.556Z
Learning: axios.isAxiosError()λ₯Ό μ¬μ©νμ¬ Axios μλ¬λ₯Ό νμ
μμ νκ² μ²΄ν¬νλ κ²μ΄ κΆμ₯λλ λ°©λ²μ
λλ€. μ΄λ error.response?.data?.message κ°μ μμ±μ μμ νκ² μ κ·Όν μ μκ² ν΄μ€λλ€.
Applied to files:
src/app/login/callback/kakaocallback.tsx
π Additional comments (3)
src/app/login/callback/kakaocallback.tsx (3)
27-27: λμ λͺ¨λ¬ λ©μμ§ κ΄λ¦¬λ₯Ό μν μν μΆκ°κ° μ μ ν©λλ€.νλμ½λ©λ λ©μμ§λ₯Ό λμ μΌλ‘ κ΄λ¦¬ν μ μκ² ν΄μ£Όλ μ’μ κ°μ μ¬νμ λλ€.
106-106: λμ λ©μμ§ νμλ‘ μ¬λ°λ₯΄κ² λ³κ²½λμμ΅λλ€.νλμ½λ©λ λ©μμ§μμ μν κΈ°λ° λμ λ©μμ§λ‘ λ³κ²½λ κ²μ΄ μ μ ν©λλ€.
110-114: νλ‘μ°μ λ°λ₯Έ μ‘°κ±΄λΆ λ¦¬λ€μ΄λ νΈ λ‘μ§μ΄ μ μ ν©λλ€.λͺ¨λ¬ λ«κΈ° μ μ¬μ©μμ νλ‘μ°μ λ°λΌ μ μ ν νμ΄μ§λ‘ 리λ€μ΄λ νΈνλ λ‘μ§μ΄ PR λͺ©νμ μΌμΉνλ©° μ¬λ°λ₯΄κ² ꡬνλμμ΅λλ€.
Moon-ju-young
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π
π λ³κ²½ μ¬ν κ°μ
μ€λ₯ λͺ¨λ¬+μ΄λ μ²λ¦¬
π μμΈ λ΄μ©
μΉ΄μΉ΄μ€ λ‘κ·ΈμΈμμ νμκ°μ μ΄ νμνκ²½μ° λͺ¨λ¬μ΄ λ¨κ³ λ²νΌμ λλ₯΄λ©΄ νμκ°μ νμ΄μ§λ‘ μ΄λνλλ‘οΌ
μΉ΄μΉ΄μ€ νμκ°μ μμ μ΄λ―Έ λ±λ‘λ μ¬μ©μμΌ κ²½μ° λͺ¨λ¬μ΄ λ¨κ³ λ²νΌμ λλ₯΄λ©΄ λ‘κ·ΈμΈ νμ΄μ§λ‘ μ΄λνλλ‘
π κ΄λ ¨ μ΄μ
πΌοΈ μ€ν¬λ¦°μ·(μ νμ¬ν)
π‘ μ°Έκ³ μ¬ν
Summary by CodeRabbit