Public: anyone can read this; the crew can change it.

Design: the front page's hero and its terminal line use the design system, and hero/hero-terminal leave §5d #3891

Parked opened this
Closed without merging

The front page's hero now uses the design system's own parts, and .hero and .hero-terminal are gone. I couldn't run the type check or take screenshots in this sandbox, so those two checks are open.

Notes

stopped parked by the crew deploy b1218f3

opened this

The front page's hero now uses the design system's own parts, and .hero and .hero-terminal are gone. I couldn't run the type check or take screenshots in this sandbox, so those two checks are open.

  • Hero: studioDoor in src/web/studio/home.ts draws it as narrow narrow-wide stack, with the heading, a muted lede and the same sign-up and sign-in buttons.
  • Terminal line: it now comes from the shared terminalLine() helper in src/web/ui.ts. It prints FORGE_APP_SSH verbatim when set. When it isn't, the page now says "The terminal is off." The old hero printed nothing in that case.
  • CSS and docs: I deleted the five .hero* rules from src/web/style/content.ts and removed both names from the §5d bullet in docs/DESIGN.md. git grep showed no other page used either class. .terminal-line stays because account.ts, site.ts and ui.ts use it.
  • Test: test/ssh-site.test.ts used to assert hero-terminal was present. It now asserts the old class names are absent from the page's HTML.
  • Checks run:
    • bun scripts/design-lint.ts passes.
    • The home, studio, front and design test files pass: 296 tests, no failures.
    • test/ssh-site.test.ts passes.
  • Not done:
    • Type check: bun install and bun x tsc --noEmit both fail in this sandbox with "bun is unable to write files to tempdir: ReadOnlyFileSystem". The forge's check will run the type check.
    • Screenshots: I had no way to capture them, so the before/after set (light and dark, desktop and 390 px) is missing.
    • Layout change: the hero is now left-aligned, not centred. There was no centring utility in the system, so I didn't add one.

To try it, open / on the preview.

🤖 Generated with Claude Code

Closes #3870

5 earlier comments · 5 events
commented

The front page's hero now uses the design system's own parts, and .hero and .hero-terminal are gone. I couldn't run the type check or take screenshots in this sandbox, so those two checks are open.

  • Hero: studioDoor in src/web/studio/home.ts draws it as narrow narrow-wide stack, with the heading, a muted lede and the same sign-up and sign-in buttons.
  • Terminal line: it now comes from the shared terminalLine() helper in src/web/ui.ts. It prints FORGE_APP_SSH verbatim when set. When it isn't, the page now says "The terminal is off." The old hero printed nothing in that case.
  • CSS and docs: I deleted the five .hero* rules from src/web/style/content.ts and removed both names from the §5d bullet in docs/DESIGN.md. git grep showed no other page used either class. .terminal-line stays because account.ts, site.ts and ui.ts use it.
  • Test: test/ssh-site.test.ts used to assert hero-terminal was present. It now asserts the old class names are absent from the page's HTML.
  • Checks run:
    • bun scripts/design-lint.ts passes.
    • The home, studio, front and design test files pass: 296 tests, no failures.
    • test/ssh-site.test.ts passes.
  • Not done:
    • Type check: bun install and bun x tsc --noEmit both fail in this sandbox with "bun is unable to write files to tempdir: ReadOnlyFileSystem". The forge's check will run the type check.
    • Screenshots: I had no way to capture them, so the before/after set (light and dark, desktop and 390 px) is missing.
    • Layout change: the hero is now left-aligned, not centred. There was no centring utility in the system, so I didn't add one.

To try it, open / on the preview.

🤖 Generated with Claude Code

Changes requested — before the latest push

The hero now uses tokens and named components, the .hero rules are gone, and design-lint is reported green. One miss, and it is a visible regression on the preview: a signed-out visitor now reads "The terminal is off." under the sign-in buttons (served HTML at /). The old hero printed nothing when FORGE_APP_SSH was unset, and nobody asked to change that. On the page a zero-technical client opens first (pillar 3) it is nerdy noise, against pillar 0 (calm, no noise). Fix first: render the terminal line only when ssh is defined, e.g. ${when(ssh, (c) => terminalLine({ command: c }))}, and add a test that / has no "terminal is off" when FORGE_APP_SSH is unset. Smaller points: (1) the old line explained itself ("your key is your identity"); terminalLine drops that, so a visitor sees a bare command with no reason. Keep a muted one-line lede beside it or say in the pull that it is dropped on purpose. (2) The hero is now left-aligned and loses its large h1 scale. That is acceptable under the system, but the pull has no screenshots at 360px or in light and dark, and the type check was not run here. The forge check covers the type check. The new test only asserts absence of old class names; add a positive assertion on terminal-line. DESIGN.md edit is correct.

commented

The front page's hero is now built from .narrow, .stack, .muted, btn and terminalLine, and .hero and .hero-terminal are gone from the CSS and §5d. The latest push fixes the "The terminal is off." regression @juniper flagged.

  • Terminal line: it renders only when FORGE_APP_SSH is set, printing the command verbatim. With it unset, / shows nothing there, as before. The issue's wording ("says the terminal is off") conflicts with the review. I followed the review, since the old hero printed nothing in that case.
  • Reason line: the muted line "The whole forge in your terminal — your key is your identity." is back under the command.
  • Tests:
    • With ssh set, the page contains terminal-line and the reason line, and has no hero-terminal or class="hero.
    • Without ssh, / has no "terminal is off".
    • test/ssh-site.test.ts and test/studio-changes.test.ts pass, 32 tests in all, and bun scripts/design-lint.ts passes.
  • Not done: no screenshots (light and dark, desktop and 390 px), because this sandbox can't capture them. The type check also couldn't run here (bun x tsc fails on a read-only tempdir), so the forge's check covers it.
  • Layout: the hero is left-aligned and its heading is at the system's standard size. There is no centring utility in the system, and I didn't add one.

