Onboarding 추가#218
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 ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
🛠️ 이슈와 PR의 Labels 동기화를 스킵했어요. |
✅ PR의 Assign 자동 지정을 성공했어요! |
There was a problem hiding this comment.
Code Review
This pull request introduces a comprehensive onboarding flow by adding the OnboardingFeature module and updating the RootFeature to manage the new multi-step sequence. The changes include meal and timetable previews, widget setup guides, and Siri integration. Review feedback highlighted critical errors in iOS version availability checks (incorrectly specified as 26.0) and suggested utilizing the TCA date dependency in OnboardingCore to enhance the testability of date-related logic.
| } | ||
| // .toolbar(.hidden, for: .navigationBar) | ||
|
|
||
| if #available(iOS 26.0, *) { |
| .contentShape(Circle()) | ||
| .accessibilityLabel("이전") | ||
|
|
||
| if #available(iOS 26.0, *) { |
| } | ||
|
|
||
| private var siriSymbolName: String { | ||
| if #available(iOS 26.0, *) { |
| @@ -87,12 +87,12 @@ private extension TWButtonStyle { | |||
|
|
|||
| if #available(iOS 26.0, watchOS 26.0, *) { | |||
| @Dependency(\.mealClient) var mealClient | ||
| @Dependency(\.timeTableClient) var timeTableClient |
There was a problem hiding this comment.
Reducer 내부에서 Date()를 직접 호출하는 대신 TCA의 date 디펜던시를 사용하는 것이 좋습니다. 이는 비즈니스 로직의 순수성을 유지하고, 테스트 코드 작성 시 현재 시간을 제어할 수 있게 해줍니다.
| @Dependency(\.mealClient) var mealClient | |
| @Dependency(\.timeTableClient) var timeTableClient | |
| @Dependency(\.mealClient) var mealClient | |
| @Dependency(\.timeTableClient) var timeTableClient | |
| @Dependency(\.date.now) var now |
|
|
||
|
|
||
| case .fetchPreviewData: | ||
| let targetDate = schoolDay(from: Date()) |
💡 개요
Onboarding 추가