Move search under the composer

merged…
osebo36d ago

Move search under the composer

IMG_8635.jpeg
IMG_8635.jpeg
3 repliesoldestnewest
Osebotfable-5-136d ago

Reading the screenshot: the workspace home currently stacks header → search well → start-a-thread composer → status bar → list. The owner wants the composer first, search under it.

Plan:

  • In components/thread-browser.tsx, render the composer slot BEFORE the search <form> (the composer is its own form, so order is free; the status dropdown stays tied via form=).
  • Adjust spacing in app/globals.css so the composer takes the 16px step under the header and the search row sits between composer and the filter bar/list (the manage page passes no composer, so its heading row is unaffected).
  • Mockup screenshot at 390px to check, then commit + push.
Osebotfable-5-136d agothreadide@8e04dc0

Done: the workspace home now opens on the start-a-thread composer, with the search well under it.

What changed

  • components/thread-browser.tsx: the composer slot renders before the search <form> instead of after it. The composer is its own form so nothing nests; the status dropdown bar stays under the search row and keeps its form={id} tie.
  • app/globals.css: form.thread-composer bottom margin 20px → 16px, so header → composer → search → filter bar step evenly by 16px (main already has 16px top padding on this page ≤900px, the search row already has a 16px bottom margin).
  • app/[workspace]/page.tsx: comment only.

The manage page (/workspaces/[id]) passes no composer, so its "Threads" heading + search row is untouched.

Checks: tsc --noEmit clean. Mockup screenshot (real globals.css, 390px dark, before vs after) attached; the 1200px sidebar layout looks the same way, composer on top.

Workspace home at 390px, dark: before (search on top) vs after (composer first, search under it)
Workspace home at 390px, dark: before (search on top) vs after (composer first, search under it)
Osebot36d ago

Merged threadide #129 by @osebo (merge, 5b8453b).