Remove this portion from the text: posting in Evenings is for its members

merged…
osebo36d ago

Remove this portion from the text: posting in Evenings is for its members

IMG_8631.jpeg
IMG_8631.jpeg
14 repliesoldestnewest
Osebotfable-5-136d ago

The sentence is the signed-out note on the workspace home (threadide/app/[workspace]/page.tsx, line 91). It currently reads "Sign in to start a thread; posting in {name} is for its members." when the workspace is not open. I'll drop the "; posting in … is for its members" clause so it reads "Sign in to start a thread." for every workspace, then push and open the PR.

Osebotfable-5-136d agothreadide@c70300e

Done. The signed-out note on the workspace home (threadide/app/[workspace]/page.tsx) now reads "Sign in to start a thread." instead of "Sign in to start a thread; posting in Evenings is for its members." The clause was only shown on closed workspaces (ws.open false); the ternary is gone and the line is now a constant string. The separate signed-in non-member note ("Starting a thread in … is for its members. Ask one of them for the invite link.") is untouched.

Verified with npx tsc --noEmit; the app can't run in the sandbox, but this is copy-only with no logic left behind.

Diff · 1 files
--- a/threadide/app/[workspace]/page.tsx
+++ b/threadide/app/[workspace]/page.tsx
@@ -88,7 +88,7 @@
           <p className="guest-note">Starting a thread in {ws.name} is for its members. Ask one of them for the invite link.</p>
         ) : (
           <p className="guest-note">
-            <Link href={signIn}>Sign in</Link> to start a thread{ws.open ? "" : `; posting in ${ws.name} is for its members`}.
+            <Link href={signIn}>Sign in</Link> to start a thread.
           </p>
         )
oseboasked Osebot36d ago

I also want the name of the workspace to show in the nav next to the door and remove the title above search

Osebotfable-5-136d ago

Two changes, both on the workspace home:

  1. Workspace name next to the door (signed-out header). Signed in, the title slot is already the workspace dropdown; signed out it is the site wordmark, which only looked right because the workspace happens to be called Evenings. I'll add a Next parallel-route slot app/@header/ so the header can know the page's workspace without the page knowing about the header: @header/[workspace]/page.tsx and @header/threads/[id]/page.tsx render the workspace name as the h1 (linking to /<slug>), @header/default.tsx keeps the wordmark everywhere else. The lookups reuse the cache()'d preview queries, so no extra DB round trip.

  2. Drop the title above the search box. The h2.page-title ("Threads" for members, the workspace name for everyone else) comes out of app/[workspace]/page.tsx; ThreadBrowser's heading becomes optional and the search well fills the row when there is none. The manage page keeps its small "Threads" h3.

Then a mockup screenshot, tsc + next build, push, PR description.

Osebotfable-5-136d agothreadide@d45103b

Done, pushed as d45103b on top of the earlier copy fix.

Workspace name next to the door. Signed in, the title slot was already the workspace dropdown; signed out it was the "Evenings" wordmark, which only looked right because the workspace is also called Evenings. The header now gets that slot from a Next parallel route, app/@header/: @header/[workspace]/page.tsx (on /<slug>) and @header/threads/[id]/page.tsx (on a thread in that workspace) render components/header-title.tsx with the workspace name, linked to its home; @header/default.tsx keeps the wordmark everywhere else (/workspaces, /about, sign-in). The lookups are the cache()'d preview queries the pages already run for their link metadata, so no extra query. Styled like the dropdown's label (14px/500, plain, ellipsis when long), not like the tracked uppercase wordmark.

One parallel-route caveat, noted in app/layout.tsx: after a soft navigation from a workspace home to a page the slot has no entry for (say /workspaces) it keeps the last name until the next hard load. That matches what the signed-in dropdown does with the remembered workspace, so I left it.

Title above search removed. app/[workspace]/page.tsx no longer renders the h2.page-title ("Threads" for members, the workspace name for everyone else). ThreadBrowser's heading prop is optional now; without it .page-head gets no-title and the search well fills the row. The manage page keeps its small "Threads" h3.

Verified with tsc and a full next build (the parallel route compiles, no warnings). The app can't run here, so the screenshot is a static mockup on the real stylesheet; please check /evenings signed out on the preview deploy, plus /threads/new and /workspaces on a hard load (wordmark).

Signed-out workspace home at 390px, before (wordmark + blackletter title) and after (workspace name beside the door, search well alone on the row). Static mockup on the real globals.css.
Signed-out workspace home at 390px, before (wordmark + blackletter title) and after (workspace name beside the door, search well alone on the row). Static mockup on the real globals.css.
oseboasked Osebot36d ago

And make it the gothic font

Osebotfable-5-136d ago

Setting the workspace name in the header in the blackletter (--display, Grenze Gotisch), the same face the removed title above the search box used. Two places so signed-in and signed-out match: h1.header-title.is-workspace (signed out) and the .header-ws dropdown's displayed value (signed in). The wordmark on other pages stays as it is. The blackletter is a condensed face, so it gets a larger size (around 24px) than the 14px sans label it replaces; I'll check it in a phone mockup, then push.

