Conversation
Summary of ChangesHello @gino-m, 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! This pull request enhances the Android application's architecture by refactoring the home navigation drawer into a standalone Composable, promoting better code structure and reusability. Concurrently, it establishes the necessary infrastructure for Hilt-based instrumented testing, which will enable more robust and maintainable tests for UI components. Minor documentation improvements and the removal of an obsolete agent skill are also included. Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
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.
Code Review
The pull request refactors the home navigation drawer into a Jetpack Compose component and sets up a custom test runner for Hilt-based instrumented tests. The new HomeDrawer implementation is well-structured and follows Material 3 guidelines. I have identified a few minor issues related to accessibility (redundant content descriptions), UX (misleading ripple effects on non-interactive items), and touch target sizes that should be addressed to improve the overall quality and usability of the component.
app/src/main/java/org/groundplatform/android/ui/home/HomeDrawer.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/groundplatform/android/ui/home/HomeDrawer.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/groundplatform/android/ui/home/HomeDrawer.kt
Outdated
Show resolved
Hide resolved
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## master #3554 +/- ##
============================================
+ Coverage 71.03% 71.06% +0.02%
+ Complexity 1631 1630 -1
============================================
Files 331 332 +1
Lines 8956 9116 +160
Branches 998 1015 +17
============================================
+ Hits 6362 6478 +116
- Misses 1998 2032 +34
- Partials 596 606 +10
🚀 New features to boost your workflow:
|
app/src/main/java/org/groundplatform/android/ui/home/HomeDrawer.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/groundplatform/android/ui/home/HomeDrawer.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/groundplatform/android/ui/home/HomeDrawer.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/org/groundplatform/android/ui/home/HomeScreenFragment.kt
Show resolved
Hide resolved
app/src/main/java/org/groundplatform/android/ui/home/HomeScreenFragment.kt
Outdated
Show resolved
Hide resolved
app/src/test/java/org/groundplatform/android/ui/home/HomeScreenFragmentTest.kt
Outdated
Show resolved
Hide resolved
app/src/test/java/org/groundplatform/android/ui/home/HomeScreenFragmentTest.kt
Outdated
Show resolved
Hide resolved
app/src/test/java/org/groundplatform/android/ui/home/HomeScreenFragmentTest.kt
Show resolved
Hide resolved
app/src/main/java/org/groundplatform/android/ui/home/HomeDrawer.kt
Outdated
Show resolved
Hide resolved
…tic row at the bottom of the drawer
…r.kt Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…r.kt Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
…matting and unused resources
- Refactor HomeScreenFragment to reduce method length - Refactor HomeDrawer to extract composables - Migrate HomeScreenViewModel dialog state to StateFlow - Initialize WorkManager in HomeScreenFragmentTest - Ignore flaky sign out dialog test in Robolectric - Fix static analysis issues (detekt, ktfmt)
- Introduce `HomeDrawerAction` sealed interface to represent navigation and sign-out events. - Update `HomeDrawer` to expose a single `onAction` callback instead of multiple parameters. - Consolidate navigation logic in `HomeScreenFragment` within the `onAction` handler.
625d941 to
1bc876c
Compare
| * | ||
| * This is required for Hilt dependency injection to work correctly in instrumented tests. | ||
| */ | ||
| class CustomTestRunner : AndroidJUnitRunner() { |
There was a problem hiding this comment.
as far as I see this file is not being used and can be removed
| implementation libs.androidx.ui.tooling.preview.android | ||
| stagingImplementation libs.androidx.ui.test.manifest | ||
| testImplementation libs.androidx.ui.test.junit4 | ||
| androidTestImplementation libs.androidx.ui.test.junit4 |
|
|
||
| @Preview(showBackground = true) | ||
| @Composable | ||
| fun HomeDrawerPreview() { |
There was a problem hiding this comment.
nit: this could be private to avoid unintended usage
| val user: org.groundplatform.android.model.User, | ||
| val survey: org.groundplatform.android.model.Survey?, |
There was a problem hiding this comment.
nit: imports could be simplified


Towards #3487
Screen_recording_20260216_154137.webm