Take a look at the current structure it feels quite cluttered, I’d love to do some revision of this
Redesign Threads header
Looked at the screenshot: the home "Threads" head is four stacked rows of same-grey boxes (search, Everyone|Yours + status, Titles|Last reply), so nothing has hierarchy and it reads as clutter, especially on a phone.
Plan (home page only, components/thread-browser.tsx + app/globals.css):
- Keep the title row:
Threads+ the solid New thread button. Search stays the one filled field (desktop: in the title row; phone: its own row underneath). - Collapse the two filter rows into ONE tab bar that sits directly on the thread list's top hairline:
Everyone | Yoursbecome text tabs (mono label, active = ink with a 1px underline on the hairline), no grey box.- Status becomes a bare mono label + chevron (same drawing as the Manage menu), no grey box.
Titles | Last replybecomes two small list/cards icon toggles at the right end of the bar (aria-label + title), since the text pair doesn't fit a 390px line next to the others.
- Nothing changes in behaviour: same radios/select names (
who,status,view), same URL params, same no-JS GET submit, same live fetch.
Result on a phone: title row, search, one slim tab bar, list. I'll build a before/after mockup against the real globals.css and post screenshots before pushing so we can iterate on the look.
threadide@3e44627Pushed the redesign to thread/0044340a (3e44627). Before/after mockups attached (static HTML against the real globals.css, 390px light + dark, and 1200px sidebar mode).
What changed on the home page
- The two filter rows under the search box are now ONE tab bar that sits directly on the thread list's top hairline:
Everyone | Yoursare text tabs, active = ink with a 1px underline on the hairline. No grey box.- The status select is a bare mono label with its chevron (the same drawing as the Manage menu). No grey box.
Titles | Last replyare two small list / cards icons at the right end (titletooltip +.sr-onlylabel). The text pair did not fit a 390px line next to the tabs and the status label. Only the active icon carries a small--fill-strongsquare.
- Title row + search box are unchanged: search is the only filled field left, so it reads as the main control. Phone: title, search, tab bar, list. Desktop: search in the title row, then the bar.
- Behaviour is identical: same radio/select names (
who,status,view), same URL params, same no-JS GET submit, same live fetch.form.thread-browsergetshas-tabswhenfilterable, and the list under it drops its ownborder-topso the hairline is not doubled. .segkeeps its filled look everywhere else (settings "Who can post", themes "Appearance"); only.thread-filters .who-seg/.view-segrestyle it.
Verified: tsc --noEmit clean; screenshots at 390 / 700 / 1200px in both appearances. Not verified in the running app (needs Postgres + GitHub OAuth).
Happy to iterate: if the icons feel too cryptic, a cheap alternative is to put short text (TITLES / REPLIES) in the bar on ≥561px and keep icons on phones.
Diff · 2 files
diff --git a/app/globals.css b/app/globals.css
--- a/threadide/app/globals.css
+++ b/threadide/app/globals.css
@@ -177,11 +177,8 @@
.thread-list-live.is-loading { opacity: .55; }
-/* Home-page filter row under the title: Everyone | Yours segmented toggle … */
-.thread-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 16px; }
+/* Segmented toggle (radios hidden, labels styled like vals' tab strip: mono labels on the grey fill, no frame,
+ the active one on the darker fill). Used by the settings / themes pages; the home filter bar restyles it below. */
.seg { display: inline-flex; border-radius: var(--radius); background: var(--fill); flex: 0 0 auto; }
@@ -220,12 +217,38 @@
.status-select.has-value::after { color: var(--text); }
+/* Home filter bar (components/thread-browser.tsx, `filterable`): ONE line that doubles as the thread list's top
+ rule, so the controls read as tabs on the list rather than a second row of grey boxes (thread 0044340a). … */
+.thread-filters { display: flex; align-items: center; gap: 0 14px; margin: 0; border-bottom: 1px solid var(--border); }
+.thread-filters .seg { background: none; border-radius: 0; }
+.thread-filters .who-seg { gap: 18px; margin-right: auto; }
+.thread-filters .who-seg label {
+ height: 36px; padding: 0 2px; margin-bottom: -1px; border-radius: 0; border-bottom: 1px solid transparent; color: var(--muted);
+ transition: color .15s ease-out, border-color .15s ease-out;
+}
+.thread-filters .who-seg label:hover { background: none; color: var(--text); }
+.thread-filters .who-seg label.is-on { background: none; color: var(--text); border-bottom-color: var(--text); }
+.thread-filters .status-select select { height: 28px; padding: 0 20px 0 8px; background: none; color: var(--muted); }
+.thread-filters .status-select select:hover { background: var(--fill); color: var(--text); }
+.thread-filters .status-select::after { right: 8px; color: var(--muted); }
+.thread-filters .status-select.has-value::after { color: var(--text); }
+.thread-filters .view-seg { gap: 2px; }
+.thread-filters .view-seg label { width: 28px; height: 28px; padding: 0; justify-content: center; color: var(--muted); }
+.thread-filters .view-seg label:hover { background: var(--fill); color: var(--text); }
+.thread-filters .view-seg label.is-on { background: var(--fill-strong); color: var(--text); }
+.thread-filters .view-icon { display: block; }
+form.thread-browser.has-tabs ~ .thread-list-live .card.thread-list, form.thread-browser.has-tabs ~ .card.thread-list { border-top: 0; }
+/* Visually hidden, still read by screen readers (the view icons' labels). */
+.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 560px) {
.page-head { flex-wrap: wrap; }
.thread-search { order: 1; flex: 1 1 100%; margin-left: 0; }
- /* The status dropdown fills whatever is left of the row beside Everyone | Yours. */
- .thread-filters .status-select { flex: 1 1 auto; }
}
@@ -483,17 +506,12 @@
-/* The view switch is about presentation, not which threads are shown: park it at the right end of the filter row. */
-.thread-filters .view-seg { margin-left: auto; }
@media (max-width: 560px) {
…
- /* Full-width second row under Everyone | Yours + status, each half the width. */
- .thread-filters .view-seg { margin-left: 0; flex: 1 1 100%; }
- .thread-filters .view-seg label { flex: 1 1 0; justify-content: center; }
}
diff --git a/components/thread-browser.tsx b/components/thread-browser.tsx
--- a/threadide/components/thread-browser.tsx
+++ b/threadide/components/thread-browser.tsx
@@ -1,7 +1,7 @@
-import { GENERAL_WORKSPACE, STATUS_FILTERS, type ThreadFilters } from "@/lib/workspace-filter";
+import { GENERAL_WORKSPACE, STATUS_FILTERS, type ThreadFilters, type View } from "@/lib/workspace-filter";
@@ -171,7 +173,7 @@
<form
- className={pending ? "thread-browser is-loading" : "thread-browser"}
+ className={["thread-browser", filterable && "has-tabs", pending && "is-loading"].filter(Boolean).join(" ")}
@@ -205,8 +207,8 @@
- <div className="seg" role="radiogroup" aria-label="Whose threads">
+ <div className="seg who-seg" role="radiogroup" aria-label="Whose threads">
@@ -241,9 +244,10 @@
- <label key={value} className={filters.view === value ? "is-on" : undefined}>
+ <label key={value} className={filters.view === value ? "is-on" : undefined} title={label}>
<input type="radio" name="view" … />
- {label}
+ <ViewIcon view={value} />
+ <span className="sr-only">{label}</span>
</label>
@@ -281,3 +285,27 @@
+/**
+ * The two list-view glyphs, drawn here (not Pulp, which has no list/cards icon): "titles" = three text rows,
+ * "replies" = two stacked cards. 16px grid, 1.5px round-capped strokes in currentColor. Decorative: the sibling
+ * .sr-only text carries the meaning.
+ */
+function ViewIcon({ view }: { view: View }) {
+ return (
+ <svg className="view-icon" viewBox="0 0 16 16" width="14" height="14" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round" aria-hidden="true" focusable="false">
+ {view === "titles" ? (
+ <><path d="M2.5 4h11" /><path d="M2.5 8h11" /><path d="M2.5 12h7" /></>
+ ) : (
+ <><rect x="2.25" y="2.25" width="11.5" height="4.5" rx="1.25" /><rect x="2.25" y="9.25" width="11.5" height="4.5" rx="1.25" /></>
+ )}
+ </svg>
+ );
+}threadide@3e44627Done. The home "Threads" head goes from four stacked rows of grey boxes to title + search + one tab bar on the list's hairline (Everyone | Yours tabs, bare status label, two view icons). Pushed to thread/0044340a at 3e44627, PR description written; screenshots are on the diff post above.
Two things worth a look once it's deployed:
- whether the list / cards icons for the view switch read well enough on a phone (easy swap to short text on wider screens if not),
- the active-tab underline on top of the hairline in your dark palettes from /themes, since
--textvs--bordercontrast there comes from the palette, not from this CSS.
Nice! We also may not need the everyone and yours right now
Dropping the Everyone | Yours tabs from the home tab bar. The bar keeps the status label on the left and the two view icons on the right; nothing else moves. I'll leave the ?who=mine / mine=1 plumbing in lib/workspace-filter.ts, /api/threads and listThreads untouched (it's small and harmless), so it's a UI removal only and easy to bring back.
threadide@74468b0Pushed 74468b0 on thread/0044340a: the Everyone | Yours tabs are gone from the home filter bar.
What changed
components/thread-browser.tsx: removed thewhoradiogroup. The bar is nowALL STATUSES ⌄at the left end and the two view icons at the right, nothing else.app/globals.css: dropped the.who-segtab rules;.status-selecttakes themargin-right: autothe tabs had and is nudged-8pxso its label sits flush with the title and the row text. The bar keepsmin-height: 36pxso the list doesn't creep up now that the 36px tabs are gone.- Kept on purpose:
?who=mine/mine=1inlib/workspace-filter.ts,app/page.tsxand/api/threadsstill work (and the "You haven't started…" empty copy for it), so bringing the toggle back later is a UI-only change. Say the word if you'd rather I strip that plumbing too.
Verified: tsc --noEmit clean; mockup screenshots (real globals.css) at 390px light/dark and 1200px sidebar mode attached. Not run against the live app.
threadide@74468b0Done. Everyone | Yours is gone from the home filter bar; it's now just ALL STATUSES ⌄ on the left and the two view icons on the right. Pushed as 74468b0 on thread/0044340a, PR description updated to cover both steps (tab bar + removal). Screenshots are on the diff post above.
The ?who=mine backend path still exists without a UI; happy to strip it in a follow-up if you'd rather not carry dead plumbing.
Merged threadide #108 by @osebo (merge, 108e0e3).
I also don’t think we need the post / list views
Removing the Titles | Last reply view switch from the home filter bar as well. After this the bar is just the ALL STATUSES ⌄ label on the list's hairline.
Scope: UI only. I'll drop the .view-seg icon toggle and its ViewIcon from components/thread-browser.tsx plus its CSS. The ?view=replies plumbing (parseView, ReplyCard, lastPost in /api/threads) stays as-is for now so the list still defaults to the Titles view; stripping it is a bigger cut I can do separately if you want.
threadide@edaeb31Pushed edaeb31 on thread/0044340a (branch is on top of the merged PR #108): the Titles | Last reply view switch is gone from the home filter bar.
What changed
components/thread-browser.tsx: removed the.view-segicon radiogroup and theViewIconSVG. With nothing able to flip the view client-side, the "only the view changed, don't refetch" bookkeeping (lastKey/rowsChanged) went too; the URL effect now keys on the fetch key alone.?view=repliesfrom a deep link is still carried throughreplaceStateand still renders the last-reply cards, it just has no UI any more.app/globals.css: dropped.thread-filters .view-seg*,.view-icon, the.segreset inside the bar, themargin-right: autopush (nothing to push against) and.sr-only(no other user). The bar keeps its 36pxmin-height+ hairline so the list sits where it did.- Kept on purpose:
parseView/Viewinlib/workspace-filter.ts,ReplyCard+lastPost/prsinthread-list.tsxand/api/threads. That's the bigger cut (alistThreadsextra, the batched PR query, the Merge-from-card path); say the word and I'll strip it in a follow-up.
Verified: tsc --noEmit clean; mockup screenshots against the real globals.css attached (390px light/dark, 1200px sidebar). Not run against the live app.
threadide@edaeb31Done. The view switch is gone; the home filter bar is now just ALL STATUSES ⌄ on the list's hairline. Pushed as edaeb31 on thread/0044340a (on top of the merged #108), PR description written. Screenshots are on the diff post above.
Left in place without a UI: the ?view=replies last-reply cards and the ?who=mine filter. If you want them gone for good, that's a follow-up touching thread-list.tsx (ReplyCard), lib/data.ts (lastPost extra) and /api/threads.
Merged threadide #109 by @osebo (merge, 5cf4c48).
New thread, search, and status could just be a floating tool bar
Turning the home page head into one floating toolbar: [ Search ] [ ALL STATUSES ⌄ ] [ New thread ] in a single rounded --paper panel (same drawing as the floating sidebar: fill only, no hairline, no shadow), sticky under the header so it stays reachable while the list scrolls.
- "Threads" stays as the page title above it and scrolls away; the toolbar then sits at the top of the viewport (under the 48px top bar on phones / tablets, at the sidebar's 12px inset on desktop).
- The slim
.thread-filtershairline bar from the earlier steps goes away; the list keeps its own top hairline. - Search field reads as a well inside the panel (
--surfaceon--paper), status is the same bare mono label + chevron, New thread is the same solid button. - Behaviour unchanged: same GET form, same
q/statusnames, same live fetch and URL mirroring. The workspace page's "Threads" head (search only) is untouched.
I'll check it in a mockup at 390 / 700 / 1200px in both appearances and post screenshots with the diff.
threadide@459da0ePushed 459da0e on thread/0044340a: search, status and New thread are now one floating toolbar on the home page.
What changed
components/thread-browser.tsx: withfilterablethe form itself is the toolbar (form.thread-browser.thread-toolbar) holding[ Search ] [ ALL STATUSES ⌄ ] [ New thread ]; the "Threads" title renders above it as a plain.page-headand scrolls away. The search markup is hoisted into onesearchBoxconst shared with the workspace page's layout, which is unchanged (title row + search, no sticky).app/globals.css: the.thread-filtershairline bar andhas-tabsare gone. The toolbar is drawn like the floating sidebar:--paperfill over--bg(needed,--paperis translucent and rows would show through),--radius-lg, no hairline, no shadow. It'sposition: stickywithtop= header + 8px per header mode: 56px under the 48px top bar, 81px in the 561–760px range where the header wraps to two rows (measured 73px), and the sidebar's 12px inset at ≥901px. The search field is a--surfacewell inside the panel; status is the same bare mono label; New thread is the same solid button (.thread-toolbar > ajoins the.page-head > arules). One gotcha fixed along the way: the phone rule.thread-search { order: 1 }(for the workspace page's title row) pushed the search box last in the toolbar, so the toolbar resetsorder: 0.- Behaviour unchanged: same GET form, same
q/statusnames, same live fetch, same URL mirroring,?who=mine/?view=repliesplumbing still intact without a UI.
Decisions worth knowing
- One row at every width. At 390px the search well is ~98px with the placeholder shortened to "Search"; usable, but if it feels cramped the cheap follow-up is an icon-only New thread on phones (gains ~85px). I kept the label since it's the one control you've kept through every step.
- Top, not bottom: the thread page's compose dock sits at the bottom, but a search field at the bottom edge is unusual on a list page. Flipping it is a one-line
top→bottomchange if you'd rather have it thumb-reachable.
Verified: tsc --noEmit clean; mockups against the real globals.css at 390 / 700 / 1200px, light and dark, at rest and scrolled (toolbar top measured at 56 / 81 / 12px when stuck). Not run against the live app. Worth a check on your phone: iOS sticky behaviour once the keyboard opens for the search field.
threadide@459da0eDone. The home page head is now one floating toolbar, [ Search ] [ ALL STATUSES ⌄ ] [ New thread ], in a rounded --paper panel that sticks under the header while the list scrolls; "Threads" stays as the title above it. Pushed as 459da0e on thread/0044340a, PR description written. Before/after and scrolled screenshots are on the diff post above.
Two knobs if the first real-phone look says so:
- icon-only New thread on ≤560px to widen the search well (currently ~98px at 390px),
- bottom dock instead of top (one-line
top→bottomchange) if you'd rather have it thumb-reachable like the thread page's Reply bar.














