File tree Expand file tree Collapse file tree 4 files changed +24
-0
lines changed
components/profileSettings Expand file tree Collapse file tree 4 files changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ export const MOCK_TELEMETRY_SETINGS: TelemetrySettings = {
1010export const MOCK_FEATURE_FLAGS : FeatureFlags = {
1111 cv3 : false ,
1212 ws3 : false ,
13+ apply3 : false ,
1314 actions : false ,
1415 butbot : false ,
1516 rules : false ,
Original file line number Diff line number Diff line change 5656 />
5757 {/ snippet }
5858 </SectionCard >
59+ <SectionCard labelFor ="apply3" roundedTop ={false } roundedBottom ={false } orientation =" row" >
60+ {#snippet title ()}
61+ New apply to workspace
62+ {/ snippet }
63+ {#snippet caption ()}
64+ Use the V3 version of apply and unapply operations for workspace changes.
65+ {/ snippet }
66+ {#snippet actions ()}
67+ <Toggle
68+ id =" apply3"
69+ checked ={$settingsStore ?.featureFlags .apply3 }
70+ onclick ={() =>
71+ settingsService .updateFeatureFlags ({ apply3: ! $settingsStore ?.featureFlags .apply3 })}
72+ />
73+ {/ snippet }
74+ </SectionCard >
5975 <SectionCard labelFor ="rules" roundedTop ={false } roundedBottom ={false } orientation =" row" >
6076 {#snippet title ()}
6177 Workspace Rules
Original file line number Diff line number Diff line change @@ -190,6 +190,8 @@ export type FeatureFlags = {
190190 cv3 : boolean ;
191191 /** Enable the usage of the V3 workspace API */
192192 ws3 : boolean ;
193+ /** Use the V3 version of apply and unapply. */
194+ apply3 : boolean ;
193195 /** Enable the usage of GitButler Acitions. */
194196 actions : boolean ;
195197 /** Enable the usage of butbot chat */
Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ pub struct TelemetryUpdate {
1818pub struct FeatureFlagsUpdate {
1919 pub cv3 : Option < bool > ,
2020 pub ws3 : Option < bool > ,
21+ pub apply3 : Option < bool > ,
2122 pub actions : Option < bool > ,
2223 pub butbot : Option < bool > ,
2324 pub rules : Option < bool > ,
@@ -90,6 +91,7 @@ impl AppSettingsWithDiskSync {
9091 FeatureFlagsUpdate {
9192 cv3,
9293 ws3,
94+ apply3,
9395 actions,
9496 butbot,
9597 rules,
@@ -103,6 +105,9 @@ impl AppSettingsWithDiskSync {
103105 if let Some ( ws3) = ws3 {
104106 settings. feature_flags . ws3 = ws3;
105107 }
108+ if let Some ( apply3) = apply3 {
109+ settings. feature_flags . apply3 = apply3;
110+ }
106111 if let Some ( actions) = actions {
107112 settings. feature_flags . actions = actions;
108113 }
You can’t perform that action at this time.
0 commit comments