Skip to content
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

Tweak "Send" popup and refactor related code a bit #3218

Merged
merged 1 commit into from
Nov 27, 2019

Conversation

UdjinM6
Copy link

@UdjinM6 UdjinM6 commented Nov 25, 2019

Few key points:

  • highlight when not all recipients are displayed, move this info closer to the actual list (I tweaked MAX_SEND_POPUP_ENTRIES = 1 temporary to take screenshots and make it easier to show the issue, not included in this PR ofc)
  • clarify fee rounding text for PrivateSend, wasn't accurate
  • show transactions size and actual fee rate explicitly
  • show number of inputs PrivateSend tx is going to consume and warn if this number is 10 or higher

Also refactored some related code by moving few pieces closer to the places they are actually used and/or simplifying them.

Before:
Screenshot 2019-11-25 at 15 09 55
Screenshot 2019-11-25 at 15 10 30
Screenshot 2019-11-25 at 15 11 08

After:
Screenshot 2019-11-25 at 15 12 04
Screenshot 2019-11-25 at 15 12 34
Screenshot 2019-11-25 at 15 13 18

@UdjinM6 UdjinM6 added this to the 15 milestone Nov 25, 2019
Copy link

@codablock codablock left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

utACK

// Limit number of displayed entries
int messageEntries = formatted.size();
int displayedEntries = 0;
for(int i = 0; i < formatted.size(); i++){

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a very strange way of limiting a list :P
Alternative:

int messageEntries = (int)formatted.size();
while (formatted.size() > MAX_SEND_POPUP_ENTRIES) {
    formatted.removeLast();
}
int displayedEntries = (int)formatted.size();

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahh now I see that this is just moved code. I'm fine with keeping the old code as this is not introduced in this PR.

@UdjinM6 UdjinM6 merged commit 9dad603 into dashpay:develop Nov 27, 2019
barrystyle pushed a commit to PACGlobalOfficial/PAC that referenced this pull request Jan 22, 2020
Few key points:

- highlight when not all recipients are displayed, move this info closer to the actual list
- clarify fee rounding text for PrivateSend, wasn't accurate
- show transactions size and actual fee rate explicitly
- show number of inputs PrivateSend tx is going to consume and warn if this number is 10 or higher
FornaxA pushed a commit to ioncoincore/ion that referenced this pull request Jul 6, 2020
Few key points:

- highlight when not all recipients are displayed, move this info closer to the actual list
- clarify fee rounding text for PrivateSend, wasn't accurate
- show transactions size and actual fee rate explicitly
- show number of inputs PrivateSend tx is going to consume and warn if this number is 10 or higher

Signed-off-by: cevap <[email protected]>
@UdjinM6 UdjinM6 deleted the tweaksend branch November 26, 2020 11:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants