Skip to content

Conversation

@moneymanolis
Copy link
Collaborator

@moneymanolis moneymanolis commented Feb 14, 2022

Main

image

Misc

… in coin selection, fix styling/text in general settings.
@moneymanolis moneymanolis requested a review from k9ert February 14, 2022 17:05
@netlify
Copy link

netlify bot commented Feb 14, 2022

Deploy Preview for specter-desktop-docs ready!

Name Link
🔨 Latest commit 80a9d2a
🔍 Latest deploy log https://app.netlify.com/sites/specter-desktop-docs/deploys/624ff51801a18d000879220e
😎 Deploy Preview https://deploy-preview-1580--specter-desktop-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@moneymanolis
Copy link
Collaborator Author

@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.

@relativisticelectron
Copy link
Collaborator

relativisticelectron commented Feb 15, 2022

Hi, I think the freezing symbol is cute and the logic seems to work well.
I found however a way to still create multiple conflicting transactions:

  • Create tx with a utxo
  • Go to utxo overview. Unfreeze the utxo.
  • Create a tx with the utxo again

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.

@moneymanolis
Copy link
Collaborator Author

moneymanolis commented Feb 16, 2022

Good point, I think we should add a little text in the front end to distinguish between UTXOs that are locked because they are used in an unsigned tx and UTXO that are locked by manually freezing them. Server sidewise, Specter lockes both via the lockunspent RPC call. Sth. like this:
image

moneymanolis and others added 5 commits March 18, 2022 10:40
…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)
@cypherhoodlum
Copy link
Contributor

cypherhoodlum commented Mar 22, 2022

@cypherhoodlum would be great to get feedback from you on this PR regarding the scrollbar implementation for the main div, the tx table and the tx table used in the coin selection. (Of course, if you stumble upon anything else which you would improve UIUX-wise in this PR, let me know as well)

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.

Original:
Screenshot from 2022-03-23 00-15-25

Current:
Screenshot from 2022-03-23 00-15-59

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 ?

@cypherhoodlum
Copy link
Contributor

cypherhoodlum commented Mar 22, 2022

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.

@moneymanolis
Copy link
Collaborator Author

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 ?

Thanks a lot for the feedback and the PR, @cypherhoodlum.
Good points!

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

@k9ert
Copy link
Contributor

k9ert commented Mar 25, 2022

@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.
There are people who think that feature-branches should only be open for a couple of hours. This one is now open for more than 40 days.

@cypherhoodlum
Copy link
Contributor

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).

Right, that's understandable. I will make a separate PR related to #1627.

@k9ert
Copy link
Contributor

k9ert commented Mar 29, 2022

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.

Traceback (most recent call last):
  File "/usr/local/bin/black", line 8, in <module>
    sys.exit(patched_main())
  File "src/black/__init__.py", line 1423, in patched_main
  File "src/black/__init__.py", line 1409, in patch_click
ImportError: cannot import name '_unicodefun' from 'click' (/usr/local/lib/python3.10/site-packages/click/__init__.py)

Investigating now ...

@k9ert
Copy link
Contributor

k9ert commented Mar 29, 2022

Fixed in #1642
Build is now hopefully green.

@k9ert k9ert merged commit b6bd82a into cryptoadvance:master Apr 8, 2022
relativisticelectron pushed a commit to relativisticelectron/specter-desktop that referenced this pull request Apr 17, 2022
…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>
This was referenced Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

4 participants