feat(electron): implement inline metadata editing with save options modal

- Remove Edit button from header, add pencil icons next to editable fields
- Add inline editing for Version, Author, and Comment metadata fields
- Implement save options modal with overwrite/save-as-new functionality
- Add file dialog integration for save-as-new option
- Fix backend MANIFEST_FILENAME error by using correct string literals
- Add CSS styling for editable fields and save options modal
- Clean up debug logging code

BREAKING CHANGE: Edit button removed from UI in favor of inline editing
This commit is contained in:
2025-08-09 20:16:07 -04:00
parent 15c9755611
commit 45de795920
5 changed files with 397 additions and 10 deletions

View File

@@ -297,3 +297,19 @@ ipcMain.handle('open-bundle', async (event, bundlePath) => {
// Return error as-is since it's already in the correct format
return result || { success: false, error: 'An unknown error occurred while opening the bundle.' };
});
// Handle show save dialog
ipcMain.handle('show-save-dialog', async (event, options) => {
const result = await dialog.showSaveDialog(BrowserWindow.fromWebContents(event.sender), options);
return result;
});
// Handle file copying
ipcMain.handle('copy-file', async (event, { source, destination }) => {
try {
await fs.copy(source, destination);
return { success: true };
} catch (error) {
return { success: false, error: error.message };
}
});