use `SmartLabel` for simplify
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/CoinJoinHistoryItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/CoinJoinHistoryItemViewModel.cs
@@ -19,7 +19,7 @@ public class CoinJoinHistoryItemViewModel : HistoryItemViewModelBase
IObservable<Unit> updateTrigger)
: base(orderIndex, transactionSummary)
{
- Label = transactionSummary.Label.ToList();
+ Label = transactionSummary.Label;
IsConfirmed = transactionSummary.IsConfirmed();
Date = transactionSummary.DateTime.ToLocalTime();
Balance = balance;

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/CoinJoinsHistoryItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/CoinJoinsHistoryItemViewModel.cs
@@ -27,8 +27,7 @@ public class CoinJoinsHistoryItemViewModel : HistoryItemViewModelBase
_updateTrigger = updateTrigger;
CoinJoinTransactions = new List<TransactionSummary>();
- Label = new [] {"Coinjoins"}.ToList();
- SortLabel = "Coinjoins";
+ Label = "Coinjoins";
IsCoinJoin = true;
ShowDetailsCommand = ReactiveCommand.Create(() => RoutableViewModel.Navigate(NavigationTarget.DialogScreen).To(new CoinJoinDetailsViewModel(this)));

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/HistoryItemViewModelBase.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/HistoryItemViewModelBase.cs
@@ -5,6 +5,7 @@ using System.Threading.Tasks;
using System.Windows.Input;
using NBitcoin;
using ReactiveUI;
+using WalletWasabi.Blockchain.Analysis.Clustering;
using WalletWasabi.Blockchain.Transactions;
using WalletWasabi.Fluent.Extensions;
@@ -36,9 +37,7 @@ public abstract partial class HistoryItemViewModelBase : ViewModelBase
public uint256 Id { get; }
- public List<string>? Label { get; protected set; }
-
- public string? SortLabel { get; protected set; }
+ public SmartLabel Label { get; protected set; } = SmartLabel.Empty;
public bool IsCoinJoin { get; protected set; }

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/TransactionHistoryItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItems/TransactionHistoryItemViewModel.cs
@@ -18,8 +18,7 @@ public class TransactionHistoryItemViewModel : HistoryItemViewModelBase
IObservable<Unit> updateTrigger)
: base(orderIndex, transactionSummary)
{
- Label = transactionSummary.Label.ToList();
- SortLabel = string.Join(' ', transactionSummary.Label.ToArray());
+ Label = transactionSummary.Label;
IsConfirmed = transactionSummary.IsConfirmed();
Date = transactionSummary.DateTime.ToLocalTime();
Balance = balance;

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryViewModel.cs
@@ -120,8 +120,8 @@ public partial class HistoryViewModel : ActivatableViewModel
{
CanUserResizeColumn = false,
CanUserSortColumn = true,
- CompareAscending = HistoryItemViewModelBase.SortAscending(x => x.SortLabel),
- CompareDescending = HistoryItemViewModelBase.SortDescending(x => x.SortLabel),
+ CompareAscending = HistoryItemViewModelBase.SortAscending(x => x.Label),
+ CompareDescending = HistoryItemViewModelBase.SortDescending(x => x.Label),
MinWidth = new GridLength(100, GridUnitType.Pixel)
},
width: new GridLength(1, GridUnitType.Star)),

use `SmartLabel` for simplify