Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
bdd0e11
fix(ui): add missing money symbols
pwltr Sep 3, 2026
80d009b
fix(ui): adjust scanner icon backgrounds
pwltr Sep 3, 2026
d10cb90
fix: update tab indicator default
pwltr Sep 3, 2026
c91efb0
fix: polish receive amount ui
pwltr Sep 4, 2026
687dfd6
fix: polish transaction speed settings ui
pwltr Sep 4, 2026
c04ca39
fix: polish small activity buttons
pwltr Sep 15, 2026
6a5517a
fix: polish invoice tag inputs
pwltr Sep 15, 2026
9734553
fix: polish boost sheet
pwltr Sep 15, 2026
e3f5932
fix: align amount keypad spacing
pwltr Sep 15, 2026
d213ec5
fix: polish transfer flow layout
pwltr Sep 15, 2026
e37d403
fix: align home activity spacing
pwltr Sep 15, 2026
d59f76f
fix: align button text styles
pwltr Sep 15, 2026
8d88252
fix: tighten onboarding copy spacing
pwltr Sep 15, 2026
7df8d82
fix: adjust restore mnemonic text weight
pwltr Sep 15, 2026
6b34633
fix: polish settings intro layout
pwltr Sep 15, 2026
69e7369
fix: update onboarding copy translations
pwltr Sep 15, 2026
bbd724b
fix: add wallet polish changelog
pwltr Sep 15, 2026
c438e90
fix: address wallet polish review
pwltr Sep 15, 2026
db4e762
fix: remove unrelated changelog fragment
pwltr Sep 15, 2026
1fd1538
fix: polish wallet loading animation
pwltr Sep 15, 2026
a19bb16
fix: replace material arrow icons
pwltr Sep 15, 2026
6e78672
fix: hide scanner back button from tab bar
pwltr Sep 17, 2026
2ec036f
fix: align wallet activity footer spacing
pwltr Sep 17, 2026
0e4c7b9
fix: align transfer progress footer spacing
pwltr Sep 17, 2026
88b06e0
fix: match send address field background
pwltr Sep 17, 2026
d271c62
fix: align activity tag filter sheet
pwltr Sep 17, 2026
f547fa7
fix: restore changelog fragment
pwltr Sep 18, 2026
a25c003
fix: address boost sheet review feedback
pwltr Sep 18, 2026
897ade6
fix: address polish review feedback
pwltr Sep 19, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 100 additions & 0 deletions app/src/androidTest/java/to/bitkit/ui/components/ButtonTest.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
package to.bitkit.ui.components

import androidx.compose.foundation.layout.Column
import androidx.compose.ui.Modifier
import androidx.compose.ui.platform.testTag
import androidx.compose.ui.test.assertHeightIsEqualTo
import androidx.compose.ui.test.junit4.v2.createComposeRule
import androidx.compose.ui.test.onNodeWithTag
import androidx.compose.ui.unit.dp
import org.junit.Rule
import org.junit.Test
import to.bitkit.test.annotations.ComposeUi
import to.bitkit.ui.theme.AppThemeSurface

