Enhance file operations and UI consistency across modals and notifications and fixed bugs#91
Enhance file operations and UI consistency across modals and notifications and fixed bugs#91rkvishwa merged 11 commits intodevelopmentfrom
Conversation
Enhance file operations and UI consistency in file tree
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Comment Tip You can get early access to new features in CodeRabbit.Enable the |
Exam-IDEProject ID: Sites (1)
Tip Global CDN and DDoS protection come free with every Sites deployment |

This pull request introduces several enhancements and new features to workspace management, admin controls, and UI improvements. The most significant changes are the addition of workspace statistics gathering, a global admin setting to block non-empty workspaces, improved activity log reporting, and updates to the editor and preview panels for a better user experience.
Workspace statistics and admin controls:
Added a new IPC handler (
FS_GET_WORKSPACE_STATS) insrc/main/ipcHandlers.tsto scan a workspace folder and return statistics such as total files, folders, and file authorship (npm, composer, user).Introduced admin settings for blocking non-empty workspaces, including new state variables, toggle handlers, and UI elements in
AdminSettingsModal.tsx. This allows admins to prevent users from opening folders that already contain files.Extended preload API to expose
getWorkspaceStatsfor renderer access.Activity log and reporting improvements:
Enhanced activity log reporting in
ReportModal.tsxby adding a custom renderer for workspace statistics, parsing and displaying file/folder counts and authorship in a user-friendly format.Added a new event type
workspace_openedto activity logs for better tracking of workspace access.Editor and preview panel UI/UX improvements:
Updated the editor panel to show a refined "Folder Opened" welcome screen with improved styling and iconography when no files are open.
Improved preview panel behavior: now follows the last active file, and HTML files are opened with the correct relative URL for live preview.
Added
lastActiveFilePathprop toEditorPanelandPreviewPanelfor better file tracking and preview accuracy.These changes collectively improve workspace management, admin control, activity visibility, and the user experience in the editor and preview panels.