Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(web): show each worktree setup step and let users cancel it #11372

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 11 commits intomain fromrefs/pull/11372/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 24 changed files with 5 additions and 2 deletions (loading 22).

x
0 of 24 viewed, 24 left
2 additions and 0 deletionsapps/server/src/auth/RpcAuthorization.tsModified
View file
@@ -111,6 +111,8 @@
[WS_METHODS.attachmentsDelete]: AuthOrchestrationOperateScope,
[WS_METHODS.providerUploadFeedback]: AuthOrchestrationOperateScope,
[WS_METHODS.subscribeVcsStatus]: AuthOrchestrationReadScope,
+ [WS_METHODS.subscribeWorktreeSetup]: AuthOrchestrationReadScope,
+ [WS_METHODS.worktreeSetupCancel]: AuthOrchestrationOperateScope,
[WS_METHODS.subscribeResourceTelemetry]: AuthOrchestrationReadScope,
[WS_METHODS.vcsRefreshStatus]: AuthOrchestrationReadScope,
[WS_METHODS.vcsPull]: AuthOrchestrationOperateScope,
3 additions and 2 deletionsapps/server/src/git/GitWorkflowService.tsModified
View file
@@ -69,6 +69,7 @@
) => Effect.Effect<VcsListRefsResult, GitCommandError>;
readonly createWorktree: (
input: VcsCreateWorktreeInput,
+ options?: GitVcsDriver.CreateWorktreeOptions,
) => Effect.Effect<VcsCreateWorktreeResult, GitCommandError>;
readonly fetchRemote: (input: {
readonly cwd: string;
@@ -338,9 +339,9 @@
isGitRepository ? git.listRefs(input) : Effect.succeed(nonRepositoryListRefs()),
- createWorktree: (input) =>
+ createWorktree: (input, options) =>
ensureGitCommand("GitWorkflowService.createWorktree", input.cwd).pipe(
- Effect.andThen(git.createWorktree(input)),