Coaching Radar: separate Marty-owned positions (config.ownerIds) into their own action-item block, exclude from member-nudge tiers
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
@@ -516,7 +516,8 @@ async function handleApi(req,res,pathname){
|
||||
const names={};
|
||||
try{for(const s of getSponsors())names[String(s.id)]=s.name;}catch(e){}
|
||||
try{for(const s of readJson(SUBMISSIONS_FILE))if(s.newId&&!names[String(s.newId)])names[String(s.newId)]=s.memberName;}catch(e){}
|
||||
for(const list of [d.atRisk,d.rollForward,d.oneAway])for(const r of list)if(names[String(r.id)])r.name=names[String(r.id)];
|
||||
const ownedIds=new Set(parseOwnerIds());
|
||||
for(const list of [d.atRisk,d.rollForward,d.oneAway])for(const r of list){if(names[String(r.id)])r.name=names[String(r.id)];if(ownedIds.has(Number(r.id)))r.owned=true;}
|
||||
}
|
||||
return json(res,200,d);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user