The intern standardizes routers on a chosen model; Ops settings are lists
Some checks are pending
CI / test 1/4 (push) Waiting to run
CI / test 2/4 (push) Waiting to run
CI / test 3/4 (push) Waiting to run
CI / test 4/4 (push) Waiting to run
CI / build (push) Waiting to run
CI / test (push) Blocked by required conditions
CI / translations (push) Waiting to run

Keep routers ahead gets a Model setting: the next generation when busy
(as before), or a model to standardize on. With a model, every POP on a
smaller one is swapped to it, the busiest first, within the monthly budget,
through the same upRouter click: never a step down, only unlocked models
that fit, and only where a second router carries the traffic or nothing
runs yet. Busy POPs on it only get more routers.

Every setting in the Standing orders sheet (each order's dials, budgets,
the cash floor) is a dropdown instead of a button that steps through the
values. The change handler passes a select's data-args, the actions take
the picked position (v) and still step without one for the MCP tools,
which now declare v as optional.
This commit is contained in:
Frederic Jung 2026-11-06 17:19:17 +00:00
parent 9d64aa0144
commit 1e7638c4b9
No known key found for this signature in database
16 changed files with 188 additions and 33 deletions

View file

@ -51,10 +51,12 @@ test('#262 the setting is saved, an unknown value falls back, and it shows on th
dom.window.innerWidth = 360;
ev("ACT.phoneTab({t:'noc'})");
dom.window.document.querySelector('#leftBody [data-act="opsOpen"]').click();
const btn = [...dom.window.document.querySelectorAll('#modalCard [data-act="opsParam"]')].find((b) => b.dataset.args.includes('pick'));
assert.ok(btn, 'the Optics button is in the sheet');
assert.match(btn.textContent, /Optics: biggest on new fiber/);
btn.click();
const sel = [...dom.window.document.querySelectorAll('#modalCard select[data-chg="opsParam"]')].find((s) => s.dataset.args.includes('pick'));
assert.ok(sel, 'the Optics list is in the sheet');
assert.match(sel.closest('label').textContent, /Optics/);
assert.equal(sel.options[sel.selectedIndex].textContent, 'biggest on new fiber');
sel.value = [...sel.options].find((o) => o.textContent !== 'biggest on new fiber').value;
sel.dispatchEvent(new dom.window.Event('change', { bubbles: true }));
assert.equal(ev("opsP('optics','pick')"), 'cheap');
assert.deepEqual(errors, []);
});