-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fix #3241 UX/UI - Introduce PrivateSend tab which allows to spend fully mixed coins only #3442
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
Fix #3241 UX/UI - Introduce PrivateSend tab which allows to spend fully mixed coins only #3442
Conversation
|
Looks good code-wise but I don't like the new layout tbh. |
|
@UdjinM6 agree with you. Another suggestion that i thought is use the old layout, remove the PrivateSend checkbox and add the option in confirmation dialog Yes (PrivateSend). It will be cleaner and the user will always see the option before send |
|
Simply removing PS checkbox won't work because:
IMO the GUI is already pretty clear + there is another label about funds you are going to use (mixed/no-mixed) in confirmation box. The only possible tweak I can think about is that we could add another button "PrivateSend" right next to "Send" which would internally call the same |
|
@UdjinM6 PrivateSend changes the available balance and inputs, so it should be the first step the user should choose. I thought 2 possibilities:
Personally i prefer the first option, it will be clear and simple and give us more possibilities if we want to add more PrivateSend features in the future |
|
Hmm.... yeah, I would probably go with (1) assuming it's going to reuse the same code/ui. |
|
@UdjinM6 implemented the number 1 solution, reusing the same UI |
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 have one question/change request and still kind of on the fence if new UI looks better or not but otherwise code changes look good IMO 👍
PS. and it works as expected as far as I can tell.
UdjinM6
left a comment
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.
ACK
|
Could we get some screen-shots of the new format etc? |
PastaPastaPasta
left a comment
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.
some formatting nits
|
@PastaPastaPasta code formating updated New PrivateSend tab, shows only the mixed balance and mixed outputs in coin control This way will be clear for the user that is using PrivateSend in his first action selecting the type of sending. Also before this change, the user could select PrivateSend checkbox and select a not mixed output in coin control, that could cause confusion too. PS.: Didn't finished the mixing on my test wallet, it's a good test to do. I will finish the mixing process and see |
We have a warning for this case https://github.com/dashpay/dash/blob/develop/src/qt/coincontroldialog.cpp#L430-L436 (which I think can be dropped now btw since this should be no longer possible) but it's much better to hide non-mixed inputs completely, I like that. |
|
Hmm... Interesting. So switching from Send to PrivateSend tab with non-mixed inputs selected via CoinControl on the former results in some new confusing situation when it says N inputs selected but you can't see them cause they are not in the list. 🤔 PS would still fail as it should saying "not enough mixed funds" so it's not that bad but maybe we could also clear non-mixed inputs from selection when CoinControl is opened via PS tab? |
|
@UdjinM6 great! I will check to clear the selections when changing the tab and remove the unnecessary warning |
|
@UdjinM6 reviewed the points about clear selected outputs and warning message |
|
Hmm... |
|
@UdjinM6 thanks for the contribution, tested and agreed with the better UX. Added the suggested commits |
|
test failure looks unrelated, can you force-push and hopefully CI will be happy |
e512189 to
37b7445
Compare
|
@PastaPastaPasta passed CI check now |
|
Found another issue - when running with |
|
@UdjinM6 good catch! also tested with -litemode and it's ok. Added the suggestion |
UdjinM6
left a comment
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.
ACK
|
Will review in the next few days |
|
Also, "Use available balance" button doesn't work properly |
Co-Authored-By: UdjinM6 <UdjinM6@users.noreply.github.com>
Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>
791908e to
b373b33
Compare
|
@PastaPastaPasta rebase done 👍 |
|
Man you must be really unlucky, cause there are still test failures that seem unrelated |
PastaPastaPasta
left a comment
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.
UdjinM6
left a comment
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.
👍
Slightly tested ACK
|
test passed this time 👍 |
|
Lucky now 😆 |
…end fully mixed coins only (dashpay#3442) * dashpay#3241 change PrivateSend and balance location * include resource location back * change back balance and privatesend checkbox position * add new PrivateSend tab on main window and PrivateSend tray option * adjust code formating * revert QT TODO * Update src/qt/forms/sendcoinsdialog.ui code formating Co-Authored-By: UdjinM6 <UdjinM6@users.noreply.github.com> * code formating update * clear send dialog and remove unnecessary warning * change clear location for better UX and performance * remove variable used in warning * Do not clear everything, simply unselect non-fully-mixes coins instead Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com> * Warn about unselected coins Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com> * Disable PrivateSend tab/menu item when PrivateSend is disabled Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com> * fix tab selection bold font * fix use available balance for PS * change back line Co-authored-by: UdjinM6 <UdjinM6@users.noreply.github.com>



Apply the changes suggested on #3241