New thread Composer redesign

merged…
osebo42d ago

Please do a few iterations of this - see the image

IMG_8506.jpeg
IMG_8506.jpeg
7 repliesoldestnewest
Osebotfable-5-142d ago

Looking at the screenshot (phone, dark, the /threads/new form): the parts that read as rough are the long title placeholder that gets cut off ("…when this thre"), the Ask Claude line that mixes a checkbox, an em-dash hint and the dashed "+ IMAGE" button on one row, and a second row with the model picker next to POST & RUN that doesn't line up with anything above it. The hairline card frame also makes the form feel like a box inside a box.

Plan:

  1. Build three static mockups of the form (real app/globals.css + the same markup the component renders) and screenshot each at 390px dark, so you can compare them side by side in the thread:
    • A, tidy: same structure, fixed hierarchy. Short title placeholder, hint moves under the field, Ask Claude + model + image on one toolbar, one primary button.
    • B, document: drop the card frame. Title becomes a large serif line (hairline underneath), body is a plain field, every control lives in a single bottom bar.
    • C, run switch: the Ask Claude checkbox + model select become one segmented "Discussion | Run with Claude · model" control, so what the thread will do is one decision, not two.
  2. Implement the strongest one in components/new-thread-form.tsx + app/globals.css (and AttachImages if its button changes), keeping behaviour (workspace fallback, localStorage model, paste-to-attach, open-workspace note) intact.
  3. Post before/after shots at 390px and desktop, light and dark; you can say "use B instead" and I'll switch, the mockups make that cheap.

Also fixing while in there: the "— queues a run now" hint uses an em dash, which the copy rules say not to.

Osebotfable-5-142d ago

Four iterations of the New thread form, as static mockups on the real app/globals.css (390px dark, same as your screenshot; two of them at 1000px light too). Screenshots attached, in order: baseline, A, B, C, D, D desktop, B desktop.

What changed across all of them

  • Title placeholder is "What should be true when this is done?", short enough to fit at 390px; the body placeholder is just "Describe the task."
  • The explanation ("Claude sees the task, every repo in Ben's World, related threads and the workspace's memory notes") moves out of the placeholder into a hint line that names the actual workspace, so it survives once you start typing.
  • One toolbar: Ask Claude, model, + Image on the left, Post & run on the right (full width on phones, as the reply composer already does). No more orphan second row.
  • "— queues a run now" loses the em dash (copy rule) and becomes the lead of the hint: "Queues a run now."
  • "+ Image" is sentence case sans, like the other toolbar items, and uses a plain "+" (the current fullwidth + is a font-dependent glyph).

A, tidy. Same card, WORKSPACE as a mono kicker next to a proper chevron select, everything else as above. Lowest risk.

B, document. Drops the card and the "New thread" heading: a crumb line Threads / Ben's World ▾ / new thread, the title is a 28px serif line with a hairline under it, the body is a bare field, controls sit on a hairline-topped bar. Reads like you're writing the thread page itself. Downsides: on dark the bare fields are harder to see as inputs, and the title must be short ("Thread title") because 28px serif only fits ~25 characters on a phone.

C, run switch. The checkbox becomes a Run with Claude | Discussion segment. Clear, but it is wide enough to push the model picker onto its own row on phones, so the footer grows to four rows.

D, chip. A, with the model picker folded into the Ask Claude control as one filled chip: ☑ Ask Claude | fable 5.1 ▾. Unticking Ask Claude hides the model half, so a discussion thread shows a plain checkbox. Two controls become one, and the model reads as a property of the run rather than a stray dropdown.

I'm implementing D now (A's structure with the chip). B is the one I'd keep as the alternative if you want a bolder change; say so and I'll switch, the mockups make that a small job.

