Skip to content

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

Merged
merged 18 commits into from
Oct 10, 2024

Conversation

mchac15
Copy link
Contributor

@mchac15 mchac15 commented Oct 6, 2024

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 TopLevelDestinations, 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

  • Modifications were made to build.gradle to include the necessary dependencies for testing, ensuring the navigation components are covered by relevant unit and UI tests.

mchac15 added 13 commits October 5, 2024 12:10
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.
Add tests to both test files. Also changed the icons in the
SideBarNavigation to make it more visually apealing.
…ts.kt

Add tests to both test classes, specially for the NavOptions properties
which were previously inaccesible through the NavController.
@mchac15 mchac15 marked this pull request as ready for review October 7, 2024 09:31
@Wylwi
Copy link
Contributor

Wylwi commented Oct 7, 2024

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 :)

@mchac15 mchac15 removed the request for review from rBergCode October 7, 2024 11:33
@mchac15 mchac15 requested a review from davidholzwarth October 7, 2024 16:08
@mchac15 mchac15 changed the title Feat/add navigation feat: add navigation Oct 7, 2024
@mchac15 mchac15 changed the title feat: add navigation feat(navigation): add NavigationActions and the composable SideBarNavigation Oct 7, 2024
@mchac15 mchac15 self-assigned this Oct 7, 2024
@mchac15 mchac15 added the enhancement New feature or request label Oct 7, 2024
@mchac15 mchac15 linked an issue Oct 7, 2024 that may be closed by this pull request
@HikeMate HikeMate deleted a comment from sonarqubecloud bot Oct 9, 2024
@HikeMate HikeMate deleted a comment from sonarqubecloud bot Oct 9, 2024
@HikeMate HikeMate deleted a comment from sonarqubecloud bot Oct 9, 2024
@rBergCode rBergCode requested review from rBergCode and removed request for davidholzwarth and MaelImhof October 10, 2024 08:11
Copy link
Contributor

@rBergCode rBergCode left a 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!

@mchac15 mchac15 requested a review from rBergCode October 10, 2024 11:43
Copy link

Copy link
Contributor

@rBergCode rBergCode left a 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 ;)

@mchac15 mchac15 merged commit 9ceed04 into main Oct 10, 2024
2 checks passed
@mchac15 mchac15 deleted the feat/add-navigation branch October 10, 2024 12:59
@MaelImhof MaelImhof added the sprint 1 Active during the first sprint label Nov 15, 2024
@MaelImhof MaelImhof added this to the Milestone 1 milestone Nov 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request sprint 1 Active during the first sprint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement navigation to move through the app
5 participants