Skip to content
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

Add NavigationSuiteScaffold #1373

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add NavigationSuiteScaffold #1373

wants to merge 1 commit into from

Conversation

alexvanyo
Copy link
Contributor

Adds NavigationSuiteScaffold to replace the current manual logic to switch between a navigation rail and navigation bar.

@alexvanyo alexvanyo force-pushed the av/navigation-suite branch 4 times, most recently from 9e7d6d5 to 63b759d Compare April 22, 2024 19:41
Copy link

Combined test coverage report

Overall Project 39.65% -1.03%
Files changed 39.34%

Module Coverage
designsystem 30.38% -3.24%
app 29.38% -0.87% 🍏
Files
Module File Coverage
designsystem Navigation.kt 14.7% -24.13%
app NiaAppState.kt 90.27% 🍏
NiaApp.kt 86.4% -6.22% 🍏
MainActivity.kt 77.6% -1.08%

Copy link

Combined test coverage report

Overall Project 39.65% -1.03%
Files changed 39.34%

Module Coverage
designsystem 30.38% -3.24%
app 29.38% -0.87% 🍏
Files
Module File Coverage
designsystem Navigation.kt 14.7% -24.13%
app NiaAppState.kt 90.27% 🍏
NiaApp.kt 86.4% -6.22% 🍏
MainActivity.kt 77.6% -1.08%

@alexvanyo alexvanyo marked this pull request as ready for review April 22, 2024 22:06
@alexvanyo alexvanyo requested a review from dturner April 22, 2024 22:07
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is changing the tonal elevation we are using for the navigation bar, as the NavigationSuiteScaffold doesn't allow that much customization.

If we strongly feel like we want to keep the current look of the navigation bar (which is overriding the tonal elevation to 0dp), then the intended usage would be to just set up the navigation UI manually, like we are doing right now, but then we wouldn't be using NavigationSuiteScaffold.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another option would be overriding the navigation bar colors specifically to what it would be with that elevation, but that seems a bit like fighting the APIs. I think the new colors look fine, but I don't know who should approve them.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That could work, but eww... especially since we have to handle dynamic colors and the Android colors.

@dturner do you think the visual update here is fine to merge with?

Copy link

@IanGClifton IanGClifton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but I think someone else needs to approve for the color changes. It seems more inline with what M3 generally looks like, but I don't know if there was any history in the decision.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another option would be overriding the navigation bar colors specifically to what it would be with that elevation, but that seems a bit like fighting the APIs. I think the new colors look fine, but I don't know who should approve them.

@alexvanyo alexvanyo force-pushed the av/navigation-suite branch 2 times, most recently from 7dd1fc5 to 18e6c9a Compare May 6, 2024 23:57
Copy link

github-actions bot commented May 7, 2024

Combined test coverage report

Overall Project 39.74% -0.92%
Files changed 42.19%

Module Coverage
designsystem 30.53% -2.83%
app 30.42% -0.85% 🍏
Files
Module File Coverage
designsystem Navigation.kt 15.12% -21.55%
app NiaAppState.kt 90.27% 🍏
NiaApp.kt 86.52% -6.16% 🍏
MainActivity.kt 77.72% -1.07%

Change-Id: I36710d880bff381ed86c61632f2ab91902727775
Copy link

github-actions bot commented May 7, 2024

Combined test coverage report

Overall Project 39.74% -0.92%
Files changed 42.19%

Module Coverage
designsystem 30.53% -2.83%
app 30.42% -0.85% 🍏
Files
Module File Coverage
designsystem Navigation.kt 15.12% -21.55%
app NiaAppState.kt 90.27% 🍏
NiaApp.kt 86.52% -6.16% 🍏
MainActivity.kt 77.72% -1.07%

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.

None yet

2 participants