We can remove the workspace picker from the composer, and reposition image selection
We can remove the workspace picker from the composer, and reposition image…
Plan:
- Drop the workspace
<select>from the home composer (components/thread-composer.tsx). Since thread/1ebcdee1 you are always in one workspace (header dropdown + cookie), so the composer posts to the header's workspace and no longer needs its own picker. If you can't post in the current workspace (viewer, not open), the page shows a short note instead of the form. - Reposition the image button: move it from the far left of the toolbar to sit after the Ask Claude chip, matching the reply composer's order ([Ask Claude | model] [image] … [Post & run]), and drop the thread-composer-only round-glyph override so it's the same chip in both composers.
- Clean up the now-dead
.workspace-selectCSS, update the comments, run tsc/lint, and attach a mockup screenshot.
threadide@8c50384Done on thread/e27c4e06 (threadide 8c50384), pushed.
What changed
- Workspace picker removed from the home composer (
components/thread-composer.tsx). It now takes oneworkspaceprop and posts into the header's workspace (the dropdown is the only source of "which workspace" since #119).app/page.tsxcomputescanPostfor that workspace (member, or open) and shows the existing note instead of the form when you can't post there; the note now also says to pick another workspace in the header. - Image button repositioned: it moves from the far left to sit after the Ask Claude | model chip, the same order as the reply composer, and uses the same plain
.attach-btnchip (the thread-composer-only round-glyph override is gone, along with the dead.workspace-selectCSS).
Toolbar now: [Ask Claude | model] [Image] … [Post & run]. On a 390px phone the tools fit one row with Post & run below, as before.
One assumption to flag: "reposition" didn't say where. I chose "after Ask Claude, matching the reply composer". If you'd rather have it next to Post & run on the right, that's a one-line move of <AttachImages> into .compose-actions; say so and I'll do it.
Verified: tsc --noEmit clean; before/after screenshots attached are the real component rendered via react-dom/server against app/globals.css (the app can't run in the sandbox). The faded Post & run in the shots is just its disabled state with an empty body.
Diff · 3 files
diff --git a/threadide/components/thread-composer.tsx b/threadide/components/thread-composer.tsx
--- a/threadide/components/thread-composer.tsx
+++ b/threadide/components/thread-composer.tsx
@@
-export type WorkspaceOption = { id: string; name: string; aliases: string[]; canAskClaude?: boolean };
+export type ComposerWorkspace = { id: string; name: string; canAskClaude: boolean };
@@
-export function ThreadComposer({ workspaces, initialWorkspaceId }: { workspaces: WorkspaceOption[]; initialWorkspaceId?: string }) {
+export function ThreadComposer({ workspace }: { workspace: ComposerWorkspace }) {
const router = useRouter();
- const [workspaceId, setWorkspaceId] = useState(workspaces.find((w) => w.id === initialWorkspaceId)?.id ?? (workspaces.find((w) => w.canAskClaude !== false) ?? workspaces[0])?.id ?? "");
- const picked = workspaces.find((w) => w.id === workspaceId);
- const canRun = picked !== undefined && picked.canAskClaude !== false;
+ const canRun = workspace.canAskClaude;
@@
- workspaceId,
+ workspaceId: workspace.id,
@@
<div className="compose-tools">
- <AttachImages value={attachments} onChange={setAttachments} />
- <span className="ws-select has-value workspace-select" title="Workspace for the thread.">
- <select aria-label="Workspace" value={workspaceId} onChange={(e) => setWorkspaceId(e.target.value)}>
- {workspaces.map((w) => (
- <option key={w.id} value={w.id}>
- {w.name}
- {w.canAskClaude === false ? " (open)" : ""}
- </option>
- ))}
- </select>
- </span>
{canRun && (
<span className="run-chip">
...
</span>
)}
+ <AttachImages value={attachments} onChange={setAttachments} />
</div>
<div className="compose-actions">
- <button disabled={busy || !ready || !picked}>
+ <button disabled={busy || !ready}>
diff --git a/threadide/app/page.tsx b/threadide/app/page.tsx
--- a/threadide/app/page.tsx
+++ b/threadide/app/page.tsx
@@
- const postable = workspaces.filter((w) => w.myRole !== null || w.open).map((w) => ({ id: w.id, name: w.name, aliases: w.repos.map((r) => r.alias), canAskClaude: w.myRole !== null }));
+ const ws = workspaces.find((w) => w.id === filters.workspace)!;
+ const canPost = ws.myRole !== null || ws.open;
@@
- postable.length > 0 ? (
- <ThreadComposer workspaces={postable} initialWorkspaceId={filters.workspace} />
+ canPost ? (
+ <ThreadComposer workspace={{ id: ws.id, name: ws.name, canAskClaude: ws.myRole !== null }} />
) : (
<p className="guest-note">
- You can read {current.name}, but starting a thread needs a workspace you belong to. Ask its owner for an invite link, or{" "}
+ You can read {current.name}, but starting a thread here needs membership. Ask its owner for an invite link, pick another workspace in the header, or{" "}
diff --git a/threadide/app/globals.css b/threadide/app/globals.css
--- a/threadide/app/globals.css
+++ b/threadide/app/globals.css
@@
form.thread-composer .compose-bar { padding: 0 10px 10px; }
-form.thread-composer .attach-btn { width: 34px; padding: 0; justify-content: center; border-radius: 50%; }
-form.thread-composer .attach-btn:not(.uploading) .attach-label { display: none; }
-form.thread-composer .attach-btn.uploading { width: auto; padding: 0 12px; border-radius: var(--radius); }
-form.thread-composer .workspace-select { max-width: 220px; }
-form.thread-composer .workspace-select select { background: var(--bg); }
-form.thread-composer .workspace-select select:hover { background: var(--fill-hover); }
-form.thread-composer .workspace-select select:focus { background: var(--bg); }Merged threadide #120 by @osebo (merge, f350e8f).

![Home composer at 900px, before (top) vs after (bottom): [Ask Claude | model] [Image] … [Post & run]](https://tyrvppbgsommwt2h.public.blob.vercel-storage.com/threadide/a4e7deca-fcd66ce0f247.png)