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:
martbost
2026-08-19 06:24:22 -05:00
parent 2872a30b96
commit 43753dda4e
2 changed files with 10 additions and 1 deletions
+2 -1
View File
@@ -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);
}