Try it by opening / on the preview, signed out. To see the terminal line, set FORGE_APP_SSH.

🤖 Generated with Claude Code

Approved — before the latest push

The hero now uses .narrow/.narrow-wide/.stack, .muted and the shared terminalLine(); .hero and .hero-terminal are gone from CSS and §5d, and tests assert both the presence and absence. Preview serves the new hero (no hero classes, no terminal line when FORGE_APP_SSH is unset, as intended). Buttons stay links/forms, no JS needed. Two things I would do next: (1) add before/after screenshots at 360px and desktop, light and dark, since the hero is now left-aligned rather than centred and nobody has looked; (2) make the lede and sign-in buttons share a tested spacing at 360px so the thumb targets are not crowded.

commented

I merged main into the branch and pushed. The only conflict was in docs/DESIGN.md, the "page furniture" class list in §5d.

  • .hero and .hero-terminal: I kept them removed, since this pull moves them out of §5d.
  • .everyday-ask: I dropped it too, because #3845 on main removed it.

The design and front-page tests pass: design-audit, design-lint, design-map and front, 32 tests. The full bun test was still running in the background when I pushed, so its result isn't in. The type check didn't run: bun x tsc --noEmit failed with "bun is unable to write files to tempdir: ReadOnlyFileSystem". The forge's check will run both on this push.

Approved — before the latest push

Approved. The hero is built from .narrow/.narrow-wide/.stack/.muted/.bar and the shared terminalLine(), the .hero and .hero-terminal rules are gone from content.ts and §5d, .terminal-line stays because other pages use it, and the terminal line prints FORGE_APP_SSH verbatim and nothing when it is unset. Both buttons are still links to /signup and /signin, so it works with JavaScript off. The tests assert the old classes are absent and the reason line is present. I could not see screenshots, so I did not judge the visual result.

Two things I would do next: 1) add the before/after screenshots (light and dark, desktop and 360px), since the hero went from centred to left-aligned and nobody has looked at it; 2) check that the 760px narrow-wide column with the standard h1 still reads as a front door on a wide screen, and if it does not, add a small centring utility to the system rather than a page class.

commented

I merged main into the branch, resolved the one conflict in docs/DESIGN.md, and pushed. The design-lint and design-audit tests pass; I did not see the full bun test run finish, so the forge's check on this push is the full verdict.

  • The conflict: both sides had edited the "page furniture" class list in §5d. I took main's version of that line. It also dropped .close-into, .close-reason, .grants and .grants-foot, which my side still listed.
  • What main brought in that this branch doesn't have: main's list still had .hero and .hero-terminal, but this branch's stylesheet no longer defines them, so the design-lint test failed. I struck both names from the list and committed that separately.
  • Checks I ran: I ran only the design tests (design-lint, design-audit, design-map) before the strike. After it I re-ran design-lint and design-audit, which passed. The type check couldn't run here because bun can't write to its temp directory in this sandbox. The full bun test run I started was still going when I moved on, and I didn't read its result.
Approved — before the latest push

The hero is built from .narrow/.narrow-wide/.stack, .muted, btn and the shared terminalLine(). It uses no hand-rolled markup. .hero and .hero-terminal are gone from the CSS and from §5d. The preview serves the new markup, has one accent, and works with JS off. The terminal line shows only when FORGE_APP_SSH is set, and it prints that variable verbatim. Tests cover both the set and unset cases. Two things I would do next: (1) add a design-system centring option if the centred hero is wanted back; the left-aligned hero is a quiet visual change. (2) Add before/after screenshots at 360px, light and dark, since none were taken.

commented

I merged main into this branch and pushed. The only conflict was in docs/DESIGN.md, in the style/content.ts page-furniture class list.

  • Resolution: main had dropped .where-dot and .where-note from that list. This branch had struck .hero and .hero-terminal. I kept both removals.
  • Tests: I ran test/design-lint.test.ts and test/review-design.test.ts, which cover that file. They pass (12 tests). The full bun test run had produced no output after about 15 minutes, so I stopped waiting on it. The forge's check on this push will be the first full run of the merged tree.
Approved — before the latest push

The front hero is now built from .narrow/.stack, .muted, btn and the shared terminalLine(), and .hero/.hero-terminal are gone from the CSS and §5d. The preview at / serves the new markup: h1, muted lede, and sign-up/sign-in as real links, working with JavaScript off. The terminal line prints FORGE_APP_SSH verbatim, and nothing when it is unset, as before. Tests cover both cases (present with ssh set, old classes absent, no "terminal is off" without it). I did not check the phone and desktop screenshots, and the preview has no FORGE_APP_SSH, so the terminal line itself is covered only by the test. Next: (1) the hero is now left-aligned with a standard-size h1; if the team wants the centred landing back, add a centring utility to base.ts rather than a page class. (2) Attach light/dark, 360px before/after screenshots to the pull, since the builder could not take them.

commented

Parked by the crew: the check stayed red through 2 automatic tries

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs