From 6308a2669388db05943f234b260f7d93f760f9a0 Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 2 Aug 2026 16:18:38 -0700 Subject: Settings: surface wallet settings, add Nostr section, tuck rarities into Advanced MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The main Settings tab now inlines the active wallet's own cards (recovery phrase, name, public key) instead of linking to a sub-page, followed by payment address, Ark status, network, and data source. All nostr cards — address, account link, wallet connect, device sync — sit under one Nostr heading via a new nostrSettingsCards seam. Offline transfer, address rescan, and auto-logout move to an Advanced sub-page. The Ark provider picker is gone: mainnet always rides coinos (a stale stored choice no longer wins); dev networks keep their per-network defaults. The per-account screen (Accounts → ⚙) reuses the same card builders unchanged. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01Wvj4aoeMZwA7VUGdJP9Swi --- src/api.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/api.js') diff --git a/src/api.js b/src/api.js index 5824120..42e953a 100644 --- a/src/api.js +++ b/src/api.js @@ -248,6 +248,10 @@ export function arkPresets(net = getNetwork()) { return ARK_PRESETS_BY_NET[net] || ARK_PRESETS_BY_NET.mainnet; } export function getArkProviderId(net = getNetwork()) { + // Mainnet always rides coinos — the provider picker was removed from + // Settings, so a stale stored choice must not silently win. Dev networks + // still honor a stored id (regtest/mutinynet testing needs it). + if (net === 'mainnet') return 'coinos'; try { const id = localStorage.getItem(nk(ARK_PROVIDER_KEY, net)); if (id && arkPresets(net).some((p) => p.id === id)) return id; -- cgit v1.2.3