diff options
| author | Adam Soltys <[email protected]> | 2026-09-03 21:17:13 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-03 21:17:13 -0700 |
| commit | 5e960611887b4eae51caa1973e411a78caf3d92e (patch) | |
| tree | 026e7060630548c286080384b5a5ff1a9639ee0f | |
| parent | 084ac2624f0ad017b6fa0623784529a5ec28ae3e (diff) | |
| download | coinosv3-5e960611887b4eae51caa1973e411a78caf3d92e.tar.gz coinosv3-5e960611887b4eae51caa1973e411a78caf3d92e.zip | |
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 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MrkLsNScXe9b6BviUSdmMr
| -rw-r--r-- | src/app.js | 22 |
1 files changed, 16 insertions, 6 deletions
@@ -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 |
