Skip to content

Commit

Permalink
Remove logic to open profile card from offerlist due to bad ux
Browse files Browse the repository at this point in the history
  • Loading branch information
axpoems committed Dec 5, 2024
1 parent 366636e commit d2de3f9
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,6 @@ void clearPaymentFilters() {
settingsService.removeCookie(CookieKey.BISQ_EASY_OFFER_LIST_CUSTOM_PAYMENT_FILTER, getCookieSubKey());
}

void refreshMessages() {
chatMessageContainerController.refreshMessages();
}

private void applyCookiePaymentFilters() {
model.getSelectedMarketPayments().clear();
settingsService.getCookie().asString(CookieKey.BISQ_EASY_OFFER_LIST_PAYMENT_FILTERS, getCookieSubKey())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@
import bisq.account.payment_method.BitcoinPaymentMethod;
import bisq.account.payment_method.FiatPaymentMethod;
import bisq.account.payment_method.PaymentMethod;
import bisq.bisq_easy.NavigationTarget;
import bisq.desktop.common.Layout;
import bisq.desktop.common.Transitions;
import bisq.desktop.common.utils.ImageUtil;
import bisq.desktop.common.view.Navigation;
import bisq.desktop.components.controls.BisqTooltip;
import bisq.desktop.components.controls.DropdownBisqMenuItem;
import bisq.desktop.components.controls.DropdownMenu;
Expand All @@ -36,7 +34,6 @@
import bisq.desktop.main.content.chat.BaseChatView;
import bisq.desktop.main.content.components.ReputationScoreDisplay;
import bisq.desktop.main.content.components.UserProfileIcon;
import bisq.desktop.main.content.user.profile_card.ProfileCardController;
import bisq.i18n.Res;
import com.google.common.base.Joiner;
import javafx.collections.ListChangeListener;
Expand Down Expand Up @@ -408,27 +405,13 @@ protected void updateItem(OfferbookListItem item, boolean empty) {

if (item != null && !empty) {
userNameLabel.setText(item.getUserNickname());
userNameLabel.setOnMouseClicked(e ->
Navigation.navigateTo(NavigationTarget.PROFILE_CARD,
new ProfileCardController.InitData(
item.getSenderUserProfile(),
model.getChannel().get(),
controller::refreshMessages)));
reputationScoreDisplay.setReputationScore(item.getReputationScore());
userProfileIcon.setUserProfile(item.getSenderUserProfile());
userProfileIcon.getStyleClass().add("hand-cursor");
userProfileIcon.setOnMouseClicked(e ->
Navigation.navigateTo(NavigationTarget.PROFILE_CARD,
new ProfileCardController.InitData(
item.getSenderUserProfile(),
model.getChannel().get(),
controller::refreshMessages)));
setGraphic(userProfileBox);
} else {
userNameLabel.setText("");
userNameLabel.setOnMouseClicked(null);
reputationScoreDisplay.setReputationScore(null);
userProfileIcon.setOnMouseClicked(null);
userProfileIcon.dispose();
setGraphic(null);
}
Expand Down

0 comments on commit d2de3f9

Please sign in to comment.