From 5e960611887b4eae51caa1973e411a78caf3d92e Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Thu, 3 Sep 2026 21:17:13 -0700 Subject: History stays home under the panes: Receive and Send now fold open ABOVE the transaction history instead of replacing it, so returning to the list is a scroll, not an unintuitive re-tap of the toggle. A tapped history detail (or the receive celebration) still claims the whole area Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01MrkLsNScXe9b6BviUSdmMr --- src/app.js | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'src/app.js') diff --git a/src/app.js b/src/app.js index 7124b40..5ff665b 100644 --- a/src/app.js +++ b/src/app.js @@ -3563,12 +3563,22 @@ function tabsBar() { } function tabContent() { - switch (ui.tab) { - case 'receive': return receiveTab(); - case 'send': return sendTab(); - case 'history': return historyTab(); - case 'settings': return settingsTab(); - } + if (ui.tab === 'settings') return settingsTab(); + if (ui.tab === 'history') return historyTab(); + // Receive and Send are panes that fold open ABOVE the home view, not + // replacements for it: the transaction history stays visible below them, so + // getting back to it is scrolling, not hunting for the toggle. A history + // DETAIL (a tapped row) still claims the whole area — you're reading one + // payment, not browsing — as does the receive celebration takeover. + const pane = ui.tab === 'receive' ? receiveTab() : sendTab(); + const hist = historyTab(); + const detailOpen = ui.bump || ui.txDetail || ui.arkMoveDetail + || ui.arkReconDetail || ui.arkExitDetail || ui.giftDetail; + if (detailOpen) return hist; + return h('div', { class: 'col', style: 'gap:16px' }, + pane, + h('div', { class: 'small faint', style: 'text-transform:uppercase;letter-spacing:.06em;margin-top:4px' }, t('tabHistory')), + hist); } // A payment is "recent" enough to celebrate if it's still pending or confirmed -- cgit v1.2.3