-
Notifications
You must be signed in to change notification settings - Fork 0
[Refactor/#322] 영어버전 알림시간 설정에서 TimePeriod가 바뀌지 않는 문제를 수정합니다. #325
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
[Refactor/#322] 영어버전 알림시간 설정에서 TimePeriod가 바뀌지 않는 문제를 수정합니다. #325
Conversation
|
Caution Review failedFailed to post review comments. Configuration used: CodeRabbit UI 💡 Knowledge Base configuration:
You can enable these settings in your CodeRabbit configuration. 📒 Files selected for processing (6)
🧰 Additional context used🧬 Code Graph Analysis (3)app/src/main/java/com/sopt/clody/presentation/ui/setting/notificationsetting/component/NotificationSettingTimePicker.kt (1)
app/src/main/java/com/sopt/clody/presentation/ui/home/screen/HomeViewModel.kt (2)
app/src/main/java/com/sopt/clody/presentation/ui/home/screen/HomeScreen.kt (1)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🔇 Additional comments (19)
WalkthroughVersion bumped to 1.5.0. TimeReminder notification permission flow removed; ViewModel API simplified. Home screen introduces runtime POST_NOTIFICATIONS permission handling and consolidates data loading via new HomeViewModel APIs using coroutines/IO. Notification time picker switches AM/PM handling to explicit enum mapping with default selections. Changes
Sequence Diagram(s)sequenceDiagram
participant UI as HomeScreen
participant PM as PermissionManager
participant VM as HomeViewModel
participant Repo as Repositories
UI->>PM: Check POST_NOTIFICATIONS (API 33+)
alt Granted
UI->>VM: sendNotification(true)
else Not granted
UI->>PM: Request permission
PM-->>UI: Result (granted/denied)
UI->>VM: sendNotification(isGranted)
end
UI->>VM: updateYearMonthAndLoadData(year, month[, day])
VM->>VM: mutex.withLock
par Load calendar
VM->>Repo: getCalendar(year, month) [IO]
Repo-->>VM: calendar data
and Load diaries
VM->>Repo: getDailyDiaries(year, month, day) [IO]
Repo-->>VM: diary data
end
VM-->>UI: state updated
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Assessment against linked issues
Assessment against linked issues: Out-of-scope changes
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip 🔌 Remote MCP (Model Context Protocol) integration is now available!Pro plan users can now connect to remote MCP servers from the Integrations page. Connect with popular remote MCPs such as Notion and Linear to add more context to your reviews and chats. ✨ Finishing Touches
🧪 Generate unit tests
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
MoonsuKang
left a comment
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.
LGTM~
타임피커는 대규모 공사 한 번 쳐야될듯 ㅜ
📌 ISSUE
closed #322
📄 Work Description
✨ PR Point
바보같이 TimePeriod를 검사하는 로직에 "오전" 이라고 하드코딩을 박아놔서 ... 영어 버전에선 바뀌지 않는 이슈가 발생했네요.
온보딩 TimeReminderScreen 에서 사용되는 TimePicker와 동일한 로직으로 변경했습니다.
예전에 이걸 왜 도대체 따로 만들었는지 모르겠네요 ㅜㅜ
다음에 TimePicker 로직을 좀 손을 봐야할듯..!
📸 ScreenShot/Video
Summary by CodeRabbit