Skip to content

[Feat] 공통 not-found 페이지 구현, 챌린지 디테일 에러 분기 추가 #219

Merged
today-is-first merged 9 commits intomainfrom
feature/#218
May 26, 2025
Merged

[Feat] 공통 not-found 페이지 구현, 챌린지 디테일 에러 분기 추가 #219
today-is-first merged 9 commits intomainfrom
feature/#218

Conversation

@aoooec
Copy link
Collaborator

@aoooec aoooec commented May 26, 2025

개요

Resolves: #218

PR 유형

어떤 변경 사항이 있나요?

  • 새로운 기능 추가
  • CSS 등 사용자 UI 디자인 변경

작업 내용

  • NotFoundPage 생성 및 라우팅 추가
  • 공통 Forbidden Exception, 에러코드 추가
  • global exception 내부에 forbidden exception 등록
  • Challenge Mapper의 getMyChallenge 조인을 left join으로 변경 (user id와 일치하는 값이 없으면 success_day만 null로 반환 -> 유저 접근 권한 확인용)
  • challenge service에서 에러분기 추가 (1. 챌린지 존재하지 않음, 2. 유저 접근 권한 없음)
  • useMyChallenge 훅 반환값에 statusCode 추가
  • challenge detail page 분기 추가 (존재하지 않는 챌린지, 유저 접근권한 없음)
  • challenge detail page 로딩중 화면 스타일 수정

스크린샷

스크린샷 2025-05-26 143718
404 페이지
스크린샷 2025-05-26 142527
로딩중
스크린샷 2025-05-26 142551
접근권한 없음

@today-is-first today-is-first merged commit 5eb5b75 into main May 26, 2025
2 checks passed
@today-is-first today-is-first deleted the feature/#218 branch May 26, 2025 07:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

사용자는 없는 주소로 접근했을때 not found 페이지를 볼 수 있다.

2 participants