-
Notifications
You must be signed in to change notification settings - Fork 250
UIUX: Overhaul of UTXO list, handling of locked UTXOs and scrollbar added to tx-table web component #1580
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
UIUX: Overhaul of UTXO list, handling of locked UTXOs and scrollbar added to tx-table web component #1580
Conversation
… in coin selection, fix styling/text in general settings.
✅ Deploy Preview for specter-desktop-docs ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
|
@relativisticelectron if you want, you could test the PR to check whether you are happy with the overall UX. Would be great. I am happy to adapt it. |
|
Hi, I think the freezing symbol is cute and the logic seems to work well.
I am actually not sure if this should be prevented (As I said in another issue, I actually want to create conflicting tx with differents fees). I just wanted to point it out, and let you decide if you want to close this loophole or not. |
…apted spec_wallet_utxo.js to new utxo list logic and added tests of new functionality to it.
The problem with true is, that you are no longer able to spot when you need to apply the workaround described in https://docs.cypress.io/api/commands/shadow#Known-Issue as you only need to apply in a shadow-DOM. Feel free to switch it back in any test you see fit. Cypress.config('includeShadowDom',true)
…er-desktop into unsigned_transactions
I think the scrollbars look and feel great. No issues there. However, I think the new way of showing the balances is slightly harder to read than the original version. I think it's good to unify the overall visual look by putting elements in boxes with rounded borders (new version) but the readability should not suffer. Maybe the first row could have a bigger font size than the others? Another thing worth trying out is to align the numbers/balances vertically. Maybe the whole box could be a bit bigger since it's probably the most important element on the whole page. It's at least the second most important element if the transaction history is the most important one. So I think the whole box and the total amount could be accentuated some more. What do you think @moneymanolis ? |
|
Maybe something like this? It's a mixture of the original style and the current one. edit: I made a PR into your branch @moneymanolis. |
…, note: cypress tests green in local dev.
Thanks a lot for the feedback and the PR, @cypherhoodlum. Since I would like to wrap this PR up soon (it is already too big actually), though, I would keep the style for now and move the discussion and work on the balance box to this already opened issue: #1627 |
|
@cypherhoodlum awesome feedback and thanks for your PR. It's yet a big improvement. But i also agree with @moneymanolis , let's not make that PR any bigger. We struggled now a lot with the UI-tests in this PR. The last 12 commits are only regarding improving testing. It's high likely your PR would break them (again). And even if not, this PR is a moving goal-post since almost the beginning. |
…cirrus in spec_wallet_utxo.js.
…er-desktop into unsigned_transactions
Right, that's understandable. I will make a separate PR related to #1627. |
|
This is really an unlucky PR. After scratching our heads why the builds are not kicking in at all (probably an issue with the Google-cloud), now the linter is broken. Investigating now ... |
|
Fixed in #1642 |
…dded to tx-table web component (cryptoadvance#1580) * Added tests/bitcoin to gitignore * Ensure locked UTXO can't be used for transactions, fix rounding error in coin selection, fix styling/text in general settings. * overhaul of checkbox logic in utxolist including mouseover event for checkboxes, manage psbt button action added, icon info popups added,design changes in utxo- and txlist to make the display quieter * change of balance display, scrollbars for main and tx table, bugfixes (pagination, coin selection, unsigned labeling) & some styling finetuning * deleted locked utxo balance calculations, added doc strings regarding balances * jinja comment added in tx table, making scrollbar less vivid, tx table settings changed to no compact view toggle and scrollbar on by default * more granular amount properties, little test fix. * applying new amount properties to the frontend and other parts of the code & improving balance display design * refactored a_simple_wallet to be only used in test_rest once * tests for amounts and test performance optimisations. * fix spec_node_configured * fix spec_wallet_send.js * fix spec_wallet_utxo.js * keep action teaser div hidden on wallets overview. * minor bug fix in tx-table, added includeShadowDom to cypress.json, adapted spec_wallet_utxo.js to new utxo list logic and added tests of new functionality to it. * fix spec_plugins.js and switch back to includeShadowDom false The problem with true is, that you are no longer able to spot when you need to apply the workaround described in https://docs.cypress.io/api/commands/shadow#Known-Issue as you only need to apply in a shadow-DOM. Feel free to switch it back in any test you see fit. Cypress.config('includeShadowDom',true) * better organisation of wallet utxo spec file * some wait-tweaks to cypress tests to make them run smoother on cirrus, note: cypress tests green in local dev. * longer wait in spec_elm_multi_segwit_wallet.js * fixing spec_elm_multi_segwit_wallet.js * more checks whether checkboxes get selected and additional waits for cirrus in spec_wallet_utxo.js. Co-authored-by: Kim Neunert <k9ert@gmx.de>




Main
Ensure that locked UTXO / UTXO used in unsigned transactions can't be used for transactions (fixes UX: Inconsistent behavior for "Create unsigned transaction" #1562)
Overhaul of checkbox logic in UTXO list
1. If a locked or "locked-unsigned" UTXO is chosen, only UTXO of the respective type can be selected anymore.
2. Mouseover event for checkboxes added (flashing "Select checkboxes for actions.")
3. Manage PSBT button action added
4. Icon info popups added
See the following video:
https://user-images.githubusercontent.com/70536101/154949485-b7f45060-15f9-46a3-8b53-18268583720c.mov
Locked UTXO or UTXO in unsigned transactions can't be chosen in the coin selection menu anymore, the checkbox is replaced by the snowflake image and the info text "Unsigned" is added to distinguish between locked and "unsigned-locked" UTXO:
Misc