Merge main (peering policy) into the split layout via port-branch

This commit is contained in:
Frederic Jung 2026-10-27 10:30:21 +01:00
commit d0ba85ef8f
No known key found for this signature in database
11 changed files with 90 additions and 9 deletions

View file

@ -24,6 +24,9 @@ Object.assign(ACT,{
else toast(pick([tr('<b>“It is with the provisioning team.”</b><br>Nobody has ever met the provisioning team.'),tr('<b>“We are waiting on the colo for the cross-connect.”</b><br>The colo says it is waiting on them.'),tr('<b>Your ticket was merged into another ticket.</b><br>That ticket was closed as a duplicate of yours.'),tr('<b>“Could you resend the LOA?”</b><br>You have sent it four times.'),tr('<b>Your account manager is on paternity leave.</b><br>His replacement is also on paternity leave.')]));after();},
inbox:()=>{inboxModal();},
inboxAct:({id,a})=>{if(!['accept','decline','raise','keep'].includes(a))return;ibxAnswer(+id,a);after();inboxModal();},
inboxPol:({p})=>{if(!PPOL.includes(p))return;ibx().pol=p;after();inboxModal();},
inboxRaiseAll:()=>{const I=ibx(),mp=I.items.filter(x=>x.k==='mp');if(!mp.length)return;const leaks=mp.filter(x=>x.leak).length;for(const x of mp)ibxAnswer(x.id,'raise',true);
toast(leaks?trn('<b>Raised {n} max-prefix limits.</b><br>One of them was a route leak. It is in the NOC now.','<b>Raised {n} max-prefix limits.</b><br>{k} of them were route leaks. They are in the NOC now.',leaks,{n:mp.length,k:leaks}):tr('<b>Raised {n} max-prefix limits.</b><br>All growth, no leaks. Lucky.',{n:mp.length}),leaks?'bad':'good');after();inboxModal();},
inboxAll:({a})=>{if(a!=='accept'&&a!=='decline')return;const I=ibx();for(const x of I.items.filter(x=>x.k==='req'))ibxAnswer(x.id,a,true);after();inboxModal();},
inboxBot:({on})=>{const I=ibx();if(+on){if(I.bot||!spend(AI_MO))return;I.bot=true;ibxLog(N_('Hello! I am Large Peering Model. I have read your inbox and I already have opinions.'),{});toast(tr('<b>Large Peering Model is hired.</b><br>Your inbox is its problem now. {price} a year, billed monthly.',{price:fmt$(20e6)}),'good');}else{I.bot=false;toast(tr('<b>The AI is gone.</b><br>It left a 40-page handover document. It is mostly about itself.'));}after();inboxModal();},
cancelPni:({id,ok})=>{if(!ok&&UI.confirm!==id){UI.confirm=id;renderPanel();return;}S.pni=S.pni.filter(p=>p.id!==id);UI.confirm=null;after();},