diff options
| author | Adam Soltys <[email protected]> | 2026-08-02 09:03:53 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-08-02 09:03:53 -0700 |
| commit | a60f2a090b12f62649ddd55d1a8605e433d2c75a (patch) | |
| tree | 59691af8afcfa66d63fac0a724fe45fe34f2cc15 /src/app.js | |
| parent | e978ae682f71ce87c14fb8bea886f90ddd4bf1c3 (diff) | |
| download | coinosv3-a60f2a090b12f62649ddd55d1a8605e433d2c75a.tar.gz coinosv3-a60f2a090b12f62649ddd55d1a8605e433d2c75a.zip | |
Spending is the headline balance; Savings sits under it
No total: the two are different kinds of money and summing them says
nothing useful. Layout keys off whether the instant balance exists at
all rather than off its amount — a zero Spending balance is still a
Spending balance.
Co-Authored-By: Claude Fable 5 <[email protected]>
Diffstat (limited to 'src/app.js')
| -rw-r--r-- | src/app.js | 17 |
1 files changed, 9 insertions, 8 deletions
@@ -1914,22 +1914,23 @@ function balanceCard() { // is the on-chain one. The headline is simply everything you have. const spending = featureHook('spendingSat') || 0; const saving = wallet.spendable; - const split = spending > 0 || saving > 0; + const hasArk = !!featureHook('arkReady'); return h( 'div', { class: 'card balance' }, - h('div', { class: 'small faint', style: 'text-transform:uppercase;letter-spacing:.05em' }, t('balance')), + // Spending is the balance people use, so it IS the balance: headline, + // with Saving as a quieter line underneath. No total — the two are + // different kinds of money, and adding them up says nothing useful. + h('div', { class: 'small faint', style: 'text-transform:uppercase;letter-spacing:.05em' }, + hasArk ? t('spendingLabel') : t('balance')), h('div', { class: 'amt', style: firstLoad ? 'opacity:.3' : '' }, firstLoad ? h('span', { class: 'spinner sm', style: 'margin-right:8px' }) : null, - fmtAmount(spending + saving), ' ', unitTag('unit')), - split || pending > 0 || featLines.length + fmtAmount(hasArk ? spending : saving), ' ', unitTag('unit')), + hasArk || pending > 0 || featLines.length ? h( 'div', { class: 'split' }, - split - ? h('div', {}, h('div', { class: 'k' }, t('spendingLabel')), h('div', { class: 'v' }, fmtAmount(spending), ' ', unitTag())) - : null, - split + hasArk ? h('div', {}, h('div', { class: 'k' }, t('savingLabel')), h('div', { class: 'v' }, fmtAmount(saving), ' ', unitTag())) : null, pending > 0 |
