@@ -116,7 +116,6 @@ export class EncryptionFlowViewModel
116116 }
117117
118118 private cleanup ( ) : void {
119- console . log ( "[EncryptionFlow] cleanup - clearing state" ) ;
120119 this . snapshot . merge ( {
121120 currentScreen : null ,
122121 screenType : null ,
@@ -128,22 +127,18 @@ export class EncryptionFlowViewModel
128127 * Start the encryption flow. Runs until complete or user cancels.
129128 */
130129 public async startFlow ( ) : Promise < EncryptionFlowResult > {
131- console . log ( "[EncryptionFlow] startFlow called" ) ;
132130 this . cancelled = false ;
133131 this . snapshot . merge ( { isActive : true , isLoading : true } ) ;
134- console . log ( "[EncryptionFlow] Set isActive: true, isLoading: true" ) ;
135132
136133 try {
137134 // Check initial state to determine available options
138- console . log ( "[EncryptionFlow] Checking initial state..." ) ;
139135 const [ backupExistsOnServer , hasDevicesToVerifyAgainst ] = await Promise . all ( [
140136 this . checkBackupExistsOnServer ( ) ,
141137 this . checkHasDevicesToVerifyAgainst ( ) ,
142138 ] ) ;
143139
144140 const recoveryState = this . encryption . recoveryState ( ) ;
145141 // RecoveryState: Unknown=0, Enabled=1, Disabled=2, Incomplete=3
146- console . log ( "[EncryptionFlow] Initial state:" , { backupExistsOnServer, hasDevicesToVerifyAgainst, recoveryState } ) ;
147142
148143 // Compute available actions
149144 const availableActions : IdentityConfirmationAction [ ] = [ ] ;
@@ -157,11 +152,8 @@ export class EncryptionFlowViewModel
157152 availableActions . push ( IdentityConfirmationAction . Recovery ) ;
158153 }
159154
160- console . log ( "[EncryptionFlow] Available actions:" , availableActions ) ;
161-
162155 // Always run the confirm identity flow - even if no actions available,
163156 // the user can still choose "Can't confirm" which leads to reset
164- console . log ( "[EncryptionFlow] Starting confirm identity flow" ) ;
165157 while ( ! this . cancelled ) {
166158 const confirmResult = await this . runConfirmIdentityStep ( availableActions ) ;
167159
@@ -196,7 +188,6 @@ export class EncryptionFlowViewModel
196188 if ( outcome === "interactiveVerification" ) {
197189 // TODO: Implement interactive verification
198190 // For now, just continue the loop
199- console . log ( "Interactive verification not yet implemented" ) ;
200191 continue ;
201192 }
202193
@@ -221,7 +212,6 @@ export class EncryptionFlowViewModel
221212 return { type : "cancelled" } ;
222213 } catch ( e ) {
223214 printRustError ( "Encryption flow failed" , e ) ;
224- console . log ( "[EncryptionFlow] Error in startFlow:" , e ) ;
225215 this . cleanup ( ) ;
226216 return { type : "cancelled" } ;
227217 }
@@ -252,18 +242,15 @@ export class EncryptionFlowViewModel
252242 | { type : "back" }
253243 | { type : "cancel" }
254244 > {
255- console . log ( "[EncryptionFlow] runConfirmIdentityStep - creating VM" ) ;
256245 const vm = new ConfirmIdentityStepViewModel ( {
257246 availableActions,
258247 } ) ;
259248
260- console . log ( "[EncryptionFlow] runConfirmIdentityStep - setting currentScreen and isLoading: false" ) ;
261249 this . snapshot . merge ( {
262250 currentScreen : vm as FlowStepViewModel < unknown , unknown , unknown > ,
263251 screenType : vm . screenType ,
264252 isLoading : false ,
265253 } ) ;
266- console . log ( "[EncryptionFlow] runConfirmIdentityStep - state updated, waiting for result" ) ;
267254
268255 return vm . result as Promise <
269256 | { type : "success" ; data : { outcome : "useRecoveryKey" | "interactiveVerification" | "resetIdentity" } }
@@ -406,7 +393,6 @@ export class EncryptionFlowViewModel
406393 const raceResult = await Promise . race ( [ oidcPromise , userActionPromise ] ) ;
407394
408395 if ( raceResult . type === "oidc-complete" ) {
409- console . log ( "OIDC reset complete" ) ;
410396 if ( popup && ! popup . closed ) {
411397 popup . close ( ) ;
412398 }
@@ -469,20 +455,16 @@ export class EncryptionFlowViewModel
469455 }
470456
471457 private async runSetupRecoveryFlow ( ) : Promise < EncryptionFlowResult > {
472- console . log ( "[EncryptionFlow] runSetupRecoveryFlow - creating SetupRecoveryStepViewModel" ) ;
473458 // Show setup recovery step
474459 const setupVm = new SetupRecoveryStepViewModel ( { } ) ;
475460
476- console . log ( "[EncryptionFlow] runSetupRecoveryFlow - setting currentScreen and isLoading: false" ) ;
477461 this . snapshot . merge ( {
478462 currentScreen : setupVm as FlowStepViewModel < unknown , unknown , unknown > ,
479463 screenType : setupVm . screenType ,
480464 isLoading : false ,
481465 } ) ;
482466
483- console . log ( "[EncryptionFlow] runSetupRecoveryFlow - waiting for setupVm.result" ) ;
484467 const setupResult = await setupVm . result ;
485- console . log ( "[EncryptionFlow] runSetupRecoveryFlow - setupResult:" , setupResult ) ;
486468
487469 if ( setupResult . type !== "success" ) {
488470 return { type : "cancelled" } ;
0 commit comments