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 69.69% 69.78% +0.08%
- Complexity 1811 1814 +3
============================================
Files 349 347 -2
Lines 9675 9762 +87
Branches 1060 1047 -13
============================================
+ Hits 6743 6812 +69
- Misses 2298 2314 +16
- Partials 634 636 +2
🚀 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
Outdated
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
Outdated
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
app/src/androidTest/java/org/groundplatform/android/CustomTestRunner.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/HomeScreenViewModel.kt
Outdated
Show resolved
Hide resolved
| </style> | ||
|
|
||
| <style name="TextAppearance.App.TitleSmall" parent="TextAppearance.Material3.TitleSmall"> | ||
| <style name="TextAppearance.App.TitleSmall" parent="TextAppearance.Material3.TitleSmall" tools:ignore="UnusedResources"> |
There was a problem hiding this comment.
nit: instead of adding the tools:ignore="UnusedResources, why not remove it?
| coreTesting = "2.2.0" | ||
| coreTestingVersion = "1.1.1" | ||
| coreVersion = "1.7.0" | ||
| coilVersion = "2.7.0" |
There was a problem hiding this comment.
nit: coilComposeVersion is already defined in this file, that value can be used instead
| import org.groundplatform.android.R | ||
| import org.groundplatform.android.model.Survey | ||
| import org.groundplatform.android.model.User | ||
| import org.groundplatform.android.ui.theme.AppTheme |
There was a problem hiding this comment.
this import is making the build fail. It should changed due to a previous PR
| import org.groundplatform.android.ui.theme.AppTheme | |
| import org.groundplatform.ui.theme.AppTheme |
- Restored original icons - Reordered items - Fixed typography for App title and list items - Fixed AppTheme import issue


Towards #3487
Screen_recording_20260216_154137.webm