Improve coinjoin summary
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/Details/CoinJoinDetailsViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/Details/CoinJoinDetailsViewModel.cs
@@ -11,7 +11,7 @@ using WalletWasabi.Fluent.ViewModels.Wallets.Home.History.HistoryItems;
namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.History.Details;
-[NavigationMetaData(Title = "Coinjoin Details")]
+[NavigationMetaData(Title = "Coinjoins")]
public partial class CoinJoinDetailsViewModel : RoutableViewModel
{
private readonly CoinJoinHistoryItemViewModel _coinJoin;

MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/Details/CoinJoinsDetailsViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/Details/CoinJoinsDetailsViewModel.cs
@@ -24,6 +24,7 @@ public partial class CoinJoinsDetailsViewModel : RoutableViewModel
[AutoNotify] private Money? _coinJoinFee;
[AutoNotify] private string _coinJoinFeeString = "";
[AutoNotify] private ObservableCollection<uint256>? _transactionIds;
+ [AutoNotify] private int _txCount;
public CoinJoinsDetailsViewModel(CoinJoinsHistoryItemViewModel coinJoinGroup, IObservable<Unit> updateTrigger)
{
@@ -63,5 +64,6 @@ public partial class CoinJoinsDetailsViewModel : RoutableViewModel
CoinJoinFeeString = CoinJoinFee.ToFeeDisplayUnitString() ?? "Unknown";
TransactionIds = new ObservableCollection<uint256>(_coinJoinGroup.CoinJoinTransactions.Select(x => x.TransactionId));
+ TxCount = TransactionIds.Count;
}
}

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/History/Details/CoinJoinsDetailsView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/History/Details/CoinJoinsDetailsView.axaml
<Separator />
- <!-- Transaction IDs -->
- <c:PreviewItem Icon="{StaticResource transaction_id}"
- Label="Transaction ID">
- <ItemsRepeater Items="{Binding TransactionIds}">
- <ItemsRepeater.ItemTemplate>
- <DataTemplate>
- <c:PreviewItem TextValue="{Binding }">
- <c:PrivacyContentControl NumberOfPrivacyChars="48">
- <TextBlock Text="{Binding }" Classes="monoSpaced" />
- </c:PrivacyContentControl>
- </c:PreviewItem>
- </DataTemplate>
- </ItemsRepeater.ItemTemplate>
- </ItemsRepeater>
- </c:PreviewItem>
-
- <Separator />
-
<!-- Status -->
<c:PreviewItem Icon="{StaticResource status_regular}"
Label="Status">
<Separator />
+ <!-- TX Count -->
+ <c:PreviewItem Icon="{StaticResource info_regular}"
+ Label="Number of Transactions"
+ TextValue="{Binding TxCount}">
+ <TextBlock Text="{Binding TxCount, Mode=OneWay}" />
+ </c:PreviewItem>
+
+ <Separator />
+
<!-- CJ fee -->
<c:PreviewItem Icon="{StaticResource btc_logo}"
Label="Fees"
TextValue="{Binding CoinJoinFeeString}">
<TextBlock Text="{Binding CoinJoinFeeString, Mode=OneWay}" />
</c:PreviewItem>
+
+ <Separator />
+
+ <!-- Transaction IDs -->
+ <c:PreviewItem Icon="{StaticResource transaction_id}"
+ Label="Transaction IDs">
+ <ItemsRepeater Items="{Binding TransactionIds}">
+ <ItemsRepeater.ItemTemplate>
+ <DataTemplate>
+ <c:PreviewItem TextValue="{Binding }">
+ <c:PrivacyContentControl NumberOfPrivacyChars="48">
+ <TextBlock Text="{Binding }" Classes="monoSpaced" />
+ </c:PrivacyContentControl>
+ </c:PreviewItem>
+ </DataTemplate>
+ </ItemsRepeater.ItemTemplate>
+ </ItemsRepeater>
+ </c:PreviewItem>
</StackPanel>
</c:ContentArea>
</UserControl>

Improve coinjoin summary