-
Notifications
You must be signed in to change notification settings - Fork 0
[BOM-490] feat: 완료한 챌린지 카드에서 해당 챌린지 대시보드로 이동 #294
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
Open
JeLee-river
wants to merge
5
commits into
dev
Choose a base branch
from
BOM-490-마이페이지-챌린지-완료-카드-네비게이션-추가
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
The head ref may contain hidden characters: "BOM-490-\uB9C8\uC774\uD398\uC774\uC9C0-\uCC4C\uB9B0\uC9C0-\uC644\uB8CC-\uCE74\uB4DC-\uB124\uBE44\uAC8C\uC774\uC158-\uCD94\uAC00"
+54
−5
Open
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
a0d9fad
refactor: 마이페이지의 완료한 챌린지 카드를 클릭하면 해당 챌린지로 이동하도록 수정
JeLee-river 665c347
fix: 챌린지 id가 없을때 페이지로 라우팅 되지 않도록 개선
JeLee-river 1a8564c
refactor: 완료한 챌린지 카드를 버튼 태그로 변경
JeLee-river aaf5476
design: 카드 디자인 수정
JeLee-river a268861
refactor: 카드를 button에서 div as button으로 수정
JeLee-river File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
/challenge/undefined/dashboard로 이동할 수 있음MyCompletedChallenge.challengeId는 OpenAPI 스키마상number | undefined입니다(web/src/types/openapi.d.ts의CompletedChallengeResponse.challengeId?: number). 실제로 90번째 줄에서는CertificateModal을 렌더링할 때challengeId !== undefined를 명시적으로 체크하고 있어, 이 값이 비어 있을 수 있다는 걸 이미 인지하고 있는 것으로 보입니다.하지만
handleCardClick은isFail만 체크하고challengeId의 존재 여부는 확인하지 않습니다. 등급이 FAIL이 아니면서challengeId가 없는 카드를 클릭하면String(challengeId)가"undefined"문자열이 되어/challenge/undefined/dashboard로 이동하게 됩니다.Claude 검증: 변경 diff의
web/src/pages/my-page/components/MyChallengeSection/CompletedChallengeCard.tsx:40-47기준으로 확인했습니다. 실제 코드와 다르면 이 코멘트는 무시해 주세요. (confidence 0.75).수정 제안:
이 finding이 여전히 유효한지 먼저 확인한 뒤 (예: 실제 API 응답에서 완료 챌린지의
challengeId가 항상 존재하는지), 유효하다면handleCardClick에서if (isFail || challengeId === undefined) return;처럼 가드를 추가하는 것을 검토해 주세요.Generated by Claude Code
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.
챌린지 id가 없으면 클릭 이벤트가 발생하지 않도록 가드를 추가했습니다
fix: 챌린지 id가 없을때 페이지로 라우팅 되지 않도록 개선