Skip to content

Commit c20302d

Browse files
committed
Merge branch 'master' into feat/truncate-middle-address
# Conflicts: # CHANGELOG.md
2 parents 4cb3399 + d460517 commit c20302d

31 files changed

Lines changed: 477 additions & 299 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88
## [Unreleased]
99

1010
### Fixed
11+
- Retouch Primary, Secondary, and Tertiary buttons styling #887
1112
- Avoid msat truncation when paying invoices and LNURL callbacks #879
1213
- Fix ANR on RGS server settings screen caused by catastrophic regex backtracking #880
1314
- Fix crash when returning app to foreground on Receive screen #875
@@ -24,6 +25,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
2425

2526
### Changed
2627
- Show end of address on Receive Bitcoin screen using middle ellipsis truncation #886
28+
- Update funding screen: replace Advanced with Manual Setup, fix Use Other Wallet navigation to open amount entry, and add Fund Wallet button to no-funds dialog #885
29+
- Updated design of the success screen in the manual channel setup flow #883
2730
- Unified send flow with payment method switcher, details toggle, Lightning support for BIP21 payments, and improved fee rate defaults #863
2831
- Settings redesigned with tabbed navigation (General/Security/Advanced) with swipe support #857
2932
- Icons added to all settings rows for faster scanning #857

app/src/main/java/to/bitkit/ui/ContentView.kt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ import to.bitkit.ui.screens.wallets.activity.ActivityExploreScreen
100100
import to.bitkit.ui.screens.wallets.activity.AllActivityScreen
101101
import to.bitkit.ui.screens.wallets.activity.DateRangeSelectorSheet
102102
import to.bitkit.ui.screens.wallets.activity.TagSelectorSheet
103+
import to.bitkit.ui.screens.wallets.receive.ReceiveRoute
103104
import to.bitkit.ui.screens.wallets.receive.ReceiveSheet
104105
import to.bitkit.ui.screens.wallets.suggestion.BuyIntroScreen
105106
import to.bitkit.ui.screens.widgets.AddWidgetsScreen
@@ -381,6 +382,7 @@ fun ContentView(
381382
is Sheet.Receive -> {
382383
val walletState by walletViewModel.walletState.collectAsStateWithLifecycle()
383384
ReceiveSheet(
385+
startRoute = sheet.route,
384386
walletState = walletState,
385387
navigateToExternalConnection = {
386388
navController.navigateTo(ExternalConnection())
@@ -475,7 +477,7 @@ fun ContentView(
475477
if (showTabBar) {
476478
TabBar(
477479
onSendClick = { appViewModel.showSheet(Sheet.Send()) },
478-
onReceiveClick = { appViewModel.showSheet(Sheet.Receive) },
480+
onReceiveClick = { appViewModel.showSheet(Sheet.Receive()) },
479481
onScanClick = { appViewModel.showScannerSheet() },
480482
)
481483
}
@@ -664,13 +666,12 @@ private fun RootNavHost(
664666
},
665667
onFund = {
666668
scope.launch {
667-
// TODO show receive sheet -> ReceiveAmount
668669
navController.navigateToHome()
669670
delay(500) // Wait for nav to actually finish
670-
appViewModel.showSheet(Sheet.Receive)
671+
appViewModel.showSheet(Sheet.Receive(route = ReceiveRoute.Amount))
671672
}
672673
},
673-
onAdvanced = { navController.navigateTo(Routes.FundingAdvanced) },
674+
onManual = { navController.navigateTo(Routes.ExternalNav) },
674675
onBackClick = { navController.popBackStack() },
675676
isGeoBlocked = isGeoBlocked,
676677
)
@@ -792,7 +793,7 @@ private fun NavGraphBuilder.home(
792793
onchainActivities = onchainActivities ?: persistentListOf(),
793794
onAllActivityButtonClick = { navController.navigateToAllActivity(activityListViewModel::clearFilters) },
794795
onActivityItemClick = { navController.navigateToActivityItem(it) },
795-
onEmptyActivityRowClick = { appViewModel.showSheet(Sheet.Receive) },
796+
onEmptyActivityRowClick = { appViewModel.showSheet(Sheet.Receive()) },
796797
onTransferToSpendingClick = {
797798
if (!hasSeenSpendingIntro) {
798799
navController.navigateToTransferSpendingIntro()
@@ -814,7 +815,7 @@ private fun NavGraphBuilder.home(
814815
lightningActivities = lightningActivities ?: persistentListOf(),
815816
onAllActivityButtonClick = { navController.navigateToAllActivity(activityListViewModel::clearFilters) },
816817
onActivityItemClick = { navController.navigateToActivityItem(it) },
817-
onEmptyActivityRowClick = { appViewModel.showSheet(Sheet.Receive) },
818+
onEmptyActivityRowClick = { appViewModel.showSheet(Sheet.Receive()) },
818819
onTransferToSavingsClick = {
819820
if (!hasSeenSavingsIntro) {
820821
navController.navigateToTransferSavingsIntro()

app/src/main/java/to/bitkit/ui/Locals.kt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,3 @@ val settingsViewModel: SettingsViewModel?
5353

5454
val backupsViewModel: BackupsViewModel?
5555
@Composable get() = LocalBackupsViewModel.current
56-
57-
val drawerState: DrawerState?
58-
@Composable get() = LocalDrawerState.current

0 commit comments

Comments
 (0)