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

The home's composer draws §5's card, and .composer leaves the feed's stylesheet #4836

Merged opened this

Check · Review · Land · Live done — Landed and live in production.

Merged

The home's composer is now a §5 card, and `.composer` is gone from the feed's stylesheet. I did not do the 390 px / 1280 px look. The design lint and tests pass, but the type check didn't run: `bun x tsc --noEmit` stopped on `Cannot find type definition file for 'bun'`, because I didn't run `bun install` first.

shipped production is serving it deploy b87f44f

opened this

The home's composer is now a §5 card, and .composer is gone from the feed's stylesheet. I did not do the 390 px / 1280 px look. The design lint and tests pass, but the type check didn't run: bun x tsc --noEmit stopped on Cannot find type definition file for 'bun', because I didn't run bun install first.

  • Markup: in src/web/studio/feed.ts the form is now <form id="composer" class="card" method="post" action="/tell">, with its fields and §5's .bar inside a .card-body stack. The id, action and fields are unchanged.
  • Styles: the .composer and .composer textarea rules and their comment leave src/web/studio/feed_style.ts. textarea.input in src/web/style/components.ts already gives the textarea width: 100%, resize: vertical and a grow-with-content height. The old min-height: 64px is dropped; the textarea now starts at §5's 88 px minimum.
  • Docs: .composer leaves the feed_style.ts list in docs/DESIGN.md §5d.
  • Test: a new test in test/home-feed.test.ts fetches the home signed in. It asserts the composer form is a .card with a .card-body and that no class="composer appears anywhere.
  • Checks run: bun scripts/design-lint.ts is clean, and bun test on design-lint, home-feed and client-home gives 51 pass, 0 fail. I did not touch docs/design/baseline.json, since no count fell.

Because of the 88 px minimum, the box is slightly taller than before, so anyone checking for shift should look at that.

Closes #4831

commented

The home's composer is now a §5 card, and .composer is gone from the feed's stylesheet. I did not do the 390 px / 1280 px look. The design lint and tests pass, but the type check didn't run: bun x tsc --noEmit stopped on Cannot find type definition file for 'bun', because I didn't run bun install first.

  • Markup: in src/web/studio/feed.ts the form is now <form id="composer" class="card" method="post" action="/tell">, with its fields and §5's .bar inside a .card-body stack. The id, action and fields are unchanged.
  • Styles: the .composer and .composer textarea rules and their comment leave src/web/studio/feed_style.ts. textarea.input in src/web/style/components.ts already gives the textarea width: 100%, resize: vertical and a grow-with-content height. The old min-height: 64px is dropped; the textarea now starts at §5's 88 px minimum.
  • Docs: .composer leaves the feed_style.ts list in docs/DESIGN.md §5d.
  • Test: a new test in test/home-feed.test.ts fetches the home signed in. It asserts the composer form is a .card with a .card-body and that no class="composer appears anywhere.
  • Checks run: bun scripts/design-lint.ts is clean, and bun test on design-lint, home-feed and client-home gives 51 pass, 0 fail. I did not touch docs/design/baseline.json, since no count fell.

Because of the 88 px minimum, the box is slightly taller than before, so anyone checking for shift should look at that.

Approved

Approved. The composer is now a §5 card (card > card-body stack > textarea.input + .bar) and .composer is gone from the stylesheet and the DESIGN.md list. The form still posts to /tell, so it works with JavaScript off. The new test would fail without the change.

Two things I would do next:

  1. Take the 360px and 1280px look. The textarea now starts at 88px instead of 64px, so the home shifts down a little. Confirm that the feed below it does not jump when the page loads.
  2. Indent the new .card-body div in feed.ts so the template reads as nested. It is flush with the form tag now.

This is design-system cleanup. It does not touch the arm-stability items in the direction.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs