aboutsummaryrefslogtreecommitdiff
path: root/src/stores/settings.ts
diff options
context:
space:
mode:
authorFuwn <[email protected]>2026-05-21 13:44:46 +0000
committerFuwn <[email protected]>2026-05-21 13:44:46 +0000
commit08641a3f6f1d95cc8d8dbfeebdecf6c0d2a2b0a6 (patch)
treefc75c02f41c3e44c373f53679d561334037cdaec /src/stores/settings.ts
parentfix(lists): optimistic increment and snapshot to remove refresh flash (diff)
downloaddue.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/stores/settings.ts')
-rw-r--r--src/stores/settings.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/stores/settings.ts b/src/stores/settings.ts
index 24d9eef0..1d808a82 100644
--- a/src/stores/settings.ts
+++ b/src/stores/settings.ts
@@ -71,6 +71,7 @@ export interface Settings {
displayDataSaver: boolean;
debugDummyLists: boolean;
debugShowListTimings: boolean;
+ debugDryRunMutations: boolean;
displayScheduleFilterList: boolean;
displayReverseSort: boolean;
displayAnimeSort: "difference" | "start_date" | "end_date" | "time_remaining";
@@ -128,6 +129,7 @@ const defaultSettings: Settings = {
// Debug
debugDummyLists: false,
debugShowListTimings: false,
+ debugDryRunMutations: false,
// Calculation
calculateChaptersRoundedDown: true,