Skip to content

feat: keep the phone's newest line above the keyboard and mark list rows like the desktop - #2441

Merged
yansfil merged 6 commits into
mainfrom
feat/phone-list-chips-and-typing
Nov 11, 2026
Merged

yansfil merged 6 commits into
mainfrom
feat/phone-list-chips-and-typing

Conversation

@yansfil

@yansfil yansfil commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Three phone changes the operator asked for after using the app on a real iPhone. Stacked on #2432, whose detail-chip link this reuses.

  • Typing keeps the end in view: when the keyboard comes up over the reply bar, a conversation or terminal read at its bottom moves down with it, so the newest line and the reply field show together. Someone scrolled up to older lines keeps their place. In a browser or Home Screen app the page now takes the height the keyboard leaves (the iOS app's web view already shrinks, fix: keep the iOS app's screen whole when the keyboard shows and hides #2434).
  • Row marks like the desktop's: after the task name, the pull requests that name the agent (one as #number with its state's mark, several as counts per state) and, on a Conductor's row only, its mission's chip with ! and k/n. The name shrinks first; the marks stay.
  • The revisit ★: a starred task shows the desktop's star, in the mark's place inside 다시 볼 것 and small after the name elsewhere. This needs one new optional field from the core (starred, left out when false); an older Mac sends none and its rows look as before.

The keyboard, before (left) and after, dark and light; the screen is cut by the keyboard's height:

1-keyboard

The list before and after at 390, then 320 (the width iOS Display Zoom gives) and 375 dark:

2-list

다시 볼 것 before and after:

3-star

Review

  • Decide: the row marks only show; tapping the row opens the detail, whose chips (feat: tidy the phone's add page and camera, and link an agent to its missions and pull requests #2432) open the mission or pull request page. A step worker's row gets no mission chip, as on the desktop.
  • Decide: the phone has no text-size setting and ignores iOS Dynamic Type, so the "largest text" case is iOS Display Zoom (a 320-wide screen), captured above.
  • Decide: two App Store screenshots go stale: 01-agents (the first row now wears the mission chip, a working row its PR mark) and 04-missions (the demo mission now has a Conductor, so its page offers the Conductor's chat).
  • Risky files: hide-core/src/agent_state/tally.rs - one optional field on the phone's row; no protocol number changes.
  • Risky files: web/src/mobile/mobile.css - the phone page's height follows visualViewport (web/src/mobile/viewport.ts); it falls back to the full height where there is none.
  • Risky files: web/src/components/mission-chip.tsx, mission-tone.tsx, revisit-mark.tsx - the chip's face and the star's shape are split out so the phone draws them without the desktop's store or hover; the desktop's chip and star render as before.
  • Cost: the terminal tab's half-width lines and short scroll-back are a hided matter and are handled separately; nothing here touches them.

Tests

  • Layer: e2e (phone relay fixture), unit (jsdom page render of the demo with the phone's real store), core unit.
  • Catches: a detail that lets the keyboard hide its newest line, and one that drags a reader who scrolled up (planted: no follow on resize; the e2e failed).
  • Catches: a mission chip on a step worker's row (planted; the test failed), a missing PR mark or star, a star on an unstarred row; the core sending starred for an unstarred row.
  • Catches: a browser page that does not take the visual viewport's height, or keeps it after stopping.
  • Repeat: phone-relay.spec.ts (21), src/mobile and src/components unit tests, and the core and hided tests whose names contain phone (116), locally green.
  • Waits: none added.

Evidence

  • Verified: web typecheck, lint, design contract, unit and e2e above, rustfmt, captures in light and dark at 390, 375 and 320.
  • Not verified: a real keyboard on an iPhone, in the iOS app and in Safari (Playwright cannot raise one; the e2e and the captures shrink the screen instead), which is for the operator to try.

Base automatically changed from feat/phone-pair-screen-and-chips to main November 11, 2026 06:32
@yansfil
yansfil added this pull request to the merge queue Nov 11, 2026
Merged via the queue into main with commit 18d572d Nov 11, 2026
73 checks passed
@yansfil
yansfil deleted the feat/phone-list-chips-and-typing branch November 11, 2026 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant