From 3db8243a77661f8c5fec49b5d934420d916733eb Mon Sep 17 00:00:00 2001 From: user Date: Sat, 28 Feb 2026 12:23:06 -0800 Subject: [PATCH] refactor: consolidate wallet import into unified add-wallet view with navigation stack - Merge mnemonic, private key, and xprv import into a single add-wallet view with tab-style mode selector instead of separate views with text links - Add view navigation stack to helpers.js so back buttons return to the actual previous view instead of hardcoded destinations - Remove separate import-key and import-xprv views from HTML - Remove importKey.js and importXprv.js from index.js (files kept but unused) - Fix import-xprv never rendering (was missing from VIEWS array) Closes #20 --- src/popup/index.html | 230 +++++++++++----------------- src/popup/index.js | 6 - src/popup/views/addWallet.js | 281 +++++++++++++++++++++++++---------- src/popup/views/helpers.js | 24 ++- 4 files changed, 313 insertions(+), 228 deletions(-) diff --git a/src/popup/index.html b/src/popup/index.html index 924a6fe..bb2c3b4 100644 --- a/src/popup/index.html +++ b/src/popup/index.html @@ -56,39 +56,103 @@ < Back

Add Wallet

-

- Enter your 12 or 24 word recovery phrase below, or click the - button to roll the die for a new one. -

-
+ + +
+ +
-
- + + +
+

+ Enter your 12 or 24 word recovery phrase below, or click + the button to roll the die for a new one. +

+
+ +
+
+ +
+
-