Remove the description, one repo per line, so you can only create a title when starting a workspace.
Remove workspace repo description
I like this idea
The "one repo per line" textarea lives in CreateWorkspaceForm (components/workspace-forms.tsx). Plan: drop the textarea and the client-side URL parsing so the create form is just the name field + button; keep the API accepting repos (defaults to []) so nothing else breaks. Repos are still added afterwards on the workspace page (Add repo / Create GitHub repo), so the helper text stays "You can add repos later." Verifying with a lint/typecheck, then pushing.
threadide@0ded0edDone — creating a workspace now asks for just a title.
What changed (threadide/components/workspace-forms.tsx, commit 0ded0ed on thread/63013cb2):
- Removed the "One repo per line. Optional alias…" textarea and the
urlsstate / alias=URL parsing fromCreateWorkspaceForm. - The form posts
{ name }only; helper text under the field now reads "Add repos from the workspace page once it exists."
Left alone on purpose
POST /api/workspacesstill accepts an optionalreposarray (zod.default([])), so API callers and any existing scripts keep working; the UI just no longer sends it.- Adding repos afterwards is unchanged: the Add-repo form and Create GitHub repo button on
/workspaces/[id](owner only).
tsc --noEmit and npm run lint are clean. No DB or API changes, so nothing to migrate. Branch is pushed; PR can be opened from https://github.com/osebo/threadide/pull/new/thread/63013cb2.
Diff · 1 files
--- a/threadide/components/workspace-forms.tsx
+++ b/threadide/components/workspace-forms.tsx
@@ -6,7 +6,6 @@ import { useState } from "react";
export function CreateWorkspaceForm() {
const router = useRouter();
const [name, setName] = useState("");
- const [urls, setUrls] = useState("");
const [busy, setBusy] = useState(false);
const [error, setError] = useState<string | null>(null);
@@ -14,39 +13,23 @@ export function CreateWorkspaceForm() {
e.preventDefault();
setBusy(true);
setError(null);
- const repos = urls
- .split("\n")
- .map((l) => l.trim())
- .filter(Boolean)
- .map((l) => {
- // "alias=https://github.com/o/r.git" or just a URL
- const m = l.match(/^([a-z0-9-]+)=(.+)$/);
- return m ? { alias: m[1], cloneUrl: m[2] } : { cloneUrl: l };
- });
const res = await fetch("/api/workspaces", {
method: "POST",
headers: { "Content-Type": "application/json" },
- body: JSON.stringify({ name, repos }),
+ body: JSON.stringify({ name }),
});
setBusy(false);
if (!res.ok) return setError(await failureMessage(res));
setName("");
- setUrls("");
router.refresh();
}
return (
<form className="compose card" onSubmit={submit}>
<input placeholder="Workspace name, e.g. shoplist" value={name} onChange={(e) => setName(e.target.value)} required />
- <textarea
- placeholder={"One repo per line. Optional alias:\nweb=https://github.com/you/shoplist-web.git\napi=https://github.com/you/shoplist-api.git"}
- value={urls}
- onChange={(e) => setUrls(e.target.value)}
- style={{ minHeight: 80, fontFamily: "var(--mono)", fontSize: 13 }}
- />
<div className="row">
<span className="muted" style={{ fontSize: 13 }}>
- {error ?? "You can add or remove repos later."}
+ {error ?? "Add repos from the workspace page once it exists."}
</span>
<button disabled={busy || !name.trim()}>{busy ? "Creating…" : "Create workspace"}</button>
</div>Send a screenshot of the change
The app can't run in the sandbox (needs Postgres + GitHub OAuth), so I'll render the new CreateWorkspaceForm markup as a static mockup linked to the real app/globals.css and screenshot it with Playwright — before (name + repo textarea) vs after (name only), side by side.
Screenshots attached. The app needs Postgres + GitHub OAuth so it can't run in the sandbox; these are static renders of the exact CreateWorkspaceForm markup against the real app/globals.css (same method as earlier UI threads).
Phone (390px) — before vs after
Left = main: name field + the monospace "One repo per line…" textarea. Right = thread/63013cb2: name field, helper text "Add repos from the workspace page once it exists.", Create button.
Desktop (1000px) — after
The Create button is grey because it's disabled until a name is typed (disabled={busy || !name.trim()}, unchanged). No code changes in this step — the branch is still at 0ded0ed, ready for a PR.

