Skip to content

qt: Finetune OverviewPage - #3715

Merged
UdjinM6 merged 19 commits into
dashpay:developfrom
xdustinface:pr-ui-29-overview
Sep 25, 2020
Merged

UdjinM6 merged 19 commits into
dashpay:developfrom
xdustinface:pr-ui-29-overview

Conversation

@xdustinface

Copy link
Copy Markdown

This PR brings the following changes to the OverviewPage:

  • Make sure that the "Balances", "Recent Transactions" and "PrivateSend" frames are aligned properly around the window center it gets resized.
  • Give the transaction the same coloring/highlighting like in the transaction tab
  • Adjust the warning box
  • Make sure PrivateSend related widgets show/hide as expected based on its settings/state
  • Finetune the overall css layouts and remove obsolete entries

@UdjinM6 68b3e36 and 876fffd are inspired by 55c0f40, thanks for that 👍 let me know if you would like to see more of it in here.

Requires #3710 to make sense / look good.

Preview

Before With this PR
Bildschirmfoto 2020-09-16 um 03 06 53 Bildschirmfoto 2020-09-16 um 02 56 50
Bildschirmfoto 2020-09-16 um 03 06 48 Bildschirmfoto 2020-09-16 um 02 56 54

xdustinface and others added 8 commits September 16, 2020 04:23
Make sure they follow the same format as the transactions in
TransactionsView.

- Removed the transaction type representing arrows
- Apply the same coloring like like in the transaction tab for
the different transaction types (orange = internal, red = outgoing,
green = incoming)
This allows to have the elements on the screen aligned symetrically
around the center independent from the window size/resizing.
@xdustinface xdustinface added this to the 16 milestone Sep 16, 2020
@UdjinM6

UdjinM6 commented Sep 16, 2020

Copy link
Copy Markdown

Pls see https://github.com/UdjinM6/dash/commits/pr3715

@UdjinM6 UdjinM6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ACK

@PastaPastaPasta

Copy link
Copy Markdown
Member

Will review after we finalize 3710

@PastaPastaPasta
PastaPastaPasta self-requested a review September 18, 2020 03:21

@UdjinM6 UdjinM6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Found an issue, pls see d4505c64cf

UdjinM6 and others added 3 commits September 23, 2020 02:26
…sactionList is called

We call SetupTransactionList every second now (from privateSendStatus()) and this makes GUI unresponsive for huge wallets (I have ~400k txes in my testnet wallet) because of filter recreation/sorting. There is no need to go through all setup steps really, simply updating the limit works just fine and fixes the issue.
@xdustinface

Copy link
Copy Markdown
Author

Thats really a huge wallet :D Thoughts/Concerns about adding 1c54279 (OptionsDialog isn't used in that method but TransactionTableModel is) and d44a290 (Fail early, tiny reorder, avoid the else statement and avoid have the setLimit call twice) to this PR?

@UdjinM6

UdjinM6 commented Sep 23, 2020

Copy link
Copy Markdown

d44a290 doesn't work for me, see 4ec87a62b2. Also, a tiny code style issue, see 96cb304116.

@xdustinface

Copy link
Copy Markdown
Author

@UdjinM6 Just asking because i couldn't figure an issue here on my side, whats the issue you get without 4ec87a62b2ea590e08f383648f4267cca4fdae7f? Actually i would assume there should be no need to set the same model/modelColum again and again?

@UdjinM6

UdjinM6 commented Sep 23, 2020

Copy link
Copy Markdown

whats the issue you get without 4ec87a6

The number of items in tx list isn't updated when you start/stop mixing.

here should be no need to set the same model/modelColum again and again

Well, changing the limit requires that it seems. But we can optimize this indeed, see 6593b43ae3

@xdustinface

xdustinface commented Sep 24, 2020 •

Copy link
Copy Markdown
Author

see 6593b43

Makes sense, picked 👍

However, there is still an issue.. but i spent way too much time on that today so i decided to go with 5acf6e861b1b9547c3ff5f4ffb3fc94fb466fc5a instead for now :D actually i would really love to get the WHY it does behave like this so if someone else has an idea, please tell me 😄

My understanding of the issue:

After sync and whatnot are done filter->setLimit(nNumItems); updates only start to work as soon as the transaction table model fires its first data/header/whatever changed signal. This may happen by multiple sources like: Just opening the OptionsDialog, without doing anything in there press OK (you can do something but its not required since the only thing which counts is that display unit signal from the optionsmodel gets fired) or also an incoming block forces a appropriate signal to fire. Now, as soon as the TTM got its first update removing/adding rows with filter->setLimit(nNumItems); just always works well without b63cd0e... but it always, after a restart, requires one update to the TTM after the initial startup/initialization. Like i said, i have no clue right now what exactly the root cause for this is but its easy to reproduce at least so it should be no problem to figure it out with some more time... i just don't want to waste more time with something like this before the release.. so, if someone has a better one than b63cd0e share it, else if there are no other issues, approve the PR! :D

@PastaPastaPasta

Copy link
Copy Markdown
Member

I'm really not a fan of the empty space to the left of the balances. Everything else seems to be fine so far..

@PastaPastaPasta

Copy link
Copy Markdown
Member

Also:

All things under privatesend should be tabbed to indicate they are a part of that section

@UdjinM6

UdjinM6 commented Sep 24, 2020

Copy link
Copy Markdown

I think I figured it out, pls see 30d17bbc54 and d1215c4f23

@xdustinface

Copy link
Copy Markdown
Author

I think I figured it out, pls see 30d17bb and d1215c4

Yes! That works, nice! 👍

@xdustinface

Copy link
Copy Markdown
Author

I'm really not a fan of the empty space to the left of the balances. Everything else seems to be fine so far..

It looks better if there are addresses inside instead of labels :D but i agree there is room for improvement 👍

Also:

All things under privatesend should be tabbed to indicate they are a part of that section

Hm IMO thats very clear visible due to the different titles on that screen. I mean, there isn't really anything else around those widgets what you could confuse with the section 🤔

@PastaPastaPasta

Copy link
Copy Markdown
Member

I'm really not a fan of the empty space to the left of the balances. Everything else seems to be fine so far..

It looks better if there are addresses inside instead of labels :D but i agree there is room for improvement +1

What do you mean? I'm not talking about the recent transactions on the right, but the balances on the left. Old behavior of no added whitespace to the left of the balances is good, and should be preserved

@PastaPastaPasta

Copy link
Copy Markdown
Member

Also, please rebase this PR on develop

@PastaPastaPasta PastaPastaPasta left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

ACK dependent on @iamsuba agreeing to these changes

@iamsuba

iamsuba commented Sep 25, 2020 •

Copy link
Copy Markdown

Honestly the whole layout is not designed to be responsive. So centrally aligning them makes more sense than letting expand around the corners. I agree to the changes proposed. @xdustinface @PastaPastaPasta

@UdjinM6 UdjinM6 left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ACK

@UdjinM6
UdjinM6 merged commit b22aa18 into dashpay:develop Sep 25, 2020
xdustinface added a commit to PastaPastaPasta/dash that referenced this pull request Sep 25, 2020
* qt: Adjust "Recent Transactions" in Overview tab

Make sure they follow the same format as the transactions in
TransactionsView.

- Removed the transaction type representing arrows
- Apply the same coloring like like in the transaction tab for
the different transaction types (orange = internal, red = outgoing,
green = incoming)

* qt: Cleanup layout of OverviewPage in css

* qt: Add three spacer (left, middle, right) and adjust layout stretch.

This allows to have the elements on the screen aligned symetrically
around the center independent from the window size/resizing.

* qt: Inrease date/amount size for "Recent Transactions" in Overview tab

* qt: Inrease number of "Recent Transactions" displayed in Overview tab

Just to fill the empty space

* qt: Make sure PS elements show as expected and adjust number of recent transactions based on PS

* qt: Adjust transaction entry generation

Co-Authored-By: UdjinM6 <[email protected]>

* qt: Adjust warning message box

Co-Authored-By: UdjinM6 <[email protected]>

* Move tx list style to css

* Fix tx list style for the traditional theme

* Drop (no longer needed?) min height offset in SetupTransactionList

Can't reproduce the tx list scrolling issue anymore

* Avoid recreating transaction filter from scratch every time SetupTransactionList is called

We call SetupTransactionList every second now (from privateSendStatus()) and this makes GUI unresponsive for huge wallets (I have ~400k txes in my testnet wallet) because of filter recreation/sorting. There is no need to go through all setup steps really, simply updating the limit works just fine and fixes the issue.

* qt: Fix an `if` statement

* qt: Just some refactoring

* fix code style

* bail out if `filter->rowCount() == nNumItems`

* qt: Make sure number of transactions is always correct

* Drop spacer to let recent tx list occupy max height available

* TransactionFilterProxy::setLimit should emit signals to let coresponding layouts update themselves

https://doc.qt.io/qt-5/qabstractitemmodel.html#layoutAboutToBeChanged
https://doc.qt.io/qt-5/qabstractitemmodel.html#layoutChanged

Co-authored-by: UdjinM6 <[email protected]>
gades pushed a commit to cosanta/cosanta-core that referenced this pull request Mar 8, 2022
* qt: Adjust "Recent Transactions" in Overview tab

Make sure they follow the same format as the transactions in
TransactionsView.

- Removed the transaction type representing arrows
- Apply the same coloring like like in the transaction tab for
the different transaction types (orange = internal, red = outgoing,
green = incoming)

* qt: Cleanup layout of OverviewPage in css

* qt: Add three spacer (left, middle, right) and adjust layout stretch.

This allows to have the elements on the screen aligned symetrically
around the center independent from the window size/resizing.

* qt: Inrease date/amount size for "Recent Transactions" in Overview tab

* qt: Inrease number of "Recent Transactions" displayed in Overview tab

Just to fill the empty space

* qt: Make sure PS elements show as expected and adjust number of recent transactions based on PS

* qt: Adjust transaction entry generation

Co-Authored-By: UdjinM6 <[email protected]>

* qt: Adjust warning message box

Co-Authored-By: UdjinM6 <[email protected]>

* Move tx list style to css

* Fix tx list style for the traditional theme

* Drop (no longer needed?) min height offset in SetupTransactionList

Can't reproduce the tx list scrolling issue anymore

* Avoid recreating transaction filter from scratch every time SetupTransactionList is called

We call SetupTransactionList every second now (from privateSendStatus()) and this makes GUI unresponsive for huge wallets (I have ~400k txes in my testnet wallet) because of filter recreation/sorting. There is no need to go through all setup steps really, simply updating the limit works just fine and fixes the issue.

* qt: Fix an `if` statement

* qt: Just some refactoring

* fix code style

* bail out if `filter->rowCount() == nNumItems`

* qt: Make sure number of transactions is always correct

* Drop spacer to let recent tx list occupy max height available

* TransactionFilterProxy::setLimit should emit signals to let coresponding layouts update themselves

https://doc.qt.io/qt-5/qabstractitemmodel.html#layoutAboutToBeChanged
https://doc.qt.io/qt-5/qabstractitemmodel.html#layoutChanged

Co-authored-by: UdjinM6 <[email protected]>
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.

4 participants