From bce4aa3529d9014976b9150f9c5d16bcadccd0f8 Mon Sep 17 00:00:00 2001 From: Local Dev Date: Tue, 8 Sep 2026 00:10:11 +0200 Subject: [PATCH] feat(sirius-x): pencil Register icon + TLD mint via shared modal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two UX polishes: 1. Register-tab icon flipped from 🪪 (identification-card emoji, renders as a hollow box in system-ui fonts without extended emoji) to ✏️ (pencil), which reads as 'edit/create' and ships in every emoji font worth targeting. Changed across the nav on all 8 pages plus the footer injector's Product column. Kept the Register nav item — six items total in the nav, and from any subpage it's one click to the search on landing. 2. tld.html no longer duplicates the wallet-choice + mint flow inline. The Register button on a search result now hands the label off to the shared register-flow.js modal — same modal that name registration uses — via a new window.siriusRegisterTld(label, {serviceFeeSats}) entry point. register-flow.js grew: - startTldFlow / window.siriusRegisterTld: sets state.tld and walks the modal through wallet-choice → Fund → stepConfirmTld → stepRegisterTld → stepDoneTld - stepConfirmTld: shows label + fee + owner, no per-name quote - stepRegisterTld: dispatches to registerTldWithBuiltInWallet or registerTldWithExternalWallet based on state.wallet/state.session - stepDoneTld: 'X is yours' with txid + certificate id + operator address, no record editor (a TLD certificate has no records to set immediately) - stepWallet / stepExternalConfirm branch on state.tld so the modal heading and the WC-confirm path route correctly tld.html trimmed: removed the entire signin-section + mint-section plus their inline handlers (~250 lines gone). Now just search + registered-TLDs list + a delegator to the shared modal. If a user is already signed in via the wallet dropdown, the modal recognises the saved wallet ('Unlock my browser wallet' button appears) instead of asking them to sign in again on this page. --- admin/index.html | 2 +- brand/index.html | 2 +- docs/index.html | 2 +- index.html | 4 +- js/register-flow.js | 92 ++++++- js/site-footer.js | 2 +- portal.html | 2 +- theseus/index.html | 2 +- tld.html | 567 ++++++++++---------------------------------- 9 files changed, 224 insertions(+), 451 deletions(-) diff --git a/admin/index.html b/admin/index.html index aa9b4ca..e49d384 100644 --- a/admin/index.html +++ b/admin/index.html @@ -82,7 +82,7 @@