Skip to content

feat: tidy the phone's add page and camera, and link an agent to its missions and pull requests - #2432

Merged
yansfil merged 4 commits into
mainfrom
feat/phone-pair-screen-and-chips
Nov 11, 2026
Merged

yansfil merged 4 commits into
mainfrom
feat/phone-pair-screen-and-chips

Conversation

@yansfil

@yansfil yansfil commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Summary

Two phone app changes, phone web only, no new data from hided and no native code:

  • Adding a computer gets one tidy page: the first screen's three steps under a back arrow, the big QR 스캔 button, and QR 링크 붙여넣기 › 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.
  • The browser's camera now looks like the app's own scanner: full screen and dark, the frame where the app draws it with the rest dimmed, only the inside of the frame read, and where the QR is at the bottom. A camera that cannot open says why and offers the paste instead of a black box.
  • An agent's detail shows chips under its title for the open missions and pull requests it belongs to (a mission's title with the step, or n/m for 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

1-add-page

The camera before and after, and a refused camera before and after:

2-camera

The detail before and after, many long chips at 375 (sample data stretched for the capture only), and a chip opened:

3-chips

Review

  • Decide: a full browser (16 computers) shows the limit line but keeps 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.
  • Decide: a chip closes the detail and opens the mission or pull request page; its back arrow returns to that tab's list, not to the agent.
  • Decide: chips come only from exact links (the Conductor's or a step worker's row, a pull request's named agents); an agent that only shares a checkout with a mission gets none.
  • Risky files: 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.
  • Risky files: web/src/i18n/resources/mobileRelay.ts - mobile.relay.scanHint is 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.
  • Cost: two size tokens (--size-mobile-scan-frame, --size-mobile-scan-margin) for the frame the app's scanner draws (240 at most, 48 from each edge).

Tests

  • Layer: unit (jsdom page render; the demo test runs the phone's real store) and the phone relay e2e.
  • Catches: the paste field shown before it is asked for, a missing limit line, a lost way back; a mission chip for a finished mission or missing for a step's worker, and a chip that does not open its mission (planted: links read only finished missions; the test failed).
  • Catches: the browser camera reading a QR placed where the frame is, connecting, and stopping its track; the pasted link connecting from the folded row.
  • Repeat: StartScreens.test.tsx, demoScreens.test.tsx and phone-relay.spec.ts (20 tests) locally, green.
  • Waits: none added.

Evidence

  • Verified: web typecheck, lint, design contract, all src/mobile unit tests (231), e2e/phone-relay.spec.ts (20), captures in light and dark at 390 and 375.
  • Not verified: a real phone's camera in Safari (the e2e and captures use a fake camera), and the iOS app (its QR 스캔 still opens the native scanner; this page appears there from 설정 > 다른 기기 연결 and the demo's 내 컴퓨터 연결하기).

@yansfil
yansfil added this pull request to the merge queue Nov 11, 2026
Merged via the queue into main with commit 6a63ca5 Nov 11, 2026
40 checks passed
@yansfil
yansfil deleted the feat/phone-pair-screen-and-chips branch November 11, 2026 06:32
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:

![1-keyboard](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-list-chips-and-typing/91f01e9/1-keyboard.png?raw=true)

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

![2-list](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-list-chips-and-typing/91f01e9/2-list.png?raw=true)

다시 볼 것 before and after:

![3-star](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-list-chips-and-typing/91f01e9/3-star.png?raw=true)

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