Repository navigation
Progress cards - #300
Progress cards#300
Conversation
# Conflicts: # app/src/main/java/to/bitkit/models/Suggestion.kt # app/src/main/java/to/bitkit/ui/screens/wallets/HomeViewModel.kt
There was a problem hiding this comment.
detekt found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
|
|
||
| val (shadowColor, borderColor, gradientSelectedColor) = when (gradientColor) { | ||
| Colors.Purple24 -> Triple( | ||
| Color(130, 65, 175), |
Check warning
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers.
|
|
||
| val (shadowColor, borderColor, gradientSelectedColor) = when (gradientColor) { | ||
| Colors.Purple24 -> Triple( | ||
| Color(130, 65, 175), |
Check warning
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers.
|
|
||
| val (shadowColor, borderColor, gradientSelectedColor) = when (gradientColor) { | ||
| Colors.Purple24 -> Triple( | ||
| Color(130, 65, 175), |
Check warning
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers.
| val (shadowColor, borderColor, gradientSelectedColor) = when (gradientColor) { | ||
| Colors.Purple24 -> Triple( | ||
| Color(130, 65, 175), | ||
| Color(185, 92, 232), |
Check warning
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers.
| ) | ||
|
|
||
| Colors.Red24 -> Triple( | ||
| Color(200, 48, 0), |
Check warning
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers.
|
|
||
| Colors.Red24 -> Triple( | ||
| Color(200, 48, 0), | ||
| Color(255, 68, 0), |
Check warning
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers.
|
|
||
| Colors.Red24 -> Triple( | ||
| Color(200, 48, 0), | ||
| Color(255, 68, 0), |
Check warning
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers.
| Colors.Red24 -> Triple( | ||
| Color(200, 48, 0), | ||
| Color(255, 68, 0), | ||
| Color(100, 24, 0) |
Check warning
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers.
| Colors.Red24 -> Triple( | ||
| Color(200, 48, 0), | ||
| Color(255, 68, 0), | ||
| Color(100, 24, 0) |
Check warning
Code scanning / detekt
Report magic numbers. Magic number is a numeric literal that is not defined as a constant and hence it's unclear what the purpose of this number is. It's better to declare such numbers as constants and give them a proper name. By default, -1, 0, 1, and 2 are not considered to be magic numbers.
There was a problem hiding this comment.
LGMT 🎉
Tested
- new transfer to spending + mining & watching the card update on the Home screen.
Added comments for some cleanup suggestions but nothing blocking.
Mainly the comment about the e2e test id Suggestion-lightningSettingUp should be addresses ASAP in a new PR.
FIGMA
Related to #149 , #243
Description
This PR implements the progress cards in the suggestion flow
Preview
tranfer_rn.mp4
transfer_android.webm
QA Notes
How to reproduce: