sirius/js
Local Dev 0a86b012d6 fix(sirius-x): sign-in Done unblocks portal; session survives reload
Two issues reported after an Import sign-in:

1. Done button was stuck — user saw the ✓ Signed in screen but the
   portal never switched to the names view. Root cause: finishSignIn
   fired siriusProfileChanged BEFORE setting window.siriusWallet, so
   the portal's listener called adoptWalletFromModal() while
   window.siriusWallet was still null, saw no wallet, and did nothing.
   Fix: expose the live wallet BEFORE writeProfile so the sync
   listener sees it and can enterPortal() immediately.

2. Every reload asked for the password again. Cache the wallet's
   mnemonic in sessionStorage on sign-in — same tab (or a page
   reload) rebuilds the BuiltInWallet silently via
   BuiltInWallet.fromMnemonic; a full browser close clears
   sessionStorage and the user is back at the Unlock tab.
   sessionStorage is per-origin per-tab so an XSS on Sirius.X pages
   would still be able to read it — that's the tradeoff for the
   convenience. Chipnet only; mainnet gets the PIN escrow pattern
   (3 wrong PIN tries → escalate to password) that Digibyte.x/web
   already uses. PIN implementation is deferred to its own commit.

portal.html adoptWalletFromModal now tries sessionStorage after the
in-memory check; register-flow.js startFlow/startTldFlow do the same
via a new async adoptSessionWalletAsync so name and TLD mints on any
page reuse the session wallet with no re-prompt. profile-menu.js
sign-out clears sessionStorage + window.siriusWallet so signing out
really does drop the user.
2026-09-09 01:15:14 +02:00
..
pricing.js feat(sirius-x): tier-based label pricing; badges on search cards + TLD list 2026-09-09 01:09:05 +02:00
profile-menu.js fix(sirius-x): sign-in Done unblocks portal; session survives reload 2026-09-09 01:15:14 +02:00
register-flow.js fix(sirius-x): sign-in Done unblocks portal; session survives reload 2026-09-09 01:15:14 +02:00
site-footer.js feat(sirius-x): pencil Register icon + TLD mint via shared modal 2026-09-08 00:10:11 +02:00