Routing groups have no page of their own: theirs is on Routing. With
Routing off and Routing groups on, Plugins › Built-in showed the groups
switch on and nothing anywhere to set them, and the quick start's
routing step still counted groups alone (netube99 on X, and the
scattered settings audit after it). The groups row now says "Their page
is on Routing, which is off" with Turn on Routing, which flips Routing's
own switch on the same list, and the quick start's step leaves with
either one off.
The hook lives in a new plugins/routing/settings.js, loaded after app.js,
whose featWho it extends (plugin client files load before app.js; the
first try in client.js threw "featWho is not defined" in every test).
Run in the tree with this change and the rest of the audit's fixes
(mote, base cd0ba05c2): builtin-places, mask-alert, settings-search:
162 pass, 0 fail, Chromium and WebKit, every language, 1100 and 420
wide; i18n-keys pass. Broken by hand: the hook returning at once,
builtin-places' groups case went red in all 20 runs.
13 lines
732 B
JavaScript
13 lines
732 B
JavaScript
// The routing plugin's part of Plugins › Built-in, run after app.js, whose
|
||
// featWho and helpers (el, t, featuresOff) it uses.
|
||
// Plugins › Built-in: Routing groups on while Routing is off have no page,
|
||
// as theirs is Routing's, though agents still pick them: the row says so,
|
||
// and turns Routing on with its own switch (netube99 on X)
|
||
featWho.groups = (line, f) => {
|
||
if (!f.on || !featuresOff.has("routing")) return;
|
||
const on = el("button", "link", t("Turn on Routing"));
|
||
on.type = "button";
|
||
on.onclick = () => line.closest(".feat-row")?.parentElement.querySelector('.feat-row[data-id="routing"] .lib-switch')?.click();
|
||
line.append(el("span", "warn", t("Their page is on Routing, which is off")), " · ", on);
|
||
};
|