aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-08-02 21:59:28 -0700
committerAdam Soltys <[email protected]>2026-08-02 21:59:28 -0700
commitc68a29852ee90d5955e84371ad28d8258a5c8b47 (patch)
tree6616e6c90d2e17189a5f0861b4b0255ff976bada /src
parentfd4a5a5a060e8f8caac6d798ade405f1e0287d07 (diff)
downloadcoinosv3-c68a29852ee90d5955e84371ad28d8258a5c8b47.tar.gz
coinosv3-c68a29852ee90d5955e84371ad28d8258a5c8b47.zip
Settings: drop the nostr address and Spending balance cards
The npub lives on the profile page now, and the ark card's remaining jobs are covered elsewhere — status on the balance card, the unilateral exit behind the move panel's link. Payments keeps just the payment address; the per-wallet screen (Wallets → ⚙) keeps its nostr address card for gift-locking. Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi
Diffstat (limited to 'src')
-rw-r--r--src/app.js2
-rw-r--r--src/features/ark.js50
2 files changed, 0 insertions, 52 deletions
diff --git a/src/app.js b/src/app.js
index c50cbed..29bea21 100644
--- a/src/app.js
+++ b/src/app.js
@@ -1476,11 +1476,9 @@ function settingsTab() {
// Everything nostr — identity, sync, wallet connect — on its own page.
function nostrSettingsView() {
- const a = activeAccount();
return h(
'div',
{ class: 'col', style: 'gap:16px' },
- a ? nostrNpubCard(a) : null,
...featureAll('nostrSettingsCards'),
h('button', { class: 'btn-ghost btn-block', onClick: () => { ui.settingsPage = null; render(); } }, t('back'))
);
diff --git a/src/features/ark.js b/src/features/ark.js
index 1b4f155..7407bb7 100644
--- a/src/features/ark.js
+++ b/src/features/ark.js
@@ -816,55 +816,6 @@ export function arkFeature(ctx) {
);
}
- function arkCard() {
- const net = getNetwork();
- // No provider picker: coinos is the provider (per-network defaults cover
- // dev networks). The card is status only.
- const id = getArkProviderId(net);
- const head = [
- h('h3', { class: 'row gap6', style: 'align-items:center' }, t('arkTitle')),
- h('p', { class: 'small muted', style: 'margin:0' }, t('arkDesc')),
- ui.arkError ? h('div', { class: 'notice err' }, ui.arkError) : null,
- ];
- if (id === 'off' || wallet.watchOnly) {
- return h('div', { class: 'card col' }, ...head,
- wallet.watchOnly && id !== 'off' ? h('div', { class: 'small faint' }, t('arkWatchOnly')) : null);
- }
- if (!ark || !ark.state) {
- return h('div', { class: 'card col' }, ...head,
- arkConnectPromise
- ? h('div', { class: 'row gap6', style: 'align-items:center' },
- h('span', { class: 'spinner sm' }), h('span', { class: 'small muted' }, t('arkConnecting')))
- : h('button', { class: 'btn-ghost btn-block', onClick: () => connectArk().catch(() => {}) }, t('arkConnectBtn')));
- }
-
- const spendables = ark.vtxos().filter((v) => v.state === 'spendable');
- const pendingActions = ark.pendingActions();
- const row = (k, v) => h('div', { class: 'row between' }, h('span', { class: 'small muted' }, k), h('span', { class: 'small' }, v));
-
- return h(
- 'div',
- { class: 'card col', style: 'gap:10px' },
- ...head,
- spendables.length ? row(t('arkVtxos'), String(spendables.length)) : null,
- // in-flight operations, summarized in plain words (exits get their own
- // per-exit status lines below)
- (() => {
- const counts = {};
- for (const a of pendingActions) { if (a.type !== 'exit') counts[a.type] = (counts[a.type] || 0) + 1; }
- const LABEL = { board: 'arkOpsBoard', send: 'arkOpsSend', refresh: 'arkOpsRefresh', offboard: 'arkOpsOffboard', 'ln-pay': 'arkOpsLnPay', 'ln-recv': 'arkOpsLnRecv' };
- const parts = Object.entries(counts).map(([type, n]) => t(LABEL[type] || 'arkPendingActions', { n }));
- return parts.length ? h('div', { class: 'small muted' }, parts.join(' · ')) : null;
- })(),
- // Refresh/consolidation is automatic (maybeAutoRefresh) — no button.
- // Moving funds out (cooperative offboard / unilateral exit) lives on its
- // own page, reached from the "Exit" link on the Ark balance line.
- spendables.length >= 1
- ? h('button', { class: 'btn-ghost btn-block', onClick: () => { ui.arkExitPage = true; ui.arkError = ''; render(); } }, t('arkExitPageTitle'))
- : null
- );
- }
-
async function doArkBoard() {
const sats = parseInt((ui.arkBoardAmt || '').trim(), 10);
if (!sats) return;
@@ -1773,7 +1724,6 @@ export function arkFeature(ctx) {
: null,
done ? null : h('div', { class: 'small muted', style: 'margin-top:2px' }, t('arkBoardedNote')));
},
- settingsCards() { return [arkCard()]; },
// ---- ark-gift hooks (called by the gifts feature via ctx.hook) ----
arkGiftInfo() {