Add a keyboard-driven project setup flow (#2097)

* feat(projects): add keyboard-driven project setup

* test(app): update add project loading assertion

* fix(projects): harden GitHub project setup
This commit is contained in:
Mohamed Boudra
2026-07-15 21:16:10 +02:00
committed by GitHub
parent 90e0a0e353
commit dfe3330ef8
52 changed files with 3851 additions and 1023 deletions
+2
View File
@@ -16,6 +16,7 @@ interface OpenOptions {
title?: string;
defaultPath?: string;
directory?: boolean;
createDirectory?: boolean;
multiple?: boolean;
filters?: Array<{ name: string; extensions: string[] }>;
}
@@ -65,6 +66,7 @@ export function registerDialogHandlers(): void {
const win = BrowserWindow.fromWebContents(event.sender);
const properties: Electron.OpenDialogOptions["properties"] = [];
if (options?.directory) properties.push("openDirectory");
if (options?.createDirectory) properties.push("createDirectory");
if (options?.multiple) properties.push("multiSelections");
if (!options?.directory) properties.push("openFile");