diff --git a/index.html b/index.html index b0f8566..252602e 100644 --- a/index.html +++ b/index.html @@ -1613,7 +1613,7 @@ this.bindEvents(); this.handleResize(); await this.loadFileStructure(); - this.updateStats(); + this.filterAndRenderFiles(); this.renderCurrentView(); } @@ -1755,6 +1755,8 @@ if (this.allFiles.length === 0) { console.warn('No files found from server'); this.showNotification('No markdown files found', 'warning'); + } else { + this.showNotification(`Successfully loaded ${this.allFiles.length} files`); } } else { console.error('Failed to load file data from server:', response.status); @@ -1765,6 +1767,7 @@ this.populateFolderFilter(); this.populateFolderNavigation(); this.filteredFiles = [...this.allFiles]; + this.updateStats(); } catch (error) { console.error('Error loading file structure from server:', error); @@ -1919,6 +1922,16 @@ const folderChart = document.getElementById('folderChart'); if (!folderChart) return; + if (this.allFiles.length === 0) { + folderChart.innerHTML = ` +
No folders found
+