10000 Add profile selection dialog by timklge · Pull Request #54 · timklge/karoo-reminder · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 9 commits into from
May 29, 2025
Merged

Add profile selection dialog #54

merged 9 commits into from
May 29, 2025

Conversation

timklge
Copy link
Owner
@timklge timklge commented May 29, 2025

ref #53

@timklge timklge requested a review from Copilot May 29, 2025 11:18
Copy link
@Copilot Copilot AI left a 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 to Reminder and helper reminderIsActive
  • Add UI for selecting ride profiles in DetailScreen and filter cards in MainScreen
  • 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 shadows karooSystem.streamDataFlow(...) and can be confusing. Consider renaming it to something like combinedStreamData.
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 {

@timklge timklge merged commit bf8a588 into master May 29, 2025
2 checks passed
@timklge timklge deleted the feat/profiles branch May 29, 2025 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0