Review fixes for Starblink, Island Wi-Fi and late joiners
Some checks failed
CI / plan (push) Has been cancelled
CI / build (push) Has been cancelled
CI / translations (push) Has been cancelled
Container image / gate (push) Has been cancelled
CI / part (push) Has been cancelled
CI / test (push) Has been cancelled
CI / timings (push) Has been cancelled
Container image / test (push) Has been cancelled
Container image / publish (push) Has been cancelled

- Until a zone's first circuit or spur is up, its row and panel say when the islands come online instead of homes out of 0 and a red 0% served (wisp-commissioning-homes-of-zero).
- Once your own constellation flies, a zone's Starblink row points to GEO, MEO or a spur (wisp.leo_no_rivals), never to a pie dish (zone-leo-pie-dish-advice).
- The late joiner's welcome and bank note say the match is on home broadband, not island Wi-Fi, in all six languages (late-match-island-homes).
- A gateway's section shows its city's transit ports (Transit out of the city) and warns when they fill; the fiber row only where there is fiber (leo-backhaul-transit-only).
- Spurs are subsea cable, no longer unrepeatered, in every language and the catalog comment (spur-unrepeatered-1400km).
- French calls a spur a câble de dérivation, not a câble d'antenne (fr-spur-cable-antenna).
This commit is contained in:
jvanvik 2026-11-12 03:31:08 +01:00
parent 5ca8270db9
commit 41e6fd78ef
14 changed files with 178 additions and 50 deletions

View file

@ -214,6 +214,28 @@ test('the gateway POP is the islands’ bottleneck: its fiber full, every island
assert.deepEqual(errors, []);
});
// An island gateway whose only way out is a transit port (someone else's cable) is on your fiber all the same
// (satWired): its section shows that port's load, not "0.0 Gbps / 0.0 Gbps" of fiber, and warns when it fills.
test('a gateway out over transit only: the teleport section shows the transit port, and says when it is the bottleneck', (t) => {
const { ev, errors } = game(t, "ACT.buildPop({city:'suv'});ACT.buyTransit({city:'suv',net:NETS.find(n=>sellsAt(n,'suv')).id,tier:0});ACT.teleBuild({city:'suv'});ACT.teleLeo({city:'suv'});ACT.wispSat({z:'vanualevu',bird:'sb53',g:10});");
assert.equal(ev("S.links.some(l=>l.a==='suv'||l.b==='suv')"), false, 'no fiber, no cable of yours');
assert.equal(ev("satWired('suv')"), true, 'a transit port is a way out');
ev("S.day=wispZ('vanualevu').sat.ready;wispZ('vanualevu').d=6;compute()");
const panel = () => { ev("UI.sel={type:'city',id:'suv'};UI.tab='links';renderAll()"); return ev("document.querySelector('#panel').textContent"); };
let p = panel();
assert.match(p, /Landing here from orbit6\.0 Gbps/);
assert.doesNotMatch(p, /Fiber and cables out of Suva/, 'no fiber row without fiber');
const tl = ev("S.transit.filter(t=>t.city==='suv').reduce((a,t)=>a+(R.useT[t.id]||0),0)");
assert.ok(tl >= 6 - 1e-6, 'the islands leave over transit: ' + tl);
assert.ok(p.includes(`Transit out of Suva${ev(`fmtG(${tl})`)} / ${ev('fmtG(10)')}`), 'the port\'s load and size');
assert.doesNotMatch(p, /every island behind this gateway slows down/);
// The port fills: the islands slow down with it, and the section says so.
ev("ACT.launchBB({city:'suv'});closeModal();S.pops.suv.bb.d=8;compute()");
assert.ok(ev("S.transit.filter(t=>t.city==='suv').reduce((a,t)=>a+(R.useT[t.id]||0),0)") >= 9.5);
assert.match(panel(), /Suva is full: every island behind this gateway slows down/);
assert.deepEqual(errors, []);
});
test('Pie in the Sky: once your crust carries, Starblink sells you nothing new; what you rent keeps running, on its own bill', (t) => {
const { ev, errors } = game(t, GW + "ACT.buySat({a:'ccs',b:'cur',bird:'sb53',g:10});closeModal();ACT.launchBB({city:'cur'});closeModal();ACT.buildPop({city:'bog'});ACT.teleBuild({city:'bog'});");
ev(ready);