home: confirmation note → "This one-time link is only for you." (#376)
The keyholder/setup/saved-to-list explainer was filler; one line carries the one thing that matters (do not share this link). The saved-flag plumbing it justified goes with it.
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
1 file changed,
+6
−8
home/web/static/home.js+6 −8
diff --git a/home/web/static/home.js b/home/web/static/home.js| index 188ebd3..b981568 100644 |
| --- a/home/web/static/home.js |
| +++ b/home/web/static/home.js |
| @@ -471,13 +471,13 @@ async function requestSpace() { |
| const host = new URL(url).host; |
| vault.obj.servers = (vault.obj.servers || []).filter((s) => s.url !== url); |
| vault.obj.servers.push({ url, name: host }); |
| - let saved = true; |
| try { |
| await saveVault(); |
| } catch { |
| - saved = false; // the space exists even if the save raced; still confirm it |
| + // The space exists even if the vault save raced — still confirm it; the |
| + // entry lands on the next successful save. |
| } |
| - return { host, setupLink: body.setup_link, saved }; |
| + return { host, setupLink: body.setup_link }; |
| } |
| // A checkmark for the single-serve confirmation (static, in-code SVG). |
| @@ -488,7 +488,7 @@ const CHECK_SVG = |
| // showNewSpaceResult fills the confirmation pane inside the create screen: a |
| // sealed check, the new space's name, and the one-time setup link (the admin |
| // flow — never the bare instance URL). The Done button is static in the markup. |
| -function showNewSpaceResult(host, setupLink, saved) { |
| +function showNewSpaceResult(host, setupLink) { |
| const body = $("new-space-body"); |
| body.textContent = ""; |
| @@ -515,9 +515,7 @@ function showNewSpaceResult(host, setupLink, saved) { |
| const note = document.createElement("p"); |
| note.className = "sub"; |
| note.style.marginTop = "12px"; |
| - note.textContent = saved |
| - ? "This one-time link makes you the keyholder and starts setup with Eleven. Your space is saved to this list." |
| - : "This one-time link makes you the keyholder and starts setup with Eleven."; |
| + note.textContent = "This one-time link is only for you."; |
| body.append(a, note); |
| } else { |
| // No setup link (mint failed) — deliberately not the bare instance URL, which |
| @@ -552,7 +550,7 @@ function ensureFader() { |
| $("create-back").classList.add("hidden"); |
| return requestSpace(); |
| }, |
| - onReady: (r) => showNewSpaceResult(r.host, r.setupLink, r.saved), |
| + onReady: (r) => showNewSpaceResult(r.host, r.setupLink), |
| onError: (err) => { |
| $("create-back").classList.remove("hidden"); |
| spaceStatus((err && err.message) || String(err), "error"); |