Repository navigation
Add customizable local repo creation flow - #845
Closed
sebastianbreguel wants to merge 1 commit into
Closed
sebastianbreguel wants to merge 1 commit into
sebastianbreguel wants to merge 1 commit into
Conversation
Author
Local verificationLint ( Tests (PR-scoped suites):
Full-suite run surfaced 1 flaky timeout in Self-review summary
Ready for review. |
AmethystLiang
requested review from
Jinwoo-H and
brennanb2025
and removed request for
Jinwoo-H
April 20, 2026 06:01
Contributor
|
Thx for the PR! @brennanb2025 will review it |
Contributor
|
Hi @sebastianbreguel, apologies about the delay responding here, this feature was added recently. Appreciate the PR though! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Adds a "Create local repo or folder" flow to the Add Repo dialog, so users can spin up a new project directly from Orca instead of creating the folder elsewhere and re-importing it.
What's new
repos:createLocalinsrc/main/ipc/repos.ts:/,\,.,..to prevent escaping the parent).mkdir { recursive: false }so collisions surface asEEXISTwith a clear error.git initwhenkind === 'git'; on failure, rolls back the folder (rm -rf) so state stays atomic.EEXIST,ENOENT,EACCES/EPERM.CreateLocalStepinAddRepoSteps.tsxwith kind toggle (Git repo / Folder only), name input, parent-path picker.Shift+Cmd/Ctrl+Nopens Add Repo — chosen over bareCmd+N(already owned by new-workspace composer). Wired via sharedwindow-shortcut-policy+ main-process forwarding (ui:openAddRepo).createLocal+openAddRepoevent.Design notes
git initfailure, so the filesystem never ends up half-created.isEditableTargetguard atApp.tsx:504already short-circuits shortcuts when typing in inputs — no regression.Test plan
Automated
oxlinton 17 PR files → 0 warnings, 0 errorssrc/main/ipc/repos-create-local.test.ts(new — 162 lines)src/shared/window-shortcut-policy.test.tssrc/main/window/createMainWindow.test.tssrc/main/browser/browser-manager.test.tssrc/renderer/src/hooks/useIpcEvents.test.tsManual
.git/exists and repo appears in sidebar.git/, repo still appearsShift+Cmd/Ctrl+Nopens Add Repo from the main window and while a browser tab has focusShift+Nwhile typing in an input → does NOT open the dialog