From ca065e456e526adb3580c0c3d47e89c70786353f Mon Sep 17 00:00:00 2001 From: martbost Date: Wed, 7 Oct 2026 10:14:41 -0500 Subject: [PATCH] Coach directs: Pay it forward is offered to any direct with a linked wallet who has not bought a package yet, including directs who already switched payouts on (the gift funds the first package, not the activation) Co-Authored-By: Claude Fable 5.1 --- coach.js | 4 +++- public/assets/my.js | 2 +- public/my.html | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/coach.js b/coach.js index f08f784..caf6ee9 100644 --- a/coach.js +++ b/coach.js @@ -77,7 +77,9 @@ async function coachView(email) { // no sponsor (or a different one) is in this line on the site but pays this member nothing. c.bound = c.onchainSponsorId == null ? null : (myId > 0 && c.onchainSponsorId === myId); c.free = !d.memberId; // still free: can be released to the holding tank (pay it forward) - c.address = (!d.memberId && d.address) ? d.address : null; // linked wallet of a free direct: the PIF gift target + // PIF gift target: a direct with a linked wallet who has NOT bought a package yet (rung < 3). Switching payouts on + // no longer hides the button (Marty 2026-10-07: a prospect with payouts on still needed his first $20). + c.address = (d.address && c.rung < 3) ? d.address : null; out.push(Object.assign({ email: d.email, name: d.username ? '@' + d.username : (d.memberId ? 'member #' + d.memberId : d.email.replace(/^(.).*(@.*)$/, '$1***$2')), memberId: d.memberId || 0 }, c)); } // most actionable first: stalled lowest rung, then quiet days diff --git a/public/assets/my.js b/public/assets/my.js index d09dd15..22ff31f 100644 --- a/public/assets/my.js +++ b/public/assets/my.js @@ -1735,7 +1735,7 @@ + 'rung ' + x.rung + '/6' + '' + (x.buyerCount ? x.buyerCount + ' buyer' + (x.buyerCount === 1 ? '' : 's') : '') + '' + '' - + (x.free && x.address ? ' ' : '') + + (x.address ? ' ' : '') + (x.free && x.rescue ? ' ' : '') + (x.free ? ' ' : '') + '').join(''); pageList('coach', el, ':scope > .lin-row', { per: LINE_PER }); diff --git a/public/my.html b/public/my.html index c788da4..2af7008 100644 --- a/public/my.html +++ b/public/my.html @@ -1149,7 +1149,7 @@ - +