From b25047e30dd012eb4e7f957a65e1088d7ac1e87d Mon Sep 17 00:00:00 2001 From: Caleb Owens Date: Wed, 8 Jan 2025 14:06:03 +0100 Subject: [PATCH] Add UI for feature flag --- apps/desktop/src/lib/backend/projects.ts | 1 + .../userPreferences/PreferencesForm.svelte | 25 ++++++++++++++++++- .../src/integration_check.rs | 12 +++++++++ crates/gitbutler-project/src/storage.rs | 5 ++++ 4 files changed, 42 insertions(+), 1 deletion(-) diff --git a/apps/desktop/src/lib/backend/projects.ts b/apps/desktop/src/lib/backend/projects.ts index 29669657d9..83bdd59e42 100644 --- a/apps/desktop/src/lib/backend/projects.ts +++ b/apps/desktop/src/lib/backend/projects.ts @@ -28,6 +28,7 @@ export class Project { use_diff_context: boolean | undefined; snapshot_lines_threshold!: number | undefined; use_new_branch_integration_algorithm: boolean | undefined; + use_new_integration_check!: boolean; // Produced just for the frontend to determine if the project is open in any window. is_open!: boolean; diff --git a/apps/desktop/src/lib/settings/userPreferences/PreferencesForm.svelte b/apps/desktop/src/lib/settings/userPreferences/PreferencesForm.svelte index 107f5975fc..1b81cbf60b 100644 --- a/apps/desktop/src/lib/settings/userPreferences/PreferencesForm.svelte +++ b/apps/desktop/src/lib/settings/userPreferences/PreferencesForm.svelte @@ -1,5 +1,5 @@