-
Notifications
You must be signed in to change notification settings - Fork 351
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
Make bottomsheets into destinations #6476
Conversation
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.
Reviewable status: 0 of 19 files reviewed, 1 unresolved discussion
android/app/build.gradle.kts
line 386 at r1 (raw file):
configurations.all { resolutionStrategy { force("androidx.navigation:navigation-compose:2.8.0-beta05")
Should be removed before any merge
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.
Removing and adding locations to the list does not seems to trigger a toast with an undo. As far as I can tell the required code for that is missing?
Otherwise nice work 👍
Reviewed 13 of 19 files at r1, all commit messages.
Reviewable status: 13 of 19 files reviewed, 9 unresolved discussions (waiting on @Rawa)
android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/MullvadModalBottomSheet.kt
line 43 at r1 (raw file):
@OptIn(ExperimentalMaterial3Api::class) @Composable fun MullvadModalBottomSheet(sheetContent: @Composable ColumnScope.() -> Unit) {
Since this is not a bottom sheet anymore, this should called MullbadBottomSheetContent
or something
android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/CustomListEntrySheetViewModel.kt
line 19 at r1 (raw file):
import net.mullvad.mullvadvpn.viewmodel.CustomListEntrySheetSideEffect.GenericError data class CustomListEntrySheetUiState(
Not sure if it is universal but ui states are usually in it's own file?
android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/CustomListEntrySheetViewModel.kt
line 23 at r1 (raw file):
) sealed interface CustomListEntrySheetSideEffect {
Side effects are usually at the bottom?
android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/CustomListSheetViewModel.kt
line 13 at r1 (raw file):
import net.mullvad.mullvadvpn.lib.model.CustomListName data class CustomListSheetUiState(
See above
android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/CustomListSheetViewModel.kt
line 18 at r1 (raw file):
) sealed interface CustomListSheetSideEffect {
See above
android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/ImportOverridesViewModel.kt
line 10 at r1 (raw file):
import net.mullvad.mullvadvpn.repository.RelayOverridesRepository data class ImportOverridesSheetUiState(val overridesActive: Boolean)
See above
android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/LocationSheetViewModel.kt
line 24 at r1 (raw file):
import net.mullvad.mullvadvpn.usecase.customlists.CustomListsRelayItemUseCase sealed interface LocationUiState {
See above
android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/LocationSheetViewModel.kt
line 37 at r1 (raw file):
data class CustomListEntry(val customList: RelayItem.CustomList, val canAdd: Boolean) sealed interface LocationSideEffect {
See above
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.
Ah, this was a small mistake on my end, I've fixed it now :)
Reviewable status: 8 of 23 files reviewed, 9 unresolved discussions (waiting on @Pururun)
android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/CustomListEntrySheetViewModel.kt
line 19 at r1 (raw file):
Previously, Pururun (Jonatan Rhodin) wrote…
Not sure if it is universal but ui states are usually in it's own file?
Yeah it should. Done.
android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/CustomListEntrySheetViewModel.kt
line 23 at r1 (raw file):
Previously, Pururun (Jonatan Rhodin) wrote…
Side effects are usually at the bottom?
Done.
android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/CustomListSheetViewModel.kt
line 13 at r1 (raw file):
Previously, Pururun (Jonatan Rhodin) wrote…
See above
Done.
android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/CustomListSheetViewModel.kt
line 18 at r1 (raw file):
Previously, Pururun (Jonatan Rhodin) wrote…
See above
Done.
android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/LocationSheetViewModel.kt
line 24 at r1 (raw file):
Previously, Pururun (Jonatan Rhodin) wrote…
See above
Done.
android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/LocationSheetViewModel.kt
line 37 at r1 (raw file):
Previously, Pururun (Jonatan Rhodin) wrote…
See above
Done.
android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/component/MullvadModalBottomSheet.kt
line 43 at r1 (raw file):
Previously, Pururun (Jonatan Rhodin) wrote…
Since this is not a bottom sheet anymore, this should called
MullbadBottomSheetContent
or something
Done.
android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/ImportOverridesViewModel.kt
line 10 at r1 (raw file):
Previously, Pururun (Jonatan Rhodin) wrote…
See above
Done.
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.
Reviewed 16 of 16 files at r2, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion
0f6a02c
to
580297d
Compare
580297d
to
ba9149d
Compare
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.
Reviewed 7 of 7 files at r3, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion
d545804
to
261b639
Compare
54f717f
to
948c6af
Compare
Closing this since there is no support or replacement for |
This change is