use indicators column to show isbanned information
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletCoins/WalletCoinViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletCoins/WalletCoinViewModel.cs
@@ -16,7 +16,7 @@ public partial class WalletCoinViewModel : ViewModelBase, IDisposable
[AutoNotify] private bool _confirmed;
[AutoNotify] private bool _coinJoinInProgress;
[AutoNotify] private bool _isBanned;
- [AutoNotify] private DateTimeOffset? _bannedUntilUtc;
+ [AutoNotify] private string? _bannedUntilUtcToolTip;
public WalletCoinViewModel(SmartCoin coin)
{
@@ -27,7 +27,7 @@ public partial class WalletCoinViewModel : ViewModelBase, IDisposable
coin.WhenAnyValue(c => c.HdPubKey.AnonymitySet).Subscribe(x => AnonymitySet = x).DisposeWith(_disposables);
coin.WhenAnyValue(c => c.CoinJoinInProgress).Subscribe(x => CoinJoinInProgress = x).DisposeWith(_disposables);
coin.WhenAnyValue(c => c.IsBanned).Subscribe(x => IsBanned = x).DisposeWith(_disposables);
- coin.WhenAnyValue(c => c.BannedUntilUtc).Subscribe(x => BannedUntilUtc = x).DisposeWith(_disposables);
+ coin.WhenAnyValue(c => c.BannedUntilUtc).Subscribe(x => BannedUntilUtcToolTip = $"Banned until: {x}").DisposeWith(_disposables);
}
public static Comparison<WalletCoinViewModel?> SortAscending<T>(Func<WalletCoinViewModel, T> selector)

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletCoins/WalletCoinsViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Advanced/WalletCoins/WalletCoinsViewModel.cs
@@ -57,7 +57,6 @@ public partial class WalletCoinsViewModel : RoutableViewModel
// Amount AmountColumnView Amount Auto - - true
// AnonymitySet AnonymityColumnView <custom> 40 - - true
// Labels LabelsColumnView Labels * - - false
- // Banned IsBannedColumnView Banned? Auto - - true
Source = new FlatTreeDataGridSource<WalletCoinViewModel>(_coins)
{
@@ -112,19 +111,6 @@ public partial class WalletCoinsViewModel : RoutableViewModel
CompareDescending = WalletCoinViewModel.SortDescending(x => x.SmartLabel)
},
width: new GridLength(1, GridUnitType.Star)),
-
- // Banned
- new TemplateColumn<WalletCoinViewModel>(
- "Banned?",
- new FuncDataTemplate<WalletCoinViewModel>((node, ns) => new IsBannedColumnView(), true),
- options: new ColumnOptions<WalletCoinViewModel>
- {
- CanUserResizeColumn = false,
- CanUserSortColumn = true,
- CompareAscending = WalletCoinViewModel.SortAscending(x => x.IsBanned),
- CompareDescending = WalletCoinViewModel.SortDescending(x => x.IsBanned)
- },
- width: new GridLength(0, GridUnitType.Auto))
}
};

MODIFY
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletCoins/Columns/IndicatorsColumnView.axaml
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletCoins/Columns/IndicatorsColumnView.axaml
ToolTip.Tip="Not Coinjoining" />
</Panel>
+ <Panel>
+ <!-- Banned -->
+ <PathIcon IsVisible="{Binding IsBanned}"
+ Data="{StaticResource warning_regular}"
+ Foreground="{DynamicResource SystemAccentColor}"
+ Height="14"
+ ToolTip.Tip="{Binding BannedUntilUtcToolTip}" />
+ <!-- Clean -->
+ <PathIcon IsVisible="{Binding !IsBanned}"
+ Data="{StaticResource info_tip}"
+ Height="14"
+ Opacity="0.6"
+ ToolTip.Tip="UTXO is clean according to the backend" />
+ </Panel>
+
</StackPanel>
</UserControl>

DELETE
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletCoins/Columns/IsBannedColumnView.axaml
-<UserControl xmlns="https://github.com/avaloniaui"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:walletcoins="clr-namespace:WalletWasabi.Fluent.ViewModels.Wallets.Advanced.WalletCoins"
- mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
- x:DataType="walletcoins:WalletCoinViewModel"
- x:CompileBindings="True"
- x:Class="WalletWasabi.Fluent.Views.Wallets.Advanced.WalletCoins.Columns.IsBannedColumnView">
- <TextBlock Text="{Binding IsBanned}"
- Margin="5 0"
- VerticalAlignment="Center"
- HorizontalAlignment="Center"
- ToolTip.Tip="{Binding BannedUntilUtc}"/>
-</UserControl>

DELETE
WalletWasabi.Fluent/Views/Wallets/Advanced/WalletCoins/Columns/IsBannedColumnView.axaml.cs
-using Avalonia;
-using Avalonia.Controls;
-using Avalonia.Markup.Xaml;
-
-namespace WalletWasabi.Fluent.Views.Wallets.Advanced.WalletCoins.Columns;
-
-public partial class IsBannedColumnView : UserControl
-{
- public IsBannedColumnView()
- {
- InitializeComponent();
- }
-
- private void InitializeComponent()
- {
- AvaloniaXamlLoader.Load(this);
- }
-}
\ No newline at end of file

use indicators column to show isbanned information