-
-
Notifications
You must be signed in to change notification settings - Fork 4
Add profile selection dialog #54
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
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.
Pull Request Overview
Adds ride-profile–specific filtering and selection to reminders, updates manifest generation to use a configurable base URL, and bumps the Karoo extension dependency.
- Introduce
enabledRideProfiles
toReminder
and helperreminderIsActive
- Add UI for selecting ride profiles in
DetailScreen
and filter cards inMainScreen
- Extend the Karoo extension pipeline to stream and apply active ride profile, plus CI/build updates
Reviewed Changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
gradle/libs.versions.toml | Bumped io.hammerhead:karoo-ext to version 1.1.5 |
app/src/main/kotlin/de/timklge/karooreminder/screens/Reminder.kt | Added enabledRideProfiles and reminderIsActive helper |
app/src/main/kotlin/de/timklge/karooreminder/screens/MainScreen.kt | Filter reminder cards by the active ride profile |
app/src/main/kotlin/de/timklge/karooreminder/screens/DetailScreen.kt | Added ride-profile selection dialog and state plumbing |
app/src/main/kotlin/de/timklge/karooreminder/KarooReminderExtension.kt | Wire active profile into trigger jobs and filter logic |
app/src/main/kotlin/de/timklge/karooreminder/Extensions.kt | New streamActiveRideProfile extension method |
app/src/main/AndroidManifest.xml | Switched manifest URL to $BASE_URL$ placeholder |
app/build.gradle.kts | Generate manifest.json (and patch AndroidManifest) from BASE_URL env |
.github/workflows/android.yml | CI: env var defaults, Android SDK setup, release action tweaks |
Comments suppressed due to low confidence (2)
app/src/main/kotlin/de/timklge/karooreminder/KarooReminderExtension.kt:238
- [nitpick] This
streamDataFlow
name shadowskarooSystem.streamDataFlow(...)
and can be confusing. Consider renaming it to something likecombinedStreamData
.
val streamDataFlow = combine(streamPreferences(), karooSystem.streamActiveRideProfile()) { reminders, activeProfile ->
app/src/main/kotlin/de/timklge/karooreminder/screens/Reminder.kt:150
- This new filtering logic would benefit from unit tests covering profiles-enabled, profiles-empty, and null current profile scenarios to prevent regressions.
fun reminderIsActive(reminder: Reminder, currentRideProfile: RideProfile?): Boolean {
ref #53