Build standard: a Broadband: IPv6-only row, rolled out by the button and the intern (#150)
The owed follow-up to IPv6-only broadband (next-session item 4). A new POP target, v6, shown and planned only while IPv4 is scarce (rule ip4): bstdPlan() makes a job per broadband city still on dual stack (ip6Todo()), the most dual-stack homes first (the most behind CGNAT, the most addresses freed), each calling ACT.ip6Go(). Its price is the whole swap (ip6Cost(), the city panel's own figure); its mo is the IPv4 bill's change, counted one city after another on a copy so the sum is all of them done. ip6Go() pays nothing at the start (the routers are paid day by day), so these jobs are marked later: the button and the std order start one only with the whole swap in hand on top of what the swaps under way still owe (ip6Owed(), X.can's new owed argument for the floor), and the order counts the whole swap against its month's budget (not in what the shift paid up front). The button's toast counts started swaps whole, as the quote did. The sheet shows the row and a note only while ip4On(); bstdLine() counts it; the MCP docs (bstdSet, bstdApply, popStd) name it. Strings in all six dictionaries. Tests: tests/bstd-ipv6-only.test.js (order and price, the button, budget and floor, rule off, saves, the sheet at 360 px portrait and landscape in every language).
This commit is contained in:
parent
02b6c24d7b
commit
417160f383
16 changed files with 215 additions and 18 deletions
|
|
@ -480,8 +480,9 @@ test('the sheet at 360 px in every language: every list works by changing it, fr
|
|||
doc.querySelector('#modalCard [data-act="bstdOpen"]').click();
|
||||
assert.ok(ev('bstdShown()'), lang + ': from the menu');
|
||||
leaks();
|
||||
// Every target is a list; pick its last value and the standard follows, the sheet stays open and in focus.
|
||||
const keys = JSON.parse(ev('JSON.stringify(BSTD.map(x=>x.k))'));
|
||||
// Every target is a list; pick its last value and the standard follows, the sheet stays open and in focus. (IPv6-only
|
||||
// broadband is a target only while IPv4 is scarce, not in Change Freeze: tests/bstd-ipv6-only.test.js.)
|
||||
const keys = JSON.parse(ev('JSON.stringify(BSTD.filter(bstdOn).map(x=>x.k))'));
|
||||
assert.equal(doc.querySelectorAll('#modalCard select[data-chg="bstdSet"]').length, keys.length);
|
||||
for (const k of keys) {
|
||||
const s = [...doc.querySelectorAll('#modalCard select[data-chg="bstdSet"]')].find(x => JSON.parse(x.dataset.args).k === k);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue