Qualified dashboards promote the next unqualified position in their leg
Instead of only pointing at the team rotator, a qualified member's share card now runs the moving-link wave automatically: breadth-first, left-to-right, the first position below them with fewer than 2 directs becomes "next in line" — their QR, page link, and join CTA all carry that position's ID. When it qualifies, the card rotates to the next one. Falls back to the team rotator when the whole leg is qualified. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -267,6 +267,7 @@ async function handleApi(req,res,pathname){
|
||||
try{
|
||||
const r=await Promise.race([chain.memberPublic(id),new Promise((_,rej)=>setTimeout(()=>rej(new Error('Blockchain lookup timed out — try again.')),20000))]);
|
||||
if(r.registered)r.referralUrl=`${getConfig().dappReferralBaseUrl}${encodeURIComponent(id)}`;
|
||||
if(r.nextInLine)r.nextInLine.referralUrl=`${getConfig().dappReferralBaseUrl}${encodeURIComponent(r.nextInLine.id)}`;
|
||||
memberCache.set(id,{data:r,ts:Date.now()});
|
||||
if(memberCache.size>500)memberCache.delete(memberCache.keys().next().value);
|
||||
return json(res,200,r,{'Cache-Control':'public, max-age=60'});
|
||||
|
||||
Reference in New Issue
Block a user