Skip to content

Conversation

@BaekJiyeon02
Copy link
Member

#️⃣연관된 티켓 넘버

CLAP-346
CLAP-364

📝작업 내용

router.push-> router.replace 교체
오타 수정 및 워딩 통일
유효성 검사 absolute 추가하여 다른 컴포넌트 밀리기 방지

🏞️스크린샷 (선택)

💬리뷰 요구사항(선택)

@BaekJiyeon02 BaekJiyeon02 added the 🔨 Refactor 코드 리팩토링 label Feb 10, 2025
@BaekJiyeon02 BaekJiyeon02 changed the title Clap 364 CLAP-364 UI/UX 개선 Chloe Feb 10, 2025
@BaekJiyeon02 BaekJiyeon02 merged commit 2a29485 into release Feb 10, 2025
1 check passed
@BaekJiyeon02 BaekJiyeon02 linked an issue Feb 10, 2025 that may be closed by this pull request
2 tasks
Copy link
Contributor

@seorang42 seorang42 left a comment

Choose a reason for hiding this comment

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

확인했습니다!

if (!PERMITTED_URL.ROLE_ADMIN.includes(originUrl)) router.replace('/member-management')
} else {
if (!PERMITTED_URL.UNKNOWN.includes(originUrl)) router.push('/login')
if (!PERMITTED_URL.UNKNOWN.includes(originUrl)) router.replace('/login')
Copy link
Contributor

Choose a reason for hiding this comment

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

pw-check와 edit-information은 replace로 잘 변경해주신 것 같은데,
이 부분과 login으로의 replace는 다시 한 번 생각해봐야 할 것 같습니다.

예를 들어 권한이 없는 페이지로 url 입력을 통해 직접 이동하여 위 코드에서 replace가 된다면,
뒤로가기를 눌렀을 때 replace 된 페이지가 아닌 잘못된 페이지로 계속 뒤로가기가 되어
결국 다시 replace가 되는 상황이 생길 수 있을 것 같습니다.

이 부분에 대해서는 내일 프론트엔드끼리 상의 후 맞춰봐야 할 것 같습니다.
일단은 이대로 머지 부탁드립니다!

@BaekJiyeon02 BaekJiyeon02 self-assigned this Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

🔨 Refactor 코드 리팩토링

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLAP-364 UI/UX 개선 Chloe

3 participants