Redesign reply composer

merged…
osebo41d ago

Do a few iterations and see the image attached

IMG_8519.png
IMG_8519.png
4 repliesoldestnewest
Osebotfable-5-141d ago

Read the screenshot (iPhone, dark, open reply form on a thread). What's wrong with the composer today, as I see it:

  • The toolbar under the textarea wraps into three uneven rows at 390px: [☑ Ask Claude] [+ Image] [fable 5.1] / [Kind auto] / [POST & RUN] [CANCEL]. Four different control languages on one row (checkbox + label, dashed button, filled select, bare "Kind" word + select).
  • The placeholder is two lines of 16px serif prose, so the empty field already looks busy.
  • The textarea is a 10px-radius well with a 1px focus ring while every control under it is a 6px flat fill; the field and its toolbar don't read as one thing.
  • /threads/new already solved half of this (one .run-chip with Ask Claude | model, model only while ticked); the reply composer never got that pass.

Plan, "a few iterations" literally:

  1. Build a static mockup of the open composer that links the real app/globals.css (no DB in the sandbox) and screenshot it at 390px dark + light and ~760px.
  2. Iterate the design in that mockup, 3 rounds, posting a side-by-side after each so you can steer:
    • R1 (tidy): port the new-thread toolbar: one run chip [Ask Claude | model], "+ Image" and Kind as the same quiet mono chips, short one-line placeholder, Post & run / Cancel group unchanged.
    • R2 (one panel): textarea and toolbar become one panel: borderless text on top, a bottom bar with the chips left and Post / Cancel right, like a chat composer. Kind folded into the run chip (it's a triage hint).
    • R3 (edit from feedback / pick): whichever reads best, refined for the phone case (Post & run stays a wide left-aligned thumb target, Cancel beside it, per the earlier decisions).
  3. Implement the winner in components/composer.tsx + app/globals.css (and keep /threads/new consistent where the same classes are shared), commit and push.

Not changing: behaviour (sticky Ask Claude/model in localStorage, paste-to-upload, guest mode, Stop/Top in the collapsed dock), or the Post & run glyph.

Osebotfable-5-141d ago

Three iterations in a static mockup (real app/globals.css, 390px phone frames, dark and light; the three boards are attached):

  • r0 reproduces your screenshot: three ragged rows of mismatched controls.
  • r1 (port of the /threads/new toolbar, not in the board) only changed the row contents; at 390px it still wraps into three rows because [Ask Claude | model], a Kind chip and "+ Image" don't fit on one line.
  • r2: textarea + toolbar become one panel (the 5% ink fill, 10px radius, focus ring on the whole panel). Kind moves inside the run chip. Reads as one object, but "+ Image" still ends up alone on a row.
  • r3b, the pick: r2 plus
    • Kind lives in the run chip and only shows while Ask Claude is ticked (it's just an override of the decider's triage label, lib/data.ts addHumanPost), so the unticked state is a single "Ask Claude" chip and a plain Post button.
    • the image control is a chip with a small image glyph; ≤560px it drops its "Image" label so the chips fit one row.
    • the bar is two deliberate rows on phones (chips, then a wide left-aligned Post & run with Cancel beside it, per thread/4f9142c7 and thread/aebe948e) and a single row ≥561px.
    • placeholder is one line, "Reply in the thread."; the extra guidance moves to a title on the run chip.

Implementing r3b in components/composer.tsx + app/globals.css now. The /threads/new form keeps its own card layout but will share the chip rules so the two toolbars match.

390px dark: r0 = today, r2 = one-panel, r3b = panel + Kind in run chip + icon image chip (ticked / unticked)
390px dark: r0 = today, r2 = one-panel, r3b = panel + Kind in run chip + icon image chip (ticked / unticked)
390px light: same four variants
390px light: same four variants
760px dark: r3 ticked / unticked, the bar is a single row
760px dark: r3 ticked / unticked, the bar is a single row
Osebotfable-5-141d agothreadide@baf3916

Shipped r3b on thread/7a55a291 (baf3916), pushed. Attached: the shipped CSS at 390px dark (ticked / unticked / guest), 760px light, and the /threads/new toolbar which shares the chip rules.

What changed

  • components/composer.tsx: the open form is one panel (form.compose.compose-panel): borderless textarea on top, then .compose-bar = .compose-tools (run chip, image chip, guest name field) + .compose-actions (Post / Post & run, Cancel). The run chip is [Ask Claude | model | kind]; model and kind only render while the box is ticked, so the unticked state is a single chip and a plain Post. Placeholders are one line each; the "tick Ask Claude if you want a run" guidance is now a title on the chip. kind is only sent when Ask Claude is on.
  • app/globals.css: .run-chip rules are no longer scoped to .new-thread; new "reply composer panel" block (fill + :focus-within ring on the whole panel, chips on --bg, phone rules: actions take a second full row with Post stretched and left-aligned, Cancel beside it; image chip drops its label ≤560px). .attach-btn lost the dashed frame and is a plain fill chip.
  • components/attach-images.tsx: image glyph + span.attach-label (+ .uploading so "Uploading…" stays visible on phones).
  • components/pulp-icons.tsx: own "image" glyph (frame, two mountains, sun; reads at 16px).

Decisions you may want to veto

  • Kind only shows inside a ticked run chip. It is an override of the decider's triage label, so on a plain reply the decider labels the post as before. If you want Kind back for non-run replies, it's a one-line change in the composer (drop the askClaude && guard) and it will sit as a third select in the chip.
  • The image chip is icon-only on phones. If that's too hidden, un-hiding the label costs one row on 390px when Ask Claude is ticked.

Verified: npm run typecheck; mockups linking the real globals.css at 390/760px, dark and light. Not verified on a real iPhone (no WebKit here); the chip reuses the same native checkbox/select elements /threads/new already renders.

Iterations rejected along the way (so nobody re-tries them): r1 = port the new-thread row as-is (still 3 rows at 390px); r2 = panel with "+ Image" as a labelled chip (the chip alone on its own row).

Shipped CSS at 390px dark: ticked, unticked, guest
Shipped CSS at 390px dark: ticked, unticked, guest
Shipped CSS at 760px light: single-row bar, ticked / unticked
Shipped CSS at 760px light: single-row bar, ticked / unticked
/threads/new toolbar with the shared run chip and image chip (390px dark, 760px light)
/threads/new toolbar with the shared run chip and image chip (390px dark, 760px light)
Osebot41d ago

Merged threadide #113 by @osebo (merge, c16770f).