@@ -169,24 +169,31 @@ class EngineScriptDashboard {
169169 */
170170 async loadExternalServices ( ) {
171171 try {
172+ console . log ( '[Dashboard] Loading external services (lazy load triggered)' ) ;
173+
172174 // If already loaded, just initialize
173175 if ( this . externalServices ) {
176+ console . log ( '[Dashboard] External services already loaded, reinitializing...' ) ;
174177 await this . externalServices . init ( ) ;
175178 return ;
176179 }
177180
181+ console . log ( '[Dashboard] Importing external services module...' ) ;
178182 // Dynamic import - only loads when needed
179183 const { ExternalServicesManager } = await import ( './external-services/external-services.js?v=2025.11.14.01' ) ;
180184
185+ console . log ( '[Dashboard] Creating ExternalServicesManager instance...' ) ;
181186 // Create instance and initialize
182187 this . externalServices = new ExternalServicesManager (
183188 '#external-services-grid' ,
184189 '#external-services-settings'
185190 ) ;
186191
192+ console . log ( '[Dashboard] Initializing external services...' ) ;
187193 await this . externalServices . init ( ) ;
194+ console . log ( '[Dashboard] External services loaded successfully' ) ;
188195 } catch ( error ) {
189- console . error ( 'Failed to load external services:' , error ) ;
196+ console . error ( '[Dashboard] Failed to load external services:' , error ) ;
190197 this . showError ( 'Failed to load external services. Please try again.' ) ;
191198 }
192199 }
@@ -301,10 +308,14 @@ class EngineScriptDashboard {
301308 }
302309
303310 refreshData ( ) {
311+ // Log current page being refreshed
312+ const currentPage = this . state . getCurrentPage ( ) ;
313+ console . log ( '[Dashboard] Auto-refresh triggered for page:' , currentPage ) ;
314+
304315 // Clear service cache on manual refresh
305316 this . state . clearServiceCache ( ) ;
306317 this . showRefreshAnimation ( ) ;
307- this . loadPageData ( this . state . getCurrentPage ( ) ) ;
318+ this . loadPageData ( currentPage ) ;
308319 this . updateLastRefresh ( ) ;
309320 }
310321
0 commit comments