-
-
Notifications
You must be signed in to change notification settings - Fork 325
chore(suite): show all accounts in global send modal #23586
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| const dispatch = useDispatch(); | ||
| const protocolScheme = useSelector(state => state.protocol.sendForm.scheme); | ||
| const device = useSelector(selectSelectedDevice); | ||
| const isDiscoveryRunning = useSelector(selectHasRunningDiscovery); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just noticed the weird naming isDiscoveryRunning x selectHasRunningDiscovery, but it's used throughout the codebase, so keep it consistent 😄
3bae0e6 to
ef8b60b
Compare
|
✅ Previously successful run of [Test] PR Suite Desktop e2e tests workflow has been found. |
|
✅ Previously successful run of [Test] PR Suite Web e2e tests workflow has been found. |
| if (shouldFillFromProtocol) { | ||
| const values = getLoadedValues(); | ||
| values.outputs[0].address = protocol.sendForm.address!; | ||
| values.outputs[0].address = protocol.sendForm.address?.toLowerCase() ?? ''; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
legacy bitcoin addresses are case sensitive, so you cannot do that
For BTC addresses are case insensitive for P2TR and P2WPKH while P2SH and P2PKH addresses ARE case sensitive.
| return networkSymbol ? findAccountsByNetwork(networkSymbol, accounts) : accounts; | ||
| } | ||
|
|
||
| function getAccountsWithPositiveBalanceOrVisibleTokens( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a case with #14700 where if a user was asked to activate the network in a global send modal and after doing it he didn't have any account with balance, he would just see the empty list. I spoke to Jemel and we agreed that it would be better to show also 0 balance accounts there to prevent this case.
ef8b60b to
d525a61
Compare
Description
prioritytosecondaryforConditionalActionRendererNotes for QA
Related Issue
Resolve
Screenshots:
Notification - changed button
prioritytosecondaryGlobal send modal - change "Activate {network}" button
prioritytosecondaryFlow
fdsafdsafdsa.mov
🔍🖥️ Suite web test results: View in Currents
🔍🖥️ Suite desktop test results: View in Currents