-
Notifications
You must be signed in to change notification settings - Fork 1
feat(navigation): add NavigationActions and the composable SideBarNavigation #19
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
Implement the different routes and screens necessary for the navigation through the app. The SideBarNavigations serves as a Menu which will be available in the main Screens.
Implement the different routes and screens necessary for the navigation through the app. The SideBarNavigations serves as a Menu which will be available in the main Screens.
Start implementing the tests for the different methods of NavigationsActions.
…adle. Implement the tests for SideBarNavigation with some tweaks to the code to make the test tags available. changed gradle build to include mockito imports.
…App into feat/11-add-navigation
Add tests to both test files. Also changed the icons in the SideBarNavigation to make it more visually apealing.
…en if list is empty
…ts.kt Add tests to both test classes, specially for the NavOptions properties which were previously inaccesible through the NavController.
Just a few comments about what I saw when looking quickly at the code. Will leave the review to someone else, I have done a lot of them recently :) |
app/src/main/java/ch/hikemate/app/ui/navigation/NavigationActions.kt
Outdated
Show resolved
Hide resolved
…n, update the JVM version
app/src/main/java/ch/hikemate/app/ui/navigation/NavigationActions.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/ch/hikemate/app/ui/navigation/NavigationActions.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/ch/hikemate/app/ui/navigation/NavigationActions.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/ch/hikemate/app/ui/navigation/NavigationActions.kt
Outdated
Show resolved
Hide resolved
app/src/test/java/ch/hikemate/app/navigation/NavigationActionsTest.kt
Outdated
Show resolved
Hide resolved
app/src/test/java/ch/hikemate/app/navigation/NavigationActionsTest.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/ch/hikemate/app/ui/navigation/SideBarNavigation.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/ch/hikemate/app/ui/navigation/SideBarNavigation.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/ch/hikemate/app/ui/navigation/SideBarNavigation.kt
Outdated
Show resolved
Hide resolved
app/src/main/java/ch/hikemate/app/ui/navigation/SideBarNavigation.kt
Outdated
Show resolved
Hide resolved
app/src/androidTest/java/ch/hikemate/app/navigation/SideBarNavigationTest.kt
Outdated
Show resolved
Hide resolved
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.
Nice work! Really love your usage of constants for both your SideBarNavigation.kt
and its test.
I added some (a lot 😅) of comments you should look at. They all are pretty quick to fix and really nitpicking.
Thanks!
|
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.
Perfect! Nice job. Don't forget to use squash and merge ;)
Summary
This pull request introduces the core navigation functionality for the HikeMate application, setting up the foundation for user flow across various screens.
Key Changes
NavigationActions.kt
:This file defines the primary navigation routes and screen names for the different sections of the app. It provides utility functions for navigating between
TopLevelDestination
s, allowing seamless transitions within the app's structure.SideBarNavigation.kt
:Introduces a sidebar component that serves as the main navigation UI element. This
ModalNavigationDrawer
is available on most key screens, enabling users to toggle a sidebar menu by clicking the icon in the upper left corner. The menu allows users to navigate through essential parts of the application.Additional Updates
build.gradle
to include the necessary dependencies for testing, ensuring the navigation components are covered by relevant unit and UI tests.