@ComposeUi
class ButtonTest {
@get:Rule
val composeTestRule = createComposeRule()

@Test
fun buttonHeightsRemainStableAcrossStates() {
composeTestRule.setContent {
AppThemeSurface {
Column {
PrimaryButton(
text = "Primary",
onClick = {},
size = ButtonSize.Small,
fullWidth = false,
modifier = Modifier.testTag("PrimarySmallEnabled")
)
PrimaryButton(
text = "Primary",
onClick = {},
size = ButtonSize.Small,
enabled = false,
fullWidth = false,
modifier = Modifier.testTag("PrimarySmallDisabled")
)
PrimaryButton(
text = "Primary",
onClick = {},
size = ButtonSize.Small,
isLoading = true,
fullWidth = false,
modifier = Modifier.testTag("PrimarySmallLoading")
)
SecondaryButton(
text = "Secondary",
onClick = {},
size = ButtonSize.Small,
fullWidth = false,
modifier = Modifier.testTag("SecondarySmallEnabled")
)
SecondaryButton(
text = "Secondary",
onClick = {},
size = ButtonSize.Small,
enabled = false,
fullWidth = false,
modifier = Modifier.testTag("SecondarySmallDisabled")
)
SecondaryButton(
text = "Secondary",
onClick = {},
size = ButtonSize.Small,
isLoading = true,
fullWidth = false,
modifier = Modifier.testTag("SecondarySmallLoading")
)
PrimaryButton(
text = "Primary",
onClick = {},
fullWidth = false,
modifier = Modifier.testTag("PrimaryLarge")
)
SecondaryButton(
text = "Secondary",
onClick = {},
fullWidth = false,
modifier = Modifier.testTag("SecondaryLarge")
)
}
}
}

listOf(
"PrimarySmallEnabled",
"PrimarySmallDisabled",
"PrimarySmallLoading",
"SecondarySmallEnabled",
"SecondarySmallDisabled",
"SecondarySmallLoading",
).forEach {
composeTestRule.onNodeWithTag(it).assertHeightIsEqualTo(40.dp)
}
composeTestRule.onNodeWithTag("PrimaryLarge").assertHeightIsEqualTo(56.dp)
composeTestRule.onNodeWithTag("SecondaryLarge").assertHeightIsEqualTo(56.dp)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ class EditInvoiceContentTest {
EditInvoiceContent(
amountInputViewModel = previewAmountInputViewModel(sats = 12_345),
noteText = "Hardware payment",
isSoftKeyboardVisible = false,
onchainOnly = true,
keyboardVisible = false,
tags = persistentListOf("Hardware"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ class EditInvoiceScreenTest {
EditInvoiceContent(
amountInputViewModel = AmountInputViewModel(AmountInputHandler.stub()),
noteText = "Dinner",
isSoftKeyboardVisible = false,
keyboardVisible = false,
tags = persistentListOf(),
onBack = {},
Expand All @@ -51,7 +50,6 @@ class EditInvoiceScreenTest {
EditInvoiceContent(
amountInputViewModel = AmountInputViewModel(AmountInputHandler.stub()),
noteText = "",
isSoftKeyboardVisible = false,
keyboardVisible = false,
tags = persistentListOf(),
onBack = {},
Expand Down
7 changes: 7 additions & 0 deletions app/src/main/java/to/bitkit/models/FeeRate.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,48 +11,55 @@ import to.bitkit.ui.theme.Colors
enum class FeeRate(
@StringRes val title: Int,
@StringRes val description: Int,
@StringRes val duration: Int,
@StringRes val shortDescription: Int,
@DrawableRes val icon: Int,
val color: Color,
) {
INSTANT(
title = R.string.fee__instant__title,
description = R.string.fee__instant__description,
duration = R.string.fee__instant__duration,
Comment thread
pwltr marked this conversation as resolved.
shortDescription = R.string.fee__instant__shortDescription,
color = Colors.Purple,
icon = R.drawable.ic_speed_fast,
),
FAST(
title = R.string.fee__fast__title,
description = R.string.fee__fast__description,
duration = R.string.fee__fast__duration,
shortDescription = R.string.fee__fast__shortDescription,
color = Colors.Brand,
icon = R.drawable.ic_speed_fast,
),
NORMAL(
title = R.string.fee__normal__title,
description = R.string.fee__normal__description,
duration = R.string.fee__normal__duration,
shortDescription = R.string.fee__normal__shortDescription,
color = Colors.Brand,
icon = R.drawable.ic_speed_normal,
),
SLOW(
title = R.string.fee__slow__title,
description = R.string.fee__slow__description,
duration = R.string.fee__slow__duration,
shortDescription = R.string.fee__slow__shortDescription,
color = Colors.Brand,
icon = R.drawable.ic_speed_slow,
),
MINIMUM(
title = R.string.fee__minimum__title,
description = R.string.fee__minimum__description,
duration = R.string.fee__minimum__duration,
shortDescription = R.string.fee__minimum__shortDescription,
color = Colors.Brand,
icon = R.drawable.ic_speed_slow,
),
CUSTOM(
title = R.string.fee__custom__title,
description = R.string.fee__custom__description,
duration = R.string.fee__custom__duration,
shortDescription = R.string.fee__custom__shortDescription,
color = Colors.White64,
icon = R.drawable.ic_settings,
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/to/bitkit/ui/ContentView.kt
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,7 @@ fun ContentView(
onReceiveClick = {
appViewModel.showSheet(Sheet.Receive(hardwareWalletId = currentHardwareWalletId))
},
onScanClick = { appViewModel.showScannerSheet() },
onScanClick = { appViewModel.showScannerSheet(showBackButton = false) },
)
}
}
Expand Down
Loading
Loading