From fe48e973786dabff477c59d55a8dd4b291a1b555 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 28 Aug 2026 12:44:24 -0700 Subject: The details page honors the rail you rode: a Lightning payment keeps its bolt on the detail view instead of confessing the ark underneath, and the preimage — the receipt merchants actually ask for — is shown and copyable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_019eA8JRq9Wr7z2fRQk99HLi --- src/features/ark.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/features') diff --git a/src/features/ark.js b/src/features/ark.js index 2a92e8c..2695183 100644 --- a/src/features/ark.js +++ b/src/features/ark.js @@ -880,7 +880,9 @@ export function arkFeature(ctx) { 'div', { class: 'card col', style: 'gap:10px' }, h('div', { class: 'row gap6', style: 'align-items:center' }, - h('span', { html: ARK_ICON(18) }), + // the rail the user chose is the one to show: a payment SENT over + // Lightning stays Lightning here, however it settled underneath + m.type.startsWith('ln-') ? h('span', { style: 'font-size:18px' }, '⚡') : h('span', { html: ARK_ICON(18) }), h('h3', { style: 'margin:0' }, label), m.status !== 'complete' ? h('span', { class: 'tag pending' }, m.status) : null), h('div', { class: incoming ? 'amount-pos' : 'amount-neg', style: 'font-size:20px' }, @@ -898,6 +900,9 @@ export function arkFeature(ctx) { m.to ? row(t('arkPayTo'), shortAddr(m.to, 16, 12)) : null, m.vtxoId ? row(t('arkVtxoId'), shortTxid(m.vtxoId)) : null, m.detail ? row(t('detailsLabel'), m.detail) : null, + // proof of payment: the preimage is what a merchant asks for + m.preimage ? row(t('preimageLabel'), shortTxid(m.preimage)) : null, + m.preimage ? copyBtn(m.preimage, t('copyPreimage')) : null, // A send that funded a bearer gift: show its fate, and while unclaimed // offer the link again plus the sweep-back — same powers the gift card // has, where the sender will actually go looking for them: history. -- cgit v1.2.3