Add a native workspace directory picker to onboarding
Onboarding only accepted a typed workspace path, which is error-prone and diverged from the original wizard. Add a pickDirectory IPC backed by Electron's open-directory dialog and a Choose button beside the path field, so the founder can select a real folder for agent artifacts.
This commit is contained in:
1 parent
b65e059da6
commit
db679cfeb9
5 files changed
+23
-2
No files matched your search
@@ -97,6 +97,7 @@ export interface DesktopApi {
|
||||
createScheduledPost(input: CreateScheduledPostInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
setScheduledPostState(input: SetScheduledPostStateInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
importFile(input: ImportFileInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
pickDirectory(): Promise<DesktopResult<string | null>>;
|
||||
setFilePinned(input: SetFilePinnedInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
createMigrationReport(input: CreateMigrationReportInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
createRollbackSnapshot(input: CreateRollbackSnapshotInput): Promise<DesktopResult<AppSnapshot>>;
|
||||
|
||||
@@ -35,6 +35,7 @@ export const IPC_CHANNELS = {
|
||||
createScheduledPost: "agentcompany:create-scheduled-post",
|
||||
setScheduledPostState: "agentcompany:set-scheduled-post-state",
|
||||
importFile: "agentcompany:import-file",
|
||||
pickDirectory: "agentcompany:pick-directory",
|
||||
setFilePinned: "agentcompany:set-file-pinned",
|
||||
createMigrationReport: "agentcompany:create-migration-report",
|
||||
createRollbackSnapshot: "agentcompany:create-rollback-snapshot",
|
||||
|
||||
Reference in new issue
Block a user