Skip to content

Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.

fix(forge): ship the holder perk row in its default state instead of revealing it late

nirholas4202c87aae93
diff --git a/pages/forge.html b/pages/forge.html
index 886a6eeb8..b3e1f1b21 100644
--- a/pages/forge.html
+++ b/pages/forge.html
@@ -3591,9 +3591,19 @@
holders, or a non-blocking upsell + a reachable wallet connect so a
holder who hasn't connected can reveal their perk. Filled by forge.js
(updatePerkLine) from the wallet-aware access matrix. -->
- <div class="fq-perk-row" id="forge-perk-row" hidden>
- <p class="fq-perk-line" id="forge-perk-line" aria-live="polite"></p>
- <button type="button" class="fq-connect-btn" id="connect-wallet-btn" hidden data-i18n-html="forge.connect_wallet">
+ <!-- Ships in its default (no wallet, no tier) state rather than hidden.
+ Waiting for /api/three/access to reveal the row inserted two blocks
+ above the example chips half a second into the load and pushed the
+ whole rail down: 0.20 of this page's CLS, on every visit.
+ updatePerkLine() swaps the text in place when the matrix resolves,
+ and hides the connect button for anyone who turns out to be
+ connected, which is the rarer case and the one that can afford a
+ reflow. -->
+ <div class="fq-perk-row" id="forge-perk-row">
+ <p class="fq-perk-line" id="forge-perk-line" aria-live="polite" data-state="upsell">
+ <a href="/three#tiers">Hold $THREE for up to 10× free generations →</a>
+ </p>
+ <button type="button" class="fq-connect-btn" id="connect-wallet-btn" data-i18n-html="forge.connect_wallet">
<span class="fq-connect-ico" aria-hidden="true">◎</span>
<span data-wallet-label>Connect wallet</span>
</button>
diff --git a/src/forge.js b/src/forge.js
index b6d4de40f..b40111034 100644
--- a/src/forge.js
+++ b/src/forge.js
@@ -951,6 +951,9 @@ async function updatePerkLine() {
const data = await getAccess();
const level = Number(data?.tier?.level) || 0;
const connected = Boolean(getConnectedWalletAddress());
+ // The row already ships visible in its default state (see pages/forge.html);
+ // this only has to correct it. Kept for the surfaces that clone this markup
+ // with the row hidden.
els.perkRow.hidden = false;
if (level >= 1) {
const mult = FREE_MULT_BY_LEVEL[level] || 1;