From 08641a3f6f1d95cc8d8dbfeebdecf6c0d2a2b0a6 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Thu, 21 May 2026 13:44:46 +0000 Subject: 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. --- src/stores/settings.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/stores') 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, -- cgit v1.2.3