diff --git a/app/src/main/java/to/bitkit/ui/screens/wallets/send/SendAmountScreen.kt b/app/src/main/java/to/bitkit/ui/screens/wallets/send/SendAmountScreen.kt index 45eabb6bb7..145e7c52bb 100644 --- a/app/src/main/java/to/bitkit/ui/screens/wallets/send/SendAmountScreen.kt +++ b/app/src/main/java/to/bitkit/ui/screens/wallets/send/SendAmountScreen.kt @@ -489,7 +489,8 @@ private fun PaymentMethodButton( } else { AppTextStyles.CaptionM }, - icon = if (uiState.canSwitchFundingSource) R.drawable.ic_transfer else null, + outlined = true, + trailingIcon = if (uiState.canSwitchFundingSource) R.drawable.ic_chevron_down else null, onClick = { expanded = true }, enabled = uiState.fundingOptions.isNotEmpty(), isLoading = uiState.isFundingSourceLoading, diff --git a/app/src/main/res/drawable/ic_chevron_down.xml b/app/src/main/res/drawable/ic_chevron_down.xml new file mode 100644 index 0000000000..a0e6106878 --- /dev/null +++ b/app/src/main/res/drawable/ic_chevron_down.xml @@ -0,0 +1,10 @@ + + + diff --git a/changelog.d/next/1612.changed.md b/changelog.d/next/1612.changed.md new file mode 100644 index 0000000000..9d6f647e50 --- /dev/null +++ b/changelog.d/next/1612.changed.md @@ -0,0 +1 @@ +The wallet picker on the send amount screen now shows a dropdown arrow instead of the switch icon. diff --git a/journeys/send/funding-source-dropdown.xml b/journeys/send/funding-source-dropdown.xml new file mode 100644 index 0000000000..7bf5922e74 --- /dev/null +++ b/journeys/send/funding-source-dropdown.xml @@ -0,0 +1,20 @@ + + + Verifies that the Send Amount wallet picker opens as a dropdown: an outlined button with the + selected wallet name followed by a downward chevron. Preconditions: an onboarded regtest wallet + with confirmed Savings funds and a usable Spending channel, a fresh zero-amount unified BIP21 URI + (on-chain address plus Lightning invoice) from another wallet, and a fresh on-chain address + from another wallet. Close each send without paying. + + + Open the zero-amount unified BIP21 URI with a bitcoin: deep link + Verify Send Amount shows the funding source button (testTag "AssetButton-switch") as an outlined button with the selected wallet name and a downward chevron after it, and no switch arrows before the name + Tap the funding source button and verify the dropdown (testTag "SendFundingSources") lists Savings and Spending with their balances and a check next to the selected wallet + Select the wallet that is not checked and verify the button shows its name in its color, orange for Savings and purple for Spending, still outlined with the downward chevron + Tap the funding source button again and verify the check moved to the newly selected wallet; dismiss the dropdown + Close the send sheet without paying + Open the on-chain address with a bitcoin: deep link and verify the funding source button shows Savings outlined in orange with no chevron or other icon + Tap the funding source button and verify the dropdown (testTag "SendFundingSources") opens with Savings checked and Spending dimmed with its balance; tap Spending and verify the selection does not change + Close the send sheet without paying + +