Can we explore a new entry point for posting that doesn’t have the composer…

merged…
osebo28d ago

Can we explore a new entry point for posting that doesn’t have the composer immediately open and has people choose between short and long post

8 repliesoldestnewest
Osebotfable-5-128d ago

Exploring a closed-by-default entry point on the workspace home (/<slug>), replacing the always-open quick box.

Plan:

  1. Mock up 2–3 variants as static HTML on the real globals.css and screenshot them at 390px and 900px so you can compare:
    • A. Launcher row: where the quick box sits, a slim row "Start a thread" with two choices, Short post (unfolds the quick box in place, autofocus, Cancel folds it back) and Long post (goes to /<slug>/write). Same shape as the thread page's collapsed Reply dock.
    • B. Two choice cards: side-by-side panels, each with a glyph, a name and one line on what it is for (short: a question, a note, a task for Osebot, title derived; long: your own title, full editor, preview, draft kept).
    • C. One "New thread" button that opens a small menu with the two choices (like the "…" thread menu).
  2. Implement the one that reads best as the default on this branch (leaning A: it is the smallest change, matches the collapsed reply dock, and keeps the quick box's form intact), with guests getting only the short choice (the write page is signed-in only).
  3. Screenshots of the real component, then a diff post.
Osebotfable-5-128d agothreadide@253b3d6

Explored three closed-by-default entry points as mockups, then implemented the launcher row (A) on the branch.

Mockups at 390px: today's always-open box, A launcher row, B two cards, C one button + menu

The three options

  • A. Launcher row (implemented): where the box was, one row on the composer's fill: "Start a thread" at the left, Short post and Long post chips at the right. Short unfolds the quick box in place; Long goes to /<slug>/write. Smallest change, same shape as the thread page's collapsed Reply dock.
  • B. Two cards: side-by-side panels with a line each on what the kind is for. Clearer for a first-time visitor, but it is the tallest thing on the page every visit and the explanation is only needed once (A keeps the same text as hover titles).
  • C. One "New thread" button + menu: compact, but the choice is hidden behind a click, so posting is always two taps; it also reads like the per-thread "…" menu.

B and C are only mockups (/tmp/mock, not committed); switching is a small change to thread-composer.tsx + the CSS block if you prefer one of them.

What A does on the branch

Implemented (real CSS), 390px: closed launcher row, and the box unfolded after Short post with Cancel beside Post & run

  • components/thread-composer.tsx: new open state (false by default). Closed = div.thread-launch with the prompt and the two choices. Short post opens the box and focuses the textarea; Long post is a Link to /<slug>/write. Open = the existing form plus a Cancel button next to Post & run (same button.compose-cancel as the reply composer); Escape in the textarea also folds it. The draft (body, images, tag) stays in state while folded and the row then says "Draft kept", like the reply dock.
  • The Write chip in the open box's tools row is removed: the long/short choice is now made before the box opens, so it would be a second way to the same page.
  • Guests (no write page) get a single "New post" choice instead of Short/Long.
  • app/globals.css: .thread-launch block after the form.thread-composer rules; button.launch-choice / a.launch-choice are --bg chips with the secondary glass finish (added to the DialKit selector lists). ≤560px the prompt takes the first line and the two chips split the second.
  • Comments in app/[workspace]/page.tsx, app/[workspace]/write/page.tsx and the long-form CSS block updated (they referred to the Write chip).

Implemented, 900px dark: launcher row above the search well

Verified: npx tsc --noEmit clean; screenshots are static mockups of the component's markup on the real app/globals.css (the app needs Postgres + OAuth, so not the running page). Not verified in a browser: the focus-on-open and Escape handling (same code as components/composer.tsx).

Open questions for you:

  1. Should the launcher remember "open" across page loads (e.g. stay open after Cancel until the page is left)? Currently every visit starts closed.
  2. Wording: "Short post" / "Long post" as asked; alternatives would be "Quick post" / "Write a post".
Osebotfable-5-128d agothreadide@253b3d6

Done. Branch thread/0995c590 (commit 253b3d6) replaces the always-open quick box on the workspace home with a closed launcher row: Short post unfolds the box in place (Cancel/Escape fold it back, draft kept), Long post goes to /<slug>/write. The Write chip inside the box is gone; guests get a single "New post" choice. Mockups of the two other variants (cards, button + menu) are in the diff post above if you would rather go that way.

Typecheck is clean; layout verified on the real CSS at 390/900px, light and dark. Two open questions in the diff post: whether the box should stay open across visits, and the wording of the two choices.

oseboasked Osebot28d ago

It could be a floating button that says post like this
IMG_8829.jpeg

Osebotfable-5-128d ago

Reference understood: Gmail's floating "Compose" pill (pencil glyph + word) pinned bottom right over the list. Replacing the launcher row on the branch with that:

  1. Floating "Post" button on the workspace home: fixed bottom right, pencil glyph + "Post", drawn like the primary button (solid accent, --radius-lg corners, the lift shadow). Lives in components/thread-composer.tsx in place of the .thread-launch row, so the page above the search well no longer carries any composer when closed.
  2. Tap → the short/long choice as a small popover above the button (same drawing as the thread "…" menu): Short post and Long post (→ /<slug>/write). Guests have no write page, so their "Post" opens the box straight away.
  3. Short post opens the quick box as a bottom dock (the thread page's reply dock pattern) instead of jumping back to the top of the list; Cancel / Escape fold it, draft kept, the button comes back.
  4. Screenshots at 390 and 900px, light and dark, then a diff post.
Osebotfable-5-128d agothreadide@f15110d

Done as a floating button, after the Gmail reference. Commit f15110d on thread/0995c590 replaces the launcher row from the previous step.

390px, real CSS: closed (floating Post), the Short / Long menu, and the short post as a bottom sheet

What it does

  • Closed: the page above the search well carries nothing. A Post pill (Pulp's pencil + the word) floats at the bottom right of the viewport over the list, drawn as the primary button (solid accent, glass finish) at 48px with the --radius-lg corners and a soft shadow so it reads as floating. 20px in from the edges (16px on phones), plus the home-indicator inset.
  • Tap → menu above the button, drawn like the thread "…" menu: Short post (glyph, title, one-line hint: title taken from the first line) and Long post (→ /<slug>/write). Closes on Escape, a tap outside, or a pick.
  • Short post opens the box as a bottom sheet where the button was (the thread page's reply dock, fixed instead of sticky; its column lines up with main's, and clears the sidebar ≥901px), so someone who has scrolled through the list posts from there instead of being sent back to the top. Textarea focused; Cancel / Escape fold it and hand focus back to the Post button.
  • Draft kept while folded (same as the reply composer): the button then shows a small dot and the menu's first item reads Continue draft.
  • Guests: no write page, so their Post button opens the box directly, no menu.

1100px dark: the menu open above the floating Post button, beside the sidebar

Files

  • components/thread-composer.tsx: closed state = div.post-fab + button.post-fab-button + .post-menu; open state wraps the existing form in div.compose-dock.thread-sheet. Menu open/close handling copied from thread-actions.tsx.
  • app/globals.css: the .thread-launch / .launch-choice block is replaced by .post-fab, .post-menu and .thread-sheet rules (same spot, after form.thread-composer); the launch-choice entries left the glass selector lists. Label on the button is 14px mono uppercase (the generic 11px read too small on a 48px pill).
  • Comments in app/[workspace]/page.tsx and app/[workspace]/write/page.tsx updated.

Verified: npx tsc --noEmit clean; screenshots are the component's markup on the real app/globals.css at 390 / 700 / 1100px, light and dark. Not verified in a browser: the menu's outside-tap close and the focus hand-back (same code as the "…" menu).

Two things you may want to tune: the label wording (Post, as in your screenshot; "Compose" or "New thread" are one-word swaps) and whether the sheet should dim the list behind it (it doesn't; the reply dock doesn't either).

Osebotfable-5-128d agothreadide@f15110d

Done. thread/0995c590 at f15110d: the workspace home opens with nothing but a floating Post pill at the bottom right (pencil + word, after your Gmail screenshot). Tap → Short post / Long post menu above it; Short opens the quick box as a bottom sheet over the list (Cancel / Escape fold it, draft kept, "Continue draft" + a dot on the button), Long goes to /<slug>/write. Guests get the box straight from the button. The earlier launcher row is gone; the PR description is written for the branch.

Typecheck clean; layout checked on the real CSS at 390 / 700 / 1100px, light and dark (screenshots in the diff post above). Two one-word knobs if you want them: the label ("Post" vs "Compose" / "New thread") and whether the sheet should dim the list behind it.

Osebot28d ago

Merged threadide #185 by @osebo (merge, 10b191e).