diff options
| author | Fuwn <[email protected]> | 2026-05-21 13:44:46 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-05-21 13:44:46 +0000 |
| commit | 08641a3f6f1d95cc8d8dbfeebdecf6c0d2a2b0a6 (patch) | |
| tree | fc75c02f41c3e44c373f53679d561334037cdaec /src/lib/Settings | |
| parent | fix(lists): optimistic increment and snapshot to remove refresh flash (diff) | |
| download | due.moe-08641a3f6f1d95cc8d8dbfeebdecf6c0d2a2b0a6.tar.xz due.moe-08641a3f6f1d95cc8d8dbfeebdecf6c0d2a2b0a6.zip | |
feat(debug): add dry-run mutations mode
New 'Dry-run mutations' toggle in the Debug settings panel blocks
outgoing list updates (the + button) and skips the post-mutation
refresh so optimistic UI changes persist locally for testing. The
mutation gate sits in incrementMediaProgress; CleanAnimeList only
revalidates when the request actually went out.
Diffstat (limited to 'src/lib/Settings')
| -rw-r--r-- | src/lib/Settings/Categories/Debug.svelte | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/lib/Settings/Categories/Debug.svelte b/src/lib/Settings/Categories/Debug.svelte index ad388fee..6da4b6ae 100644 --- a/src/lib/Settings/Categories/Debug.svelte +++ b/src/lib/Settings/Categories/Debug.svelte @@ -15,6 +15,13 @@ import { invalidateListCaches } from "$lib/Media/invalidate"; setting="debugShowListTimings" text={$locale().debug.showListTimings} /> +<SettingCheckboxToggle + setting="debugDryRunMutations" + text={$locale().debug.dryRunMutations.title} +/> +<SettingHint lineBreak> + {$locale().debug.dryRunMutations.hint} +</SettingHint> <br /> <button onclick={invalidateListCaches}>{$locale().debug.clearCaches}</button> |