From ee55aa3e09b71177a8e1c4f0477c7f95428fefe6 Mon Sep 17 00:00:00 2001 From: Christoph Atteneder Date: Thu, 24 Jan 2019 19:48:37 +0100 Subject: [PATCH 1/2] Remove filter for offerbook teaser tables --- .../offerbook/OfferBookChartViewModel.java | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/desktop/src/main/java/bisq/desktop/main/market/offerbook/OfferBookChartViewModel.java b/desktop/src/main/java/bisq/desktop/main/market/offerbook/OfferBookChartViewModel.java index ce4f4d447f3..397b3746414 100644 --- a/desktop/src/main/java/bisq/desktop/main/market/offerbook/OfferBookChartViewModel.java +++ b/desktop/src/main/java/bisq/desktop/main/market/offerbook/OfferBookChartViewModel.java @@ -297,8 +297,6 @@ private void updateChartData() { }) .collect(Collectors.toList()); - allBuyOffers = filterOffersWithRelevantPrices(allBuyOffers); - final Optional highestBuyPriceOffer = allBuyOffers.stream() .filter(o -> o.getPrice() != null) .max(Comparator.comparingLong(o -> o.getPrice().getValue())); @@ -339,8 +337,6 @@ private void updateChartData() { }) .collect(Collectors.toList()); - allSellOffers = filterOffersWithRelevantPrices(allSellOffers); - final Optional highestSellPriceOffer = allSellOffers.stream() .filter(o -> o.getPrice() != null) .max(Comparator.comparingLong(o -> o.getPrice().getValue())); @@ -362,26 +358,6 @@ private void updateChartData() { buildChartAndTableEntries(allSellOffers, OfferPayload.Direction.SELL, sellData, topSellOfferList); } - // If there are more then 3 offers we ignore the offers which are further than 30% from the best price - private List filterOffersWithRelevantPrices(List offers) { - if (offers.size() > 3) { - Price bestPrice = offers.get(0).getPrice(); - if (bestPrice != null) { - long bestPriceAsLong = bestPrice.getValue(); - return offers.stream() - .filter(e -> { - if (e.getPrice() == null) - return false; - - double ratio = (double) e.getPrice().getValue() / (double) bestPriceAsLong; - return Math.abs(1 - ratio) < 0.3; - }) - .collect(Collectors.toList()); - } - } - return offers; - } - private void buildChartAndTableEntries(List sortedList, OfferPayload.Direction direction, List data, ObservableList offerTableList) { data.clear(); double accumulatedAmount = 0; From 59a515d291cc5fbb9b08cb6fb367a38c28642361 Mon Sep 17 00:00:00 2001 From: Christoph Atteneder Date: Thu, 24 Jan 2019 19:52:13 +0100 Subject: [PATCH 2/2] Extend progress status label over two columns to prevent truncation --- .../portfolio/pendingtrades/steps/buyer/BuyerStep2View.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/desktop/src/main/java/bisq/desktop/main/portfolio/pendingtrades/steps/buyer/BuyerStep2View.java b/desktop/src/main/java/bisq/desktop/main/portfolio/pendingtrades/steps/buyer/BuyerStep2View.java index ba3fdaba836..07becfada32 100644 --- a/desktop/src/main/java/bisq/desktop/main/portfolio/pendingtrades/steps/buyer/BuyerStep2View.java +++ b/desktop/src/main/java/bisq/desktop/main/portfolio/pendingtrades/steps/buyer/BuyerStep2View.java @@ -330,6 +330,8 @@ protected void addContent() { Tuple4 tuple3 = addButtonBusyAnimationLabel(gridPane, ++gridRow, 0, Res.get("portfolio.pending.step2_buyer.paymentStarted"), 10); + + GridPane.setColumnSpan(tuple3.forth, 2); confirmButton = tuple3.first; confirmButton.setOnAction(e -> onPaymentStarted()); busyAnimation = tuple3.second;