Game Pass badge gets its unlock moment (Orlando bought a pass and nothing appeared): badges with no credit bonus (CELEBRATE_NO_BONUS: gamepass) are recorded once and celebrated like the rest (toast + team post), toast wording without credits, dashboard reloads right after a pass purchase; Promo tools pill renamed back to '✨ Your toolkit' (a member could not find it under 'AI Copy Engine'). QA member 0 bugs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+2
-1
@@ -110,7 +110,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str
|
||||
if (d.milestonesGranted && d.milestonesGranted.length) {
|
||||
const total = d.milestonesGranted.reduce((s, g) => s + g.credited, 0);
|
||||
const names = d.milestonesGranted.map(g => (BADGES.find(b => b.key === g.key) || {}).label).filter(Boolean).join(', ');
|
||||
IAP.status('🏆 Achievement unlocked: ' + names + ' — +' + total + ' bonus credits!', 'ok');
|
||||
IAP.status('🏆 Achievement unlocked: ' + names + (total > 0 ? ': +' + total + ' bonus credits!' : '! See it in your badges.'), 'ok');
|
||||
d.milestonesGranted.forEach((g, i) => setTimeout(() => postBadge(g.key, d, strip.querySelector('[data-badgepost="' + g.key + '"]')), 800 + i * 1500));
|
||||
}
|
||||
}
|
||||
@@ -1824,6 +1824,7 @@ function shareLink(ref) { return SHARE_DOMAIN && /^[A-Za-z0-9_]{1,40}$/.test(Str
|
||||
if (r.needPay) { IAP.status(r.message || 'Buy a $5 package and the pass starts when it settles.', 'bad'); await loadGamePassCard(true); return; }
|
||||
IAP.status('Game Pass active until ' + gpDate(r.until) + '. Have fun out there.', 'ok');
|
||||
await loadGamePassCard(true);
|
||||
try { await loadDashboard(); } catch (e) {} // unlocks the Game Pass badge at once (toast + team post)
|
||||
} catch (e) { IAP.status(e.message, 'bad'); b.disabled = false; }
|
||||
});
|
||||
const g = $('gpGoBuy'); if (g) g.addEventListener('click', () => setPane('buy'));
|
||||
|
||||
+2
-2
@@ -787,7 +787,7 @@
|
||||
<span><button class="btn small sec" id="promoWallCopy" type="button">Copy wall link</button> <a class="btn small sec" id="promoWallOpen" href="#" target="_blank" rel="noopener">Open</a></span>
|
||||
</div>
|
||||
<div class="chips promo-pills" role="tablist" aria-label="Promo tools sections">
|
||||
<button class="chip-t" data-promo="toolkit" type="button" role="tab">✨ AI Copy Engine</button>
|
||||
<button class="chip-t" data-promo="toolkit" type="button" role="tab">✨ Your toolkit</button>
|
||||
<button class="chip-t on" data-promo="posts" type="button" role="tab">Social posts</button>
|
||||
<button class="chip-t" data-promo="text" type="button" role="tab">Text a friend</button>
|
||||
<button class="chip-t" data-promo="swipe" type="button" role="tab">Email swipes</button>
|
||||
@@ -1188,7 +1188,7 @@
|
||||
<script src="/assets/wallet.js?v=20260911a"></script>
|
||||
<script src="/assets/promo.js?v=20261016p"></script>
|
||||
<script src="/assets/support.js?v=20261016a"></script>
|
||||
<script src="/assets/my.js?v=20261022usd"></script>
|
||||
<script src="/assets/my.js?v=20261022gpb"></script>
|
||||
<script src="/assets/chat.js?v=20261016n"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user