a8a1a8eec7
Plant a program free (referral link with {id}, link check green / yellow / red, daily recheck, reports), members save their
referral IDs in its packet, a sponsor-first link (member page / ?r= / the hub sponsor line, then the planter), the sprout meter
to REVIEW_SAVES (DEFAULT 25) -> Marty's review queue -> approved packets exported for the CTB builder / DownlineHydra wild heads
with every saved ID. Dormant old programs confirmed by their owner, old-link redirects (oldrefs), Spotlight on YPBShop (NOT
deployed; DEFAULT $10 / 1,000 views, 20/5/5/5/5, company 60), verified views with Spotlight delivery, trust pack (ledger,
contract, toasts, Telegram card, terms / disclaimer / privacy, TrustClickz only), network footer row, chatbot, promo kit,
Guides, PolHunter slot, LinkSpin tracked-link and zone hooks, AI writer through the hub. Seed-catalog look from the approved
mockup. Tests: qa/unit.test.cjs 33/33, qa/e2e.mjs 121/121 on a local anvil chain.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
15 lines
1.0 KiB
JavaScript
15 lines
1.0 KiB
JavaScript
// A member's page (/<username>): the packets they planted or saved an ID in, each opening with their link (the ref tag is set by the server).
|
|
(async function () {
|
|
const $ = YPB.$, esc = YPB.esc;
|
|
const name = decodeURIComponent(location.pathname.slice(1).replace(/\/$/, ''));
|
|
const d = await YPB.wire('member', '&u=' + encodeURIComponent(name)).catch(() => ({ error: 'x' }));
|
|
if (d.error || !d.member) { $('mList').innerHTML = '<p class="empty">' + esc(d.error || 'No network member by that name.') + '</p>'; return; }
|
|
const m = d.member;
|
|
$('mTitle').textContent = '@' + m.username + '\'s programs';
|
|
document.title = '@' + m.username + '\'s programs | YourProgramBuilder';
|
|
if (d.joinUrl) $('mJoin').href = d.joinUrl;
|
|
$('mList').innerHTML = m.packets.length ? m.packets.map(x => YPB.packetCard(x, { place: 'member', r: m.username })).join('') : '<p class="empty">@' + esc(m.username) + ' has not saved an ID in the Seed Bed yet. <a href="/">Browse the Seed Bed</a>.</p>';
|
|
YPB.spotRow($('spots'), d, m.username);
|
|
YPB.decorate();
|
|
})();
|