diff --git a/src/components/pages/wallet/transactions/all-transactions.tsx b/src/components/pages/wallet/transactions/all-transactions.tsx index 20a4f2c..724b2b6 100644 --- a/src/components/pages/wallet/transactions/all-transactions.tsx +++ b/src/components/pages/wallet/transactions/all-transactions.tsx @@ -293,23 +293,30 @@ function TransactionRow({
+ {/* Lead with the human-meaningful label (fall back to direction so + on-chain-only rows are never identified by a bare hash). */} +
+ {dbTransaction?.description ?? + certificatesInfo?.[0]?.label ?? + (transaction.inputs.some( + (i) => i.address === appWallet.address, + ) + ? "Sent" + : "Received")} +
+ + {dateToFormatted(new Date(transaction.tx.block_time * 1000))} + + {/* Hash demoted to a quiet mono link. */} - - {transaction.hash.substring(0, 8)}...{transaction.hash.slice(-8)} + + {getFirstAndLast(transaction.hash, 8, 8)} - + - - {dateToFormatted(new Date(transaction.tx.block_time * 1000))} - - {dbTransaction && ( -
- {dbTransaction.description} -
- )} {certificatesInfo && certificatesInfo.length > 0 && (
{certificatesInfo.map((certInfo: CertificateInfo, idx: number) => { diff --git a/src/components/pages/wallet/transactions/responsive-transactions-table.tsx b/src/components/pages/wallet/transactions/responsive-transactions-table.tsx index ef316c9..f0e61f4 100644 --- a/src/components/pages/wallet/transactions/responsive-transactions-table.tsx +++ b/src/components/pages/wallet/transactions/responsive-transactions-table.tsx @@ -220,29 +220,32 @@ function TransactionCard({
+ {/* Lead with the human label (fall back to direction). */} +
+ {dbTransaction?.description ?? + (transaction.inputs.some( + (i: { address: string }) => i.address === appWallet.address, + ) + ? "Sent" + : "Received")} +
+
+ {dateToFormatted(new Date(transaction.tx.block_time * 1000))} +
+ {/* Hash demoted to a quiet mono link. */} - - {transaction.hash.substring(0, 8)}... - {transaction.hash.slice(-8)} - + {getFirstAndLast(transaction.hash, 8, 8)} -
- {dateToFormatted(new Date(transaction.tx.block_time * 1000))} -
- - {dbTransaction && ( -
{dbTransaction.description}
- )} - +
{outputList}
{certificatesList && certificatesList.length > 0 && (