Baseline: current form reproduced at 390px dark (matches the owner's screenshot)
Baseline: current form reproduced at 390px dark (matches the owner's screenshot)
Iteration A, tidy: workspace kicker, short placeholders, one toolbar, hint under the button
Iteration A, tidy: workspace kicker, short placeholders, one toolbar, hint under the button
Iteration B, document: no card, crumbs with the workspace picker, bare title/body fields
Iteration B, document: no card, crumbs with the workspace picker, bare title/body fields
Iteration C, run switch: "Run with Claude | Discussion" segment instead of the checkbox
Iteration C, run switch: "Run with Claude | Discussion" segment instead of the checkbox
Iteration D, chip: A plus the model picker folded into the Ask Claude control
Iteration D, chip: A plus the model picker folded into the Ask Claude control
Iteration D at 1000px, light
Iteration D at 1000px, light
Iteration B at 1000px, light
Iteration B at 1000px, light
Osebotfable-5-142d agothreadide@9f4e728

Implemented iteration D on thread/484fdc9d (commit 9f4e728). Screenshots attached are the real component markup rendered against the committed app/globals.css: ticked, unticked, no-workspace, with attachments + an error, desktop dark, and phone light.

What landed

  • components/new-thread-form.tsx: WORKSPACE mono kicker beside a chevron select (.ws-select, fills the row on phones). Title placeholder "What should be true when this is done?", body "Describe the task." / "What do you want to discuss?". One toolbar: [☑ Ask Claude | fable 5.1 ▾] chip, + Image, Post & run (full width on phones, right-aligned on desktop). The model select only renders while Ask Claude is ticked. Under it, a p.compose-hint that says what posting does and names the workspace, with four variants: queues a run / just a discussion / general discussion (no workspace) / open workspace where you're not a member. Errors now use the existing .compose-error red line instead of replacing the hint text.
  • app/globals.css: the .new-thread block (field, kicker, chip, hint, phone rule). .attach-btn left the shared mono-uppercase list and is 13px sans; this also changes the thread-page composer's "+ Image" button, on purpose, so both composers match.
  • components/attach-images.tsx: plain "+" instead of the fullwidth "+" glyph (font-dependent; it rendered as a box in the sandbox's fonts).
  • Copy: "None (general discussion)" and the hint lose their em dashes.

Not changed: submit logic, workspace default fallback, localStorage model, paste-to-attach, the (open) suffix on open workspaces, and the thread-page reply composer (apart from the "+ Image" label). The hint sentence for the open-workspace case replaces the old textarea placeholder that said the same thing.

Verified: npm run typecheck passes; the app can't run here (needs Postgres + OAuth), so the checks are the static renders above. Worth a real-browser glance: the model select appears after the client reads localStorage, same as before, just now inside the chip.

If you'd rather have B (card-less, crumbs + big serif title) say so and I'll swap it in; the mockup is already built.

Final markup on the committed CSS, 390px dark: Ask Claude ticked
Final markup on the committed CSS, 390px dark: Ask Claude ticked
Ask Claude unticked: model half of the chip disappears, button says Post thread
Ask Claude unticked: model half of the chip disappears, button says Post thread
No workspace (general discussion): no chip, hint explains why
No workspace (general discussion): no chip, hint explains why
With two attached images and a server error line
With two attached images and a server error line
1100px dark: toolbar on one line, Post & run right-aligned
1100px dark: toolbar on one line, Post & run right-aligned
390px light
390px light
oseboasked Osebot42d ago

I like this direction, also remove the text under the post and run button

IMG_8507.png
IMG_8507.png
Osebotfable-5-142d ago

Removing the hint paragraph under Post & run (p.compose-hint in components/new-thread-form.tsx, plus its CSS in app/globals.css). Everything else from iteration D stays. The error line (p.compose-error) stays too, since it only appears when a submit fails.

Osebotfable-5-142d agothreadide@80fdadf

Removed the text under Post & run. Commit 80fdadf on thread/484fdc9d, pushed.

Changed

  • components/new-thread-form.tsx: the hint block and <p className="compose-hint"> are gone. The toolbar is now the last thing in the card; only the red compose-error line can appear below it, and only when a submit fails.
  • app/globals.css: dropped the two .new-thread .compose-hint rules and updated the block comment.

Everything else from iteration D stays (workspace kicker, short placeholders, the Ask Claude | model chip, + Image, full-width Post on phones). npm run typecheck passes. Screenshots attached are the component's markup on the committed CSS at 390px dark and 1100px light.

One side effect worth knowing: the explanation of what posting does (run queued now / discussion only / no Claude in general threads / open workspace, members only) no longer appears anywhere on the form. If that turns out to matter, the natural home would be a title tooltip on the Ask Claude chip rather than visible text.

390px dark: the toolbar is now the last thing in the card, no hint under Post & run
390px dark: the toolbar is now the last thing in the card, no hint under Post & run
1100px light: same form, Post & run right-aligned, nothing below it
1100px light: same form, Post & run right-aligned, nothing below it
Osebot42d ago

Merged threadide #100 by @osebo (merge, b28c1e4).