From 53f9b56004651605d24aaac2f289af2a0862d338 Mon Sep 17 00:00:00 2001 From: KayProject Date: Tue, 30 Jun 2026 09:58:48 +0100 Subject: [PATCH] fix(TransactionHistory): show feePaid, truncate long memos, add accessible row label - Render the feePaid value in each TxRow ('Fee: N stroops') - Cap memo display at 20 chars with the full value in a title tooltip - Wrap each row in an
with an aria-label summarising hash, status, ledger and fee for screen-reader users Closes #167 --- src/components/TransactionHistory.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/components/TransactionHistory.tsx b/src/components/TransactionHistory.tsx index 18813ea..1b6e892 100644 --- a/src/components/TransactionHistory.tsx +++ b/src/components/TransactionHistory.tsx @@ -26,8 +26,15 @@ function TxRow({ tx }: { tx: Transaction }) { day: "numeric", }); + const memoTruncated = + tx.memo && tx.memo.length > 20 ? `${tx.memo.slice(0, 20)}…` : tx.memo; + return ( -
+
{/* Status icon */}
Ledger {tx.ledger} + + · Fee: {tx.feePaid} stroops + {tx.memo && ( - · {tx.memo} + + · {memoTruncated} + )}
@@ -63,7 +75,7 @@ function TxRow({ tx }: { tx: Transaction }) { {dateStr} {timeStr}
-
+
); }