Add CoinJoinHistoryItemViewModel
ADD
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/CoinJoinHistoryItemViewModel.cs
+using System.Linq;
+using System.Reactive;
+using NBitcoin;
+using ReactiveUI;
+using WalletWasabi.Blockchain.Transactions;
+using WalletWasabi.Fluent.Extensions;
+using WalletWasabi.Fluent.ViewModels.Navigation;
+
+namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.History.HistoryItems;
+
+public class CoinJoinHistoryItemViewModel : HistoryItemViewModelBase
+{
+ public CoinJoinHistoryItemViewModel(
+ int orderIndex,
+ TransactionSummary transactionSummary,
+ WalletViewModel walletViewModel,
+ Money balance,
+ IObservable<Unit> updateTrigger)
+ : base(orderIndex, transactionSummary)
+ {
+ Label = transactionSummary.Label.Take(1).FirstOrDefault();
+ FilteredLabel = transactionSummary.Label.Skip(1).ToList();
+ IsConfirmed = transactionSummary.IsConfirmed();
+ Date = transactionSummary.DateTime.ToLocalTime();
+ Balance = balance;
+ IsCoinJoin = true;
+
+ var amount = transactionSummary.Amount;
+ if (amount < Money.Zero)
+ {
+ OutgoingAmount = amount * -1;
+ }
+ else
+ {
+ IncomingAmount = amount;
+ }
+
+ ShowDetailsCommand = ReactiveCommand.Create(() =>
+ RoutableViewModel.Navigate(NavigationTarget.DialogScreen).To(
+ new TransactionDetailsViewModel(transactionSummary, walletViewModel.Wallet, updateTrigger)));
+
+ DateString = $"{Date.ToLocalTime():MM/dd/yy HH:mm}";
+ }
+}

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/CoinJoinsHistoryItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/CoinJoinsHistoryItemViewModel.cs
@@ -47,7 +47,7 @@ public class CoinJoinsHistoryItemViewModel : HistoryItemViewModelBase
{
var item = CoinJoinTransactions[i];
- var transaction = new TransactionHistoryItemViewModel(
+ var transaction = new CoinJoinHistoryItemViewModel(
i,
item,
_walletViewModel,

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryViewModel.cs
@@ -81,7 +81,7 @@ public partial class HistoryViewModel : ActivatableViewModel
},
width: new GridLength(0, GridUnitType.Auto)),
x => x.Children,
- x => x.IsCoinJoin,
+ x => x is CoinJoinsHistoryItemViewModel,
x => x.IsExpanded),
// Date

Add CoinJoinHistoryItemViewModel