From 41a48b737a27fd05b63a046034bcfb8f9119cfef Mon Sep 17 00:00:00 2001 From: Mayank Mittal Date: Wed, 18 Nov 2026 14:32:32 +0530 Subject: [PATCH 1/2] fix(activity): keep a row's amount and symbol on one line; show cbBTC in its own case The amount column had a fixed flex share, so a six-place BTC figure (+0.001405 WBTC) wrapped its symbol onto a second line. When the column shows an amount it now takes the amount's full width and the title truncates instead; status messages keep the old sizing. CBBTC rows read cbBTC, as SOUSD already read soUSD. Co-Authored-By: Claude Opus 5.5 --- components/Transaction/index.tsx | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/components/Transaction/index.tsx b/components/Transaction/index.tsx index 07c471eb0..f5844b97a 100644 --- a/components/Transaction/index.tsx +++ b/components/Transaction/index.tsx @@ -37,6 +37,11 @@ const formatRowAmount = (amount: string, symbol?: string) => ? formatBtcRowAmount(amount, BTC_DISPLAY_DECIMALS) : formatNumber(Number(amount), 2); +/** Symbols whose activity rows arrive in another case ("SOUSD", "CBBTC"), as their token writes them. */ +const DISPLAY_SYMBOLS: Record = { sousd: 'soUSD', cbbtc: 'cbBTC' }; +const displaySymbol = (symbol?: string) => + (symbol && DISPLAY_SYMBOLS[symbol.toLowerCase()]) ?? symbol; + type TransactionClassNames = { container?: string; }; @@ -291,6 +296,9 @@ const Transaction = ({ }; const formattedTimestamp = timestamp ? formatActivityTimestamp(timestamp) : null; + const showsStatusText = Boolean( + directDepositStatusMessage || amount === '0' || hideSavingsAmount, + ); return ( )} - - {directDepositStatusMessage || amount === '0' || hideSavingsAmount ? ( + {/* An amount keeps to one line: the column takes the amount's full width (the title truncates + instead), so a long BTC figure doesn't push its symbol onto a second line. */} + + {showsStatusText ? ( {statusSign} - {formatRowAmount(amount, symbol)} {symbol?.toLowerCase() === 'sousd' ? 'soUSD' : symbol} + {formatRowAmount(amount, symbol)} {displaySymbol(symbol)} )} {directDepositIsPendingOrProcessing && !isCardDeposit && ( From 131b1bb0be5c26c508ca8e310ba854e18144f26d Mon Sep 17 00:00:00 2001 From: Mayank Mittal Date: Tue, 24 Nov 2026 11:50:15 +0530 Subject: [PATCH 2/2] fix(activity): look up display symbols in a Map so inherited keys fall through Co-Authored-By: Claude Opus 5.5 --- components/Transaction/index.tsx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/Transaction/index.tsx b/components/Transaction/index.tsx index f5844b97a..82585a92b 100644 --- a/components/Transaction/index.tsx +++ b/components/Transaction/index.tsx @@ -38,9 +38,12 @@ const formatRowAmount = (amount: string, symbol?: string) => : formatNumber(Number(amount), 2); /** Symbols whose activity rows arrive in another case ("SOUSD", "CBBTC"), as their token writes them. */ -const DISPLAY_SYMBOLS: Record = { sousd: 'soUSD', cbbtc: 'cbBTC' }; +const DISPLAY_SYMBOLS = new Map([ + ['sousd', 'soUSD'], + ['cbbtc', 'cbBTC'], +]); const displaySymbol = (symbol?: string) => - (symbol && DISPLAY_SYMBOLS[symbol.toLowerCase()]) ?? symbol; + (symbol && DISPLAY_SYMBOLS.get(symbol.toLowerCase())) || symbol; type TransactionClassNames = { container?: string;