feat: expose profile import over IPC

Wire the existing profiles::import_profile through the JSON-lines IPC
protocol so the GUI can add an existing account: ImportProfile request
and handler in src/ipc.rs, import_profile added to the Electron method
allowlist, api/AppProvider importProfile, and the Add existing account
buttons in ProfilesScreen.

Also add the active signing identity card on Home and fix the HomeScreen
tests whose text queries now match the identity card as well as the
profile row.
This commit is contained in:
Avi 2026-09-01 10:41:28 -05:00
commit 0207636a7a
11 changed files with 194 additions and 27 deletions

View file

@ -22,6 +22,7 @@
"format:check": "prettier --check .",
"electron:build": "tsc -p tsconfig.electron.json",
"start": "npm run electron:build && electron .",
"start:dev": "npm run electron:build && NOSTR_GUI_DEV_URL=${NOSTR_GUI_DEV_URL:-http://localhost:5173} electron .",
"desktop:install": "bash scripts/install-desktop-entry.sh",
"dist": "npm run build && npm run electron:build && electron-builder --linux dir"
},