Workspaces styles

merged…
osebo42d ago

Can you do a few revisions that cleaned up this page:

IMG_8476.png
IMG_8476.png
11 repliesoldestnewest
Osebotfable-5-142d ago

The screenshot is /workspaces on a phone. What's wrong in it:

  1. Repo chips (.repo-chip) have a fixed 24px height but their content wraps (alias and owner/name are two inline pieces), so long names spill out of the chip and overlap the chip below.
  2. The chips start right under the title with no breathing room; the title row and the chip grid are visually glued.
  3. The members line puts each avatar as its own flex child, so the "N members · N memory notes · you are …" sentence gets squeezed into a narrow column and wraps mid-phrase.
  4. "copy invite link" + "view/manage" crowd the title on narrow widths.

Plan (CSS + the page markup only, no data changes):

  • Replace the chip grid with the same comma-joined inline mono list the thread header already uses for repos (aliases, full owner/name as a tooltip). The manage page still lists full names. Chips were already rejected on the thread header for exactly this wrapping reason.
  • Make the title row a proper .ws-head that can wrap the actions under the title instead of squeezing it.
  • Use the shared .avatar-stack (overlapping 16px avatars, like thread tiles) plus a wrapping mono meta line in the label style: 3 members · 19 notes · owner.
  • Move the inline styles into classes and tighten spacing.

Will verify with a static mockup against the real app/globals.css at 390px and desktop, then post before/after shots.

Osebotfable-5-142d agothreadide@c4c4cd7

Done, pushed to thread/63e11e44 as c4c4cd7. Two files: app/workspaces/page.tsx and the "workspaces" section of app/globals.css.

What changed on each card

  • Repos: the chip grid is gone. Chips had a fixed 24px height, so simple-media-server/ eveningsco/simple-media-server wrapped inside the chip and overlapped the chip below (that's the mess in the screenshot). Repos are now one comma-joined mono line of aliases, the same treatment as the thread header crumb. The full owner/name is the hover title and is still listed on the manage page.
  • Title row: the name is a serif link to the workspace (like thread titles); "copy invite link" and "manage"/"view" are muted mono labels that wrap under the name when the row is too tight (see "Evenings + Threads" with its open badge), instead of squeezing the title.
  • Meta line: the avatars are a proper .avatar-stack (overlapping, max 4 then "+N", same as thread tiles), and the sentence became a mono label row: 3 MEMBERS · 19 MEMORY NOTES · OWNER. "you are an owner / a member / a viewer" became owner / member / viewer (open to posts for non-members of an open workspace).
  • Inline styles moved into .ws-card / .ws-head / .ws-name / .ws-actions / .ws-repos / .ws-meta.

Verified: tsc passes; static mockups against the real stylesheet at 390px (before/after side by side, attached), 1000px (attached) and dark mode at 390px. The app itself can't run in the sandbox (needs Postgres + GitHub OAuth), so real avatar images and the copy-link button weren't exercised live, but only their styling changed.

One thing to flag: the .card a rule paints links green, so the name and action links needed (0,3,1) selectors (.card .ws-head .ws-name > a) to stay text/muted coloured. If you'd rather the name or "manage" be green like other in-card links, it's a one-line colour change.

/workspaces at 390px: before (main, chips overlapping) vs after (comma-joined repo line, wrapping head, mono meta row)
/workspaces at 390px: before (main, chips overlapping) vs after (comma-joined repo line, wrapping head, mono meta row)
/workspaces after the change at 1000px wide
/workspaces after the change at 1000px wide
oseboasked Osebot42d ago

Copy invite link and make should be on the last line not inline with the title

Osebotfable-5-142d ago

Moving "copy invite link" and "manage"/"view" out of the title row and onto the card's last line, as their own row below the members line. The title row then holds just the name (+ open badge).

Also: main had moved on since c4c4cd7 (PRs #88, #90 touched globals.css), so I merged main into the branch first; the only conflict was the old .repo-chip rules that this branch already removed.

Osebotfable-5-142d agothreadide@7681549

Done, pushed as 7681549 on thread/63e11e44.

Change: "copy invite link" and "manage"/"view" are now the last line of each workspace card (.ws-actions, a wrapping flex row after the members line). The title row (.ws-head) holds only the name and the open badge. Same muted mono label styling as before; nothing else on the card moved.

Also: main had merged PRs #88 and #90 since c4c4cd7 (both touched globals.css), so I merged main into the branch (8ef1bd9) before this change. The only conflict was the old .repo-chip rules, which this branch already removes, so the merge takes the branch's version. The PR will now be a clean diff against current main.

Verified: tsc passes; static mockup against the real stylesheet at 390px (before/after attached) and 1000px (attached). Card order top to bottom: name → repos → avatars + members/notes/role → actions.

/workspaces at 390px: before (c4c4cd7, actions in the title row) vs after (actions as the card's last line)
/workspaces at 390px: before (c4c4cd7, actions in the title row) vs after (actions as the card's last line)
/workspaces after the change at 1000px wide
/workspaces after the change at 1000px wide
Osebot42d ago

Merged threadide #89 by @osebo (merge, fe05e1d).

oseboasked Osebot42d ago

Can you try different styles for the copy I got link and manage buttons?

Osebotfable-5-142d ago

I'll mock up a few alternatives for the card's last line (copy invite link + manage/view) against the real stylesheet and post them side by side at 390px, then implement the one that fits the existing controls best. Candidates:

  1. Filled pills: small --fill grey chips (like .repo-chip / .pr-row pills: 24px tall, 11px mono), the "filled controls" style used elsewhere.
  2. Outlined: hairline-framed small buttons (like the home "New thread" CTA / button.jump-top), manage/view as the primary one.
  3. Underlined links: sans 13px, underline with offset, muted → text on hover (quieter than chips, still reads as actionable).
  4. Primary + ghost: manage/view as a small solid --accent button, copy invite link as a plain mono label beside it.

Current state is (0) bare muted mono labels. Will post the comparison, pick one, push it, and keep the mockup around in case you prefer another.

Osebotfable-5-142d ago

Six options for the "copy invite link" / "manage" row, all rendered against the real stylesheet at 390px (attached):

  1. Current: bare muted mono labels. Reads as metadata, not actions (that's the problem).
  2. Filled grey pills: 24px --fill chips, 11px mono, same drawing as the PR links / Merge button on a thread. Fits the theme rule "filled controls, no frame".
  3. Outlined hairline pills: same size, hairline frame instead of fill. Hairlines are reserved for focus/armed state elsewhere, so this would be a one-off.
  4. Underlined sans links: 13px Inter, muted underline. Quiet, clearly clickable, but the only sans element on the card.
  5. Manage = solid primary, copy = grey pill: strongest, but a solid green button on every card competes with the page's one real CTA (New workspace).
  6. Card footer: hairline above, copy left, "manage →" right. Nice structure, costs ~14px of height per card.

I'm going with 1 (filled grey pills): it's the control style the rest of the app already uses for secondary actions, so it needs no new tokens, and it makes the row read as buttons without shouting. Implementing now; say the number if you'd rather have another, the mockups are a one-line CSS swap.

Six styles for the card's action row at 390px: 0 current, 1 filled grey pills, 2 outlined, 3 underlined sans links, 4 primary + grey pill, 5 card footer with arrow
Six styles for the card's action row at 390px: 0 current, 1 filled grey pills, 2 outlined, 3 underlined sans links, 4 primary + grey pill, 5 card footer with arrow
Osebotfable-5-142d agothreadide@d26f6a7

Done, pushed as d26f6a7 on thread/63e11e44 (CSS only, app/globals.css "workspaces" section).

Shipped: filled grey pills (option 1 from the comparison above). "copy invite link" and "manage"/"view" are now 24px --fill chips with 11px mono uppercase text, hover --fill-hover, no frame. It's the same drawing as the PR links and Merge button on a thread page, so the row reads as buttons without adding a new control style. Row gap tightened to 6px, top margin 12px. The disabled copy button (no active invite) keeps the global 50% opacity.

Rejected, with reasons (all still in the attached six-way comparison if you want to switch; each is a one-rule swap):

  • 2 outlined: hairline frames are reserved for focus/armed state in this theme.
  • 3 underlined sans links: quiet, but the only sans text on the card.
  • 4 solid green "manage": competes with the page's one real CTA on every card.
  • 5 footer strip with "manage →": nice structure, ~14px taller per card.

Verified: static mockup against the real stylesheet at 390px light + dark (attached) and 1000px. No TS changed in this commit; tsc passed on the earlier markup commits. PR description updated to cover the whole branch.

/workspaces at 390px after the change (d26f6a7), light and dark: actions as filled grey pills
/workspaces at 390px after the change (d26f6a7), light and dark: actions as filled grey pills
Osebot42d ago

Merged threadide #93 by @osebo (merge, 8a65502).