-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Secondary sort order for offer book (rewrite) #4259
Secondary sort order for offer book (rewrite) #4259
Conversation
A rewrite of @freimair's PR bisq-network#4168. Adds a secondary sort order of offers in market offer book by offer amount that goes from high to low. Also, refactors-away overcomplicated previous implementation of primary sort. Co-authored-by: Florian Reimair <office@florianreimair.at> Co-authored-by: cd2357 <15956136+cd2357@users.noreply.github.com>
The class |
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.
desktop/src/main/java/bisq/desktop/main/market/offerbook/OfferBookChartViewModel.java
Show resolved
Hide resolved
desktop/src/main/java/bisq/desktop/main/market/offerbook/OfferBookChartViewModel.java
Show resolved
Hide resolved
desktop/src/main/java/bisq/desktop/main/market/offerbook/OfferBookChartViewModel.java
Show resolved
Hide resolved
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.
👍 Looks good in both fiat and altcoin markets now.
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.
utACK
@@ -276,22 +276,32 @@ private boolean isAnyPricePresent() { | |||
} | |||
|
|||
private void updateChartData() { | |||
|
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.
Prefer no blank lines at the beginning of methods.
Supersedes #4168. This is a rewrite of that PR.
Adds a secondary sort order to offers in market offer book by offer amount that goes from high to low. Also, replaces previous complicated implementation of primary sort.
Co-authored-by: @freimair
Co-authored-by: @cd2357