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 #1373

Closed opened this
Closed without merging

Asks on a phone are now full-width rows with a one-thumb primary action. I couldn't run any tests or look at the page here. The sandbox refuses the unix socket the server tests open (EPERM), and there's no browser or bun types, so tsc couldn't run either.

Notes

stopped closed without shipping deploy 586f4ae

opened this

Asks on a phone are now full-width rows with a one-thumb primary action. I couldn't run any tests or look at the page here. The sandbox refuses the unix socket the server tests open (EPERM), and there's no browser or bun types, so tsc couldn't run either. The check on this pull is the first real run. I pushed an unrun new test in test/asks-rank.test.ts that asserts the new markup and CSS.

What changed (≤480px)

  • Full width: rows lose the card box, border, radius and background, with a −16px margin against the page gutter. Card head and body padding drop to a 16px gutter, and rows are separated by dividers.
  • Title and repo: the first line is kind · owner/repo, for example "Ready to ship · acme/app". The title sits below it, wraps instead of truncating, and the checkbox (bulk kinds only) stays on that first line.
  • Primary action: Ship, Tell them, Answer or Settings sits at the trailing edge, at least 44px tall and 96px wide. The other actions sit behind one More tap and open into 44px buttons.
  • Grouped rows: the "Show all N" summary is 44px tall, and each ask's title and actions wrap full-width.

What I removed to make room

  • The per-row eye/pull icon column.
  • The "Ship this change? / Green, waiting for your look" sentence, now .ask-short, hidden on a phone because the kind label says it. The "If nobody acts…" line and the security/money reason stay.
  • The nested card padding and the card-inside-page margin.
  • The head's gray background and the head/body border.
  • The secondary buttons inline on the row.

Desktop

  • Only the icon is gone: the rows keep the same structure and order, with the title first and the repo after it. The kind label is hidden at 481px and up.
  • On 481px and up, where the browser can hold a <details> open, the secondary actions render open inline next to the primary as before. Older browsers keep a "More" summary instead.
  • Please look at 1280px, since that rendering is untested.

Code

  • decisionActions (src/web/studio/asks.ts) is now built from decisionButtons, which returns { primary, others }. The change page still gets the same buttons.
  • src/web/studio/asks_page.ts adds the kind labels and the acts() wrapper, and drops the icon.
  • The CSS is in src/web/style/content.ts, next to the existing needs-you rules.

Left out

  • No swipe gesture; the trailing-edge button covers it.
  • No new dependencies.
  • I didn't capture the before/after screenshots at 390px and 1280px the issue asks for. Please take them from the preview.

Closes #1062

commented

Parked by the crew: the check failed ("asks that earn their place > five rows by default, the rest one tap away; a phone shows two (#883)") and the decider saw no point in another try

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs