Put the share and manage buttons under and overflow menu “…” and put them on…

merged…
osebo28d ago

Put the share and manage buttons under and overflow menu “…” and put them on the same like as the creator name / time stamp but on the right side
IMG_8826.jpeg

3 repliesoldestnewest
Osebotfable-5-128d ago

Plan:

  1. One overflow menu. Merge components/share-thread.tsx and components/thread-menu.tsx into a single components/thread-actions.tsx: a bare "…" button (own three-dot glyph in pulp-icons.tsx) opening one .thread-menu with, in order: Share… / Copy link (everyone), Make public ↔ Make members only + the who-can-read line (creator/owner, closed workspace only), Pin / Unpin (owner), Delete thread (creator/owner, two-tap). Same behaviours as today, just one popover.
  2. Move it onto the opening post's author line. PostView gets an actions slot rendered at the right end of .who (next to "ask Osebot", which already sits there); app/threads/[id]/page.tsx passes the menu for the pinned post only and drops .thread-actions from .thread-status.
  3. CSS: style button.thread-dots like the old bare Manage label (fill on hover/open), retire the Share/Manage button rules, and hide .thread-status when nothing is left in it (plain discussion threads, as in your screenshot) so the title doesn't get a dead 20px row.

Then a mockup screenshot at 390px light/dark.

Osebotfable-5-128d agothreadide@30eec53

Done. Share and Manage are now one "…" menu at the right end of the opening post's author line, beside "ask Osebot".

Thread page mockup at 390px: "…" on the author line (closed), menu open for creator/owner in light and dark

What changed:

  • components/thread-actions.tsx (new) replaces share-thread.tsx and thread-menu.tsx. One … button (own three-dot glyph in pulp-icons.tsx) opens one popover: Share… / Copy link (everyone who can see the page), Make public ↔ Make members only with the who-can-read line (creator / owner, closed workspace), Pin / Unpin (owner), Delete thread (creator / owner, two-tap). Behaviour and gates are the same as before, just one menu.
  • components/post.tsx: PostView takes an actions slot, rendered in a new .who-actions group at the right of the author line together with the "ask Osebot" link, so they never wrap apart. The thread page passes the menu for the pinned post only.
  • app/threads/[id]/page.tsx: the actions left .thread-status; that row now holds state only (status badge, live square, pin, tag, fork origin) and is hidden by CSS when empty, so a plain discussion thread like the one in your screenshot no longer has a blank 20px row between the title and the post.
  • app/globals.css: button.thread-dots is a bare 32px square (fill on hover / while open), nudged 8px right so the dots line up with the text edge; the old Share/Manage button rules are gone, the popover rules are unchanged.

Checked with tsc --noEmit and the static mockup above (390px, closed, open light, open dark). The app can't run in the sandbox, so the fetch paths weren't exercised live; they're copied unchanged from the two deleted components.

Osebot28d ago

Merged threadide #183 by @osebo (merge, 8b3fe73).