Modes: a mode that no longer matches the features reads "Custom (based on <mode>)" and offers "Re-apply <mode>"

A mode is a starting point, never a lock and never applied again on its own. modeStatus() (runtime)
compares the flags with the mode's preset: custom, what re-applying turns on and off, and which of
those the preset gained in an update since it was applied. mode_set keeps the preset of that moment
(modes.json "preset", flag names only, bounded; forgotten when the mode changes). Settings, the
first-run screen and the app menu's Mode row show Custom; Re-apply lists what it turns on and off
before it writes anything; a preset that grew is mentioned once on the mode row (Review), never applied.
Tests: exact match, changed by the owner, preset grew, choice made before the preset was kept.
This commit is contained in:
CRTkafa 2026-10-01 03:33:41 +07:00
parent c18f4cf283
commit ba684b477b
9 changed files with 288 additions and 27 deletions

View file

@ -1113,18 +1113,25 @@
"wb.features.useBuiltIn": "Use the built-in one",
"wb.modes.applied": "{mode} is on.",
"wb.modes.current": "in use",
"wb.modes.custom": "Custom (based on {mode})",
"wb.modes.existing": "You already set {app} up. Nothing changes unless you pick a mode.",
"wb.modes.grew": "{mode} has new features: {count}.",
"wb.modes.keep": "Keep my changes",
"wb.modes.keepHint": "Changed by hand: {count}. Those would be replaced.",
"wb.modes.keepQuestion": "Keep your manual changes?",
"wb.modes.keepSetup": "Keep my current setup",
"wb.modes.lede": "Pick a starting point. Every plugin and feature stays individually switchable, and you can change the mode later in Settings.",
"wb.modes.reapply": "Re-apply {mode}",
"wb.modes.reapplyHint": "Every feature goes back to what {mode} starts with.",
"wb.modes.recommended": "Recommended",
"wb.modes.reset": "Use {mode} as it is",
"wb.modes.review": "Review",
"wb.modes.section": "Mode",
"wb.modes.sectionHint": "A starting point, not a lock. Changing it never takes a switch away.",
"wb.modes.start": "Start with {mode}",
"wb.modes.title": "How much should {app} change {site}?",
"wb.modes.turnsOff": "Turns off: {list}",
"wb.modes.turnsOn": "Turns on: {list}",
"wb.modes.use": "Use this mode",
"wb.features.soon": "Its features arrive in a later update."
}