Weekly member email as sectioned HTML (plain-text twin kept); PassiveDrip one-tap hand-off (inert until PD_SSO_SECRET)
- coach.js: weeklyDigest() builds one card per topic (credits, streak, contest, tank, team) with the key number up front and one button; mailer.send takes optional html - server.js: /api/my/passivedrip mints a signed hand-off (memberId, email, username, verified wallet, sponsor email); Games card for PassiveDrip (admin preview until gamesLive includes passivedrip) with the member's own coins line via the bridge 'member' lookup; sign-in return path - my.js: card button label, return redirect; v=20261001b Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -62,4 +62,10 @@ async function sync() {
|
||||
return t;
|
||||
}
|
||||
function status() { return { enabled: enabled(), bridge: enabled() ? process.env.PD_BRIDGE_URL.replace(/\?.*$/, '') : null, last: S.last, tracked: Object.keys(S.served).length }; }
|
||||
module.exports = { enabled, init, sync, status, listing };
|
||||
// the member's own PassiveDrip line for the Games card (2026-10-01): bridge action 'member', read only
|
||||
async function member(memberId, email) {
|
||||
if (!enabled()) return null;
|
||||
const j = await bridge('member', 'POST', { memberId: Number(memberId) || 0, email: String(email || '').toLowerCase() });
|
||||
return j && j.ok ? j : null;
|
||||
}
|
||||
module.exports = { enabled, init, sync, status, listing, member };
|
||||
|
||||
Reference in New Issue
Block a user