Repository navigation
feat: tidy the phone's add page and camera, and link an agent to its missions and pull requests - #2432
Merged
Conversation
…n-and-chips # Conflicts: # web/src/i18n/resources/mobileRelay.ts # web/src/mobile/StartScreens.tsx # web/src/mobile/missionModel.ts
HyunjunJeon
pushed a commit
to HyunjunJeon/hide
that referenced
this pull request
Nov 12, 2026
…ows like the desktop (with-hide#2441) ## Summary Three phone changes the operator asked for after using the app on a real iPhone. Stacked on with-hide#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, with-hide#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:  The list before and after at 390, then 320 (the width iOS Display Zoom gives) and 375 dark:  다시 볼 것 before and after:  ## Review - **Decide**: the row marks only show; tapping the row opens the detail, whose chips (with-hide#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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Two phone app changes, phone web only, no new data from hided and no native code:
QR 스캔button, andQR 링크 붙여넣기 ›folded into one small row that opens the field and 연결 side by side, so the keyboard never hides 연결. A browser that already keeps 16 computers says so before anything is scanned.n/mfor its Conductor; a pull request's state mark and number). A chip opens that page.Before (left) and after, Korean, 390 pt wide (375 where marked): the add page, a bad link, and the field with the keyboard up at 375
The camera before and after, and a refused camera before and after:
The detail before and after, many long chips at 375 (sample data stretched for the capture only), and a chip opened:
Review
QR 스캔and 연결 working, because a kept computer whose connection was refused reconnects through this page; a new computer is still refused after the scan, as before.web/src/mobile/loader.tsx- the add page's back sets the address to/?list=1(or/with no computer), so it never opens a computer by itself.web/src/i18n/resources/mobileRelay.ts-mobile.relay.scanHintis removed (nothing shows it now); feat: group the phone's settings, fill the demo terminal and draw a mission's steps on one rail #2429 edits the same line, so whichever merges second resolves one trivial conflict.--size-mobile-scan-frame,--size-mobile-scan-margin) for the frame the app's scanner draws (240 at most, 48 from each edge).Tests
StartScreens.test.tsx,demoScreens.test.tsxandphone-relay.spec.ts(20 tests) locally, green.Evidence
src/mobileunit tests (231),e2e/phone-relay.spec.ts(20), captures in light and dark at 390 and 375.QR 스캔still opens the native scanner; this page appears there from 설정 > 다른 기기 연결 and the demo's 내 컴퓨터 연결하기).