Uh oh!
There was an error while loading. Please reload this page.
fix: calculator inputs placeholder - #967
Conversation
20a10ad to
cdc3eb1Compare
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
45852b3 to
88559ffCompare
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
jvsena42
left a comment
There was a problem hiding this comment.
Tested
- Switch between classical/modern -> BTC input updated
- Change currency -> Conversion updated
- Close the app
- Physical keyboard
piotr-iohk
commented
May 26, 2026
Testing Notes
The only thing is that https://bitkit.stag0.blocktank.to/fx/rates/btc has some pairs stale (e.g. BTCUSD) which causes mismatches in staging build. Flagged in https://synonymworkspace.slack.com/archives/C03UWHGKUNP/p1779786482683179, but perhaps we can just consider using https://blocktank.synonym.to/fx/rates/btc for all builds across the board. |
Uh oh!
There was an error while loading. Please reload this page.
This PR ports calculator widget fixes from:
Description
This PR:
0as the empty placeholder for modern bitcoin and fiat calculator inputs.0.00000000for empty classic bitcoin input and keeps the classic decimal placeholder tail for whole bitcoin values.Note Didn't add any changelog fragment because this is considered one unit of work in iOS as well and part of the calculator v61 redesign, should've been part of #942 ideally.
Preview
placeholder2x.mp4
QA Notes
Manual Tests
0.0.00000000.0placeholder.Automated Checks
app/src/test/java/to/bitkit/ui/screens/widgets/calculator/components/CalculatorCardStateTest.kt.app/src/test/java/to/bitkit/ui/screens/widgets/calculator/components/CalculatorCardStateTest.ktand rate/currency refresh handling inapp/src/test/java/to/bitkit/ui/screens/widgets/calculator/CalculatorViewModelTest.kt../gradlew testDevDebugUnitTest --tests to.bitkit.ui.screens.widgets.calculator.CalculatorViewModelTest --tests to.bitkit.ui.screens.widgets.calculator.components.CalculatorCardStateTest;./gradlew compileDevDebugKotlin testDevDebugUnitTest detekt.