Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(workspace): support explicit repositories across source control #11251

Closednielsb02(GitHub profile, opens in a new tab)wants to merge 9 commits intomain fromrefs/pull/11251/headopened View on GitHub

Showing 74 changed files with 62 additions and 15 deletions (loading 71).

x
0 of 74 viewed, 74 left
49 additions and 9 deletionsapps/mobile/src/features/review/ReviewSheet.tsxModified
View file
@@ -51,7 +51,7 @@
import { useEnvironmentQuery } from "../../state/query";
import { useSelectedThreadGitActions } from "../../state/use-selected-thread-git-actions";
import { useSelectedThreadGitState } from "../../state/use-selected-thread-git-state";
-import { useSelectedThreadWorktree } from "../../state/use-selected-thread-worktree";
+import { useWorkspaceRepositories } from "../../state/use-workspace-repositories";
import { useThreadSelection } from "../../state/use-thread-selection";
import { vcsEnvironment } from "../../state/vcs";
import { WorkspaceSidebarToolbar } from "../layout/workspace-sidebar-toolbar";
@@ -359,7 +359,7 @@
const reviewCache = useReviewCacheForThread({ environmentId, threadId });
/* ─── Git actions for the toolbar menu (commit/push without leaving review) ── */
const { selectedThread } = useThreadSelection();
- const { selectedThreadCwd } = useSelectedThreadWorktree();
+ const { selectedThreadCwd } = useWorkspaceRepositories();
const gitState = useSelectedThreadGitState();
const gitActions = useSelectedThreadGitActions();
const gitStatusQuery = useEnvironmentQuery(
@@ -382,13 +382,21 @@
useEffect(() => {
showAuxiliaryPane("inspector");
}, [environmentId, showAuxiliaryPane, threadId]);
- const { error, reviewSections, selectedSection, refreshSelectedSection, selectSection } =
- useReviewSections({
- enabled: isEnvironmentReady,
- environmentId,
- threadId,
- reviewCache,