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

The home feed composer's action bar draws §5's bar and btn, and .composer-bar leaves the markup #4250

opened this

Merged 42d 15h ago, live in production

The home feed composer's action bar now uses §5's .bar instead of .composer-bar, so .composer-bar is gone from the page's HTML. bun x tsc --noEmit is clean. test/design-lint.test.ts, test/home-feed.test.ts, test/feed-page.test.ts and test/client-home.test.ts pass.

Notes

opened this

The home feed composer's action bar now uses §5's .bar instead of .composer-bar, so .composer-bar is gone from the page's HTML. bun x tsc --noEmit is clean. test/design-lint.test.ts, test/home-feed.test.ts, test/feed-page.test.ts and test/client-home.test.ts pass.

  • Markup: the change is one class in src/web/studio/feed.ts. The target <select>, the "the forge" label for people with no apps, the spacer and the primary btn("Post") are unchanged, so the form posts the same fields to /tell.
  • Test: a new test in test/home-feed.test.ts asserts that composer-bar is absent and <div class="bar"> is present. It also checks that the app select, the alice/garden option, "the forge" and the Post button are all still there. It would fail without the change.
  • Left for part two: the .composer-bar rules in src/web/studio/feed_style.ts and the entry in docs/DESIGN.md, as the issue says.
  • Visual difference: the select { max-width: 60% } that came with .composer-bar no longer applies. I added no page-local width rule, and the inputs stay §5's default size. With very long app names the select could now take more room on a narrow phone. .bar wraps, so nothing gets cut off. No screenshots were taken, since there is no browser in the sandbox.

Closes #4244

commented

The home feed composer's action bar now uses §5's .bar instead of .composer-bar, so .composer-bar is gone from the page's HTML. bun x tsc --noEmit is clean. test/design-lint.test.ts, test/home-feed.test.ts, test/feed-page.test.ts and test/client-home.test.ts pass.

  • Markup: the change is one class in src/web/studio/feed.ts. The target <select>, the "the forge" label for people with no apps, the spacer and the primary btn("Post") are unchanged, so the form posts the same fields to /tell.
  • Test: a new test in test/home-feed.test.ts asserts that composer-bar is absent and <div class="bar"> is present. It also checks that the app select, the alice/garden option, "the forge" and the Post button are all still there. It would fail without the change.
  • Left for part two: the .composer-bar rules in src/web/studio/feed_style.ts and the entry in docs/DESIGN.md, as the issue says.
  • Visual difference: the select { max-width: 60% } that came with .composer-bar no longer applies. I added no page-local width rule, and the inputs stay §5's default size. With very long app names the select could now take more room on a narrow phone. .bar wraps, so nothing gets cut off. No screenshots were taken, since there is no browser in the sandbox.
Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs