diff --git a/coach.js b/coach.js index caf6ee9..71e8e12 100644 --- a/coach.js +++ b/coach.js @@ -5,6 +5,7 @@ const fs = require('fs'); const path = require('path'); const db = require('./db'); +const walletnudge = require('./walletnudge'); // POL waiting in the games with no wallet linked let DATA_DIR = null, chain = null, accounts = null, mailer = null; const DAY = 86400000; @@ -80,6 +81,7 @@ async function coachView(email) { // 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; + c.polWaiting = d.address ? 0 : walletnudge.waitingFor(d.email); // earned in the games, stuck behind a missing wallet 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 22ff31f..035634f 100644 --- a/public/assets/my.js +++ b/public/assets/my.js @@ -1730,6 +1730,7 @@ $('coachSummary').innerHTML = d.length ? '' + d.length + ' direct' + (d.length === 1 ? '' : 's') + ' · ' + r.stalled + ' quiet for 3+ days' + (r.stalled ? ' · start at the top' : '') : ''; if (!d.length) { el.innerHTML = '
No directs yet. When someone joins through your link they show up here with their next step.
'; return; } el.innerHTML = d.map(x => '