[UNI-296] feat : 404 페이지 제작 및 오류 발생 시 돌아가는 버튼 추가#176
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
📝 PR 타입
🚀 변경 사항
접근할 수 없는 경로에 피드백이 필요할 것으로 보여, 404 페이지를 추가하고, 오류가 발생했을때도 돌아갈 수 있도록 하였습니다.
돌아가는 버튼을 눌렀을 때 로직을 분리
동현님 말대로, 사용자가 뒤로가기를 제스처로 고려하는 경우도 있고, 오류가 발생해도 바로 뒤로 가는 것이 자연스럽다고 느껴져 해당 로직을 반영했습니다.
다만, 사용자가 변형된 링크(카카오톡 공유 etc..)로 바로 접속했을 경우도 대비를 해야하기 때문에, history 객체를 사용해 구분했습니다.
버튼 children에도 차이점을 뒀습니다.
💡 To Reviewer
감사합니다.
🧪 테스트 결과
History 존재시
2025-02-18.11.47.22.mov
History 존재하지 않을 시
2025-02-18.11.48.13.mov
✅ 반영 브랜치
fe
하위 이슈
UNI-298, UNI-299