Osebotfable-5-136d ago

CSS done in app/globals.css: one knob --header-name-size (24px) on header.top, applied with font-family: var(--display) to both h1.is-workspace (signed out) and .header-ws select (signed in). Building a phone mockup on the real stylesheet now to check the blackletter's size against the door and avatar, then tsc, commit, push.

Osebotfable-5-136d agothreadide@b68af85

Done, pushed as b68af85.

The workspace name in the header is now set in the blackletter (--display, Grenze Gotisch), the same face the removed title above the search box used. It applies in both header states so they match: the signed-out h1.is-workspace beside the door (components/header-title.tsx) and the signed-in dropdown's shown value (.header-ws select). One knob in app/globals.css, --header-name-size on header.top, sizes both; it is 24px because Grenze Gotisch is condensed and sits small on its em box, so 24px reads about like the 14px Inter it replaces. The "Evenings" wordmark on pages without a workspace (/workspaces, /about, sign-in) is unchanged.

Two things to be aware of:

  • On desktop browsers the dropdown's option list also renders in the blackletter (it inherits the select's font). On iOS the native picker ignores it, so only the closed value is gothic there. If you'd rather keep the list in Inter, say so and I'll scope the font to the closed control via a wrapper instead.
  • The mockup attached is static on the real stylesheet (the app can't run in the sandbox); the CSS-only commit skipped tsc since node_modules wasn't installed here. Worth a look at /evenings on the preview, signed in and out, at phone width and in the sidebar.

PR description refreshed to cover all three commits on the branch.

Header at 390px with the workspace name in Grenze Gotisch: signed out (h1 beside the door) and signed in (dropdown). Static mockup on the real globals.css.
Header at 390px with the workspace name in Grenze Gotisch: signed out (h1 beside the door) and signed in (dropdown). Static mockup on the real globals.css.
Osebot36d ago

Merged threadide #125 by @osebo (merge, 0d8207a).

oseboasked Osebot36d ago

The alignment of the title in the input field is off

IMG_8633.jpeg
IMG_8633.jpeg
Osebotfable-5-136d ago

The screenshot is the signed-in dropdown on iOS: "Evenings" sits a few px below the box's centre while the chevron is centred. Cause: the name is the native <select>'s own text, and iOS lays that out from the font's metrics (Grenze Gotisch has tall ascenders and a short descender, so its ink sits low in its line box) and ignores the line-height/padding we'd use to correct it.

Fix: stop relying on the select to draw the name. components/header-workspace.tsx will render the shown name as its own element (the fill box, blackletter, ellipsis, chevron) and lay the native select over it invisibly, so the control still opens the native picker, is focusable and labelled, but the visible text is positioned by our CSS, the same on iOS and desktop. Side benefit: the desktop option list goes back to Inter instead of blackletter. I'll measure the font's ink bounds in Chromium to pick the exact nudge and apply the same to the signed-out h1 so both states line up with the door and avatar, then mockup screenshot, push, PR description.

Osebotfable-5-136d agothreadide@8362c7d

Done, pushed as 8362c7d.

What was wrong. The dropdown drew the workspace name as the native <select>'s own text. Grenze Gotisch's ink sits low in its line box (ascent 1.1em against a .38em descent, and the hhea/typo/win tables all agree, so this is the same on every platform): at 24px the letters centre about 3px below the line's centre. On desktop a line-height or padding tweak would hide that, but iOS lays a select's text out from the font metrics and ignores both, which is what the screenshot shows: the name sagging while the chevron sits centred.

Fix. components/header-workspace.tsx now renders the shown name as its own element, span.ws-shown, drawn as the control (fill box, blackletter, ellipsis), and the native select lies over it at opacity 0. It still opens the native picker, is focusable and keeps its label; hover and focus are mirrored onto the drawn box. In app/globals.css one knob, --header-name-lift (2.5px) on header.top, raises the line by the measured offset in both the dropdown and the signed-out h1.is-workspace, so the two states line up with the door and the avatar. Measured in Chromium on the mockup: the name's ink centre is now at 27.5px against a 27.5px box centre (was 29.5 to 30).

Side effect, and a plus: the desktop option list is back in Inter rather than the blackletter, since the select no longer carries the display font.

Verified with tsc and mockups on the real stylesheet at 390px (signed in and out, long name, dark), 700px top bar and 1000px sidebar. iOS itself can't be tested here, but the fix takes the iOS-specific select layout out of the picture, so it should hold; a glance at /evenings signed in on your phone would confirm.

Header at 390px, before and after: the blackletter name centred in the dropdown and in the signed-out h1, plus a long name and dark mode. Static mockup on the real globals.css in Chromium.
Header at 390px, before and after: the blackletter name centred in the dropdown and in the signed-out h1, plus a long name and dark mode. Static mockup on the real globals.css in Chromium.
Osebot36d ago

Merged threadide #126 by @osebo (merge, 2e70617).