-
Notifications
You must be signed in to change notification settings - Fork 0
[REFACTOR] 저장 확인 다이얼로그 제거 #46
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
Conversation
- 친구 프로필 편집 화면에서 저장 버튼 클릭 시 나타나던 확인 다이얼로그를 제거하고, 즉시 저장되도록 수정했습니다.
Summary of ChangesHello @stopstone, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! 이 Pull Request는 친구 프로필 편집 화면의 사용자 경험을 개선하기 위해 저장 확인 다이얼로그를 제거하는 리팩토링을 수행합니다. 기존에는 프로필 편집 후 저장 버튼을 누르면 한 번 더 확인하는 다이얼로그가 나타났지만, 이제는 이 단계를 생략하고 즉시 저장되도록 변경하여 사용자가 더 빠르고 직관적으로 작업을 완료할 수 있도록 합니다. 이는 불필요한 인터랙션을 줄여 전반적인 앱 사용 흐름을 간소화하는 데 기여합니다. Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
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.
Code Review
이 PR은 친구 프로필 편집 화면에서 저장 버튼을 눌렀을 때 나타나는 확인 다이얼로그를 제거하는 리팩토링을 수행합니다. 이로 인해 사용자는 추가적인 확인 단계 없이 즉시 변경 사항을 저장할 수 있게 되어 사용자 경험이 개선됩니다. 전체적인 변경 사항은 명확하며, 의도한 대로 잘 구현되었습니다. 다만, 이번 변경과 관련하여 유효성 검사 로직에서 발견된 잠재적인 문제에 대한 피드백을 하나 남겼습니다. 확인 부탁드립니다.
| modifier = | ||
| Modifier.onNoRippleClick(onClick = { | ||
| onSaveConfirmDialogStateChanged(true) | ||
| onSubmit() |
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.
onSubmit을 직접 호출하도록 변경한 것은 좋습니다. 하지만 이로 인해 FriendProfileEditorViewModel의 유효성 검사 로직에 있는 잠재적인 문제가 드러날 수 있습니다.
onSubmit 함수는 기념일 제목에 대해 isBlank()를 사용하여 유효성을 검사하지만, UI에 오류를 표시하는 error 상태는 onAnniversaryTitleChanged 함수에서 isEmpty()를 사용하여 설정됩니다. 이 불일치로 인해 사용자가 공백만 입력할 경우 UI에는 오류가 표시되지 않지만 저장은 조용히 실패하게 됩니다.
일관된 동작을 보장하고 사용자에게 명확한 피드백을 제공하기 위해, FriendProfileEditorViewModel의 onNameChanged 및 onAnniversaryTitleChanged에서도 isBlank()를 사용하여 유효성을 검사하고 error 상태를 설정하는 것을 강력히 권장합니다. 이렇게 하면 사용자가 저장 버튼을 눌렀을 때 왜 저장이 안 되는지 명확히 알 수 있습니다.
작업 내용
확인 방법
-feature/friendprofileedittor에서 확인하실 수 있습니다.
참고 사항
관련 이슈