Draft
Conversation
* Each screen is now internal & provided by hilt (can also be done with koin so still KMP compliant-ish for now) * NavigationBarPaths was naughty and had too many responsibilities * All navigation is now provided by the Navigator class, similar to the nav3 class, but it's just a wrapper around a statelist * Deep links currently broken because they have to be parsed manually in nav3 * the nav stack is now flattened, so removed a lot of logic with destinations, nested graphs, etc
# Conflicts: # anime/src/main/kotlin/com/imashnake/animite/anime/AnimeViewModel.kt # app/src/main/kotlin/com/imashnake/animite/features/MainActivity.kt # manga/src/main/kotlin/com/imashnake/animite/manga/MangaViewModel.kt # media/src/main/kotlin/com/imashnake/animite/media/MediaPage.kt # navigation/build.gradle.kts # navigation/src/main/kotlin/com/imashnake/animite/navigation/NavigationBar.kt # navigation/src/main/kotlin/com/imashnake/animite/navigation/NavigationBarPaths.kt # navigation/src/main/kotlin/com/imashnake/animite/navigation/NavigationRail.kt # settings/src/main/kotlin/com/imashnake/animite/settings/SettingsPage.kt
Iannnr
commented
Mar 4, 2026
Iannnr
commented
Mar 4, 2026
Iannnr
commented
Mar 4, 2026
Iannnr
commented
Mar 4, 2026
Iannnr
commented
Mar 4, 2026
| } | ||
|
|
||
| @Composable | ||
| private fun getTopRightRadius(): Int { |
Collaborator
Author
There was a problem hiding this comment.
definitely wasn't AI
Iannnr
commented
Mar 4, 2026
Iannnr
commented
Mar 4, 2026
Iannnr
commented
Mar 4, 2026
Iannnr
commented
Mar 4, 2026
Iannnr
commented
Mar 4, 2026
Iannnr
commented
Mar 4, 2026
Iannnr
commented
Mar 4, 2026
Iannnr
commented
Mar 4, 2026
| mediaType = mediaType.rawValue, | ||
| title = title, | ||
| ) | ||
| val route = MediaPage( |
Collaborator
Author
There was a problem hiding this comment.
decided that we should rename these to _Route classes, maybe another day
Iannnr
commented
Mar 4, 2026
Iannnr
commented
Mar 4, 2026
Iannnr
commented
Mar 4, 2026
| sharedTransitionScope: SharedTransitionScope, | ||
| animatedVisibilityScope: AnimatedVisibilityScope, | ||
| viewModel: MediaPageViewModel, | ||
| deviceScreenCornerRadius: Int = getTopRightRadius(), |
Collaborator
Author
There was a problem hiding this comment.
don't think this needs to be passed as param anymore?
Iannnr
commented
Mar 4, 2026
Iannnr
commented
Mar 4, 2026
Iannnr
commented
Mar 4, 2026
| val selected = remember(destination, currentBackStackEntry) { | ||
| currentBackStackEntry?.let { destination.matchesDestination(it) } == true | ||
| } | ||
| val isSelected = backStack.contains(destination.route) |
Collaborator
Author
There was a problem hiding this comment.
Given these are root paths, and when we navigate to a root path we clear the stack, this is simple enough
Iannnr
commented
Mar 4, 2026
Iannnr
commented
Mar 4, 2026
boswelja
reviewed
Mar 6, 2026
There was a problem hiding this comment.
detekt found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CONTRIBUTING.md.Summary of changes:
Tested changes: