-
setWorkspaceName(e.target.value)}
- placeholder="Workspace name"
- />
-
setWorkspaceCwd(e.target.value)}
- placeholder="/absolute/path/to/workspace"
- />
-
setWorkspaceRepoUrl(e.target.value)}
- placeholder="Repo URL (optional)"
- />
+
+
+ {workspaceMode === "local" && (
+
+
setWorkspaceCwd(e.target.value)}
+ placeholder="/absolute/path/to/workspace"
+ />
+
+
+
+
+
+ )}
+ {workspaceMode === "repo" && (
+
+
setWorkspaceRepoUrl(e.target.value)}
+ placeholder="https://github.com/org/repo"
+ />
+
+
+
+
+
+ )}
+ {workspaceError && (
+
{workspaceError}
+ )}
+ {createWorkspace.isError && (
+
Failed to save workspace.
+ )}
+ {removeWorkspace.isError && (
+
Failed to delete workspace.
+ )}
diff --git a/ui/src/components/Sidebar.tsx b/ui/src/components/Sidebar.tsx
index 1372f55e..7c65d576 100644
--- a/ui/src/components/Sidebar.tsx
+++ b/ui/src/components/Sidebar.tsx
@@ -43,7 +43,7 @@ export function Sidebar() {
}
return (
-