-
Notifications
You must be signed in to change notification settings - Fork 1
feat: error 처리 보완 #31
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
Merged
Merged
Changes from all commits
Commits
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
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
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.
에러 처리 로직이 개선되었지만, 두 가지 주요 개선점을 제안합니다.
조건부 리디렉션: 현재 모든 종류의 회원가입 오류에 대해 로그인 페이지로 리디렉션하고 있습니다. 이는 사용자 경험을 해칠 수 있습니다. 예를 들어, '비밀번호가 너무 짧습니다'와 같이 사용자가 직접 수정해야 하는 오류가 발생했을 때도 페이지가 이동되면, 사용자는 오류를 수정할 기회를 잃게 됩니다. 서버에서 오는 에러 코드(예:
USER_ALREADY_EXISTS)를 확인하여 특정 경우에만 리디렉션하도록 수정하는 것이 좋습니다. (참고: Rule: When a form submission fails, retain the user's input values to improve user experience.)alert()대신 토스트 사용:alert()는 사용자의 모든 동작을 막는 블로킹 UI이며, 앱의 일관된 디자인을 해칩니다.react-hot-toast와 같은 라이브러리를 사용하거나 자체 토스트 컴포넌트를 활용해 비동기적으로 에러 메시지를 보여주는 것이 훨씬 나은 사용자 경험을 제공합니다.References
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.
alert가 더 나은듯