@@ -287,7 +287,7 @@ export class Client {
287287 // "sync:success" is called with a number of operations only from syncSpace(), not from syncing individual pages
288288 this . fullSyncCompleted = true ;
289289
290- console . log ( "Full sync completed" ) ;
290+ console . log ( "[sync]" , " Full sync completed") ;
291291
292292 // A full sync just completed
293293 if ( ! initialSync ) {
@@ -297,9 +297,9 @@ export class Client {
297297 ) ;
298298 } else { // initialSync
299299 console . log (
300+ "[sync]" ,
300301 "Initial sync completed, now need to do a full space index to ensure all pages are indexed using any custom indexers" ,
301302 ) ;
302- console . log ( "Enabling eventing on space primitives" ) ;
303303 this . space . spacePrimitives . enablePageEvents = true ;
304304 this . clientSystem . ensureFullIndex ( ) . catch (
305305 console . error ,
@@ -309,7 +309,7 @@ export class Client {
309309 }
310310 if ( operations ) {
311311 // Likely initial sync so let's show visually that we're synced now
312- this . showProgress ( 100 ) ;
312+ this . showProgress ( 100 , "sync" ) ;
313313 }
314314
315315 this . ui . viewDispatch ( { type : "sync-change" , syncSuccess : true } ) ;
@@ -329,6 +329,7 @@ export class Client {
329329 this . eventHook . addLocalListener ( "sync:progress" , ( status : SyncStatus ) => {
330330 this . showProgress (
331331 Math . round ( status . filesProcessed / status . totalFiles * 100 ) ,
332+ "sync" ,
332333 ) ;
333334 } ) ;
334335
@@ -825,10 +826,11 @@ export class Client {
825826 // Progress circle handling
826827 private progressTimeout ?: number ;
827828
828- showProgress ( progressPerc : number ) {
829+ showProgress ( progressPercentage ? : number , progressType ?: "sync" | "index" ) {
829830 this . ui . viewDispatch ( {
830831 type : "set-progress" ,
831- progressPerc,
832+ progressPercentage,
833+ progressType,
832834 } ) ;
833835 if ( this . progressTimeout ) {
834836 clearTimeout ( this . progressTimeout ) ;
@@ -839,7 +841,7 @@ export class Client {
839841 type : "set-progress" ,
840842 } ) ;
841843 } ,
842- 10000 ,
844+ 5000 ,
843845 ) ;
844846 }
845847
0 commit comments