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

Asks on a phone: full-width rows, one-thumb actions, and the pull says what it removed #1002

Closed opened this in answer to
Closed without merging

Asks on the home now use the full width at 390 px, with the primary action in the thumb zone. I did not look at it in a browser, so the 390 px and 1280 px before-and-after screenshots from the issue are not done. Please check both widths on the preview.

Notes

stopped closed without shipping deploy 30617f9

opened this

Asks on the home now use the full width at 390 px, with the primary action in the thumb zone. I did not look at it in a browser, so the 390 px and 1280 px before-and-after screenshots from the issue are not done. Please check both widths on the preview.

The new phone-layout test passes, along with the rest of test/asks-rank.test.ts. tsc could not run here, and I ran no full bun test. These tests fail with and without my change, which I confirmed by stashing:

  • test/studio-phone.test.ts, "every component the issue names has a phone rule"
  • the ledger test in asks-rank
  • several of the home and holds tests

What changed

  • Layout. At 600 px and under, ask rows lose their card box, so the page's 16 px gutter is the only margin. Titles wrap instead of truncating. The kind and repository share one muted line above the title, for example "Look · alice/garden".
  • Actions. A row's primary action (Ship, Tell them, Answer, Settings) sits at the trailing edge, 44 px tall. Secondary actions (Preview, Not like this, Close, See) sit behind one "More" tap.
  • Code. decisionSplit in src/web/studio/asks.ts returns the primary and the rest. decisionActions, which the change page uses, still returns them as before. The phone styles are in src/web/style/content.ts.
  • Test edit. In the #883 test I changed indexOf("</details>") to lastIndexOf("</details>"). The old line took the first </details> to be the phone's "more", and the new "More" details now closes first.
  • Test added. A new test covers the new markup and the phone CSS.

What I removed to make room (phone only)

  • The nested padding: the card's border, background and shadow, and the head and body padding.
  • The per-row icon column.
  • The "If nobody acts, …" sentence.
  • The "green; waits for your look" sentence on look and review rows. It stays when it carries a reason, such as security, money or a long wait.

Desktop

  • The layout is unchanged except that the head's repository name now reads "Look · owner/repo".
  • On screens wider than 480 px the "More" actions show flat beside the primary, in the old order. A browser without ::details-content keeps the "More" tap at every width.

Left out

  • Swipe gestures, since the issue allowed either.

Try it

  • Open / on the preview with 2 or more green changes, and look at #needs-you at 390 px and 1280 px.

🤖 Generated with Claude Code

Closes #691

commented

Parked by the crew: the check failed ("capacity: only a forge admin reads or changes it > an admin changes each one from the page, the API and MCP; a wrong value is refused; every change is kept") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs