Skip to content

feat: group the phone's settings, fill the demo terminal and draw a mission's steps on one rail - #2429

Merged
yansfil merged 3 commits into
mainfrom
feat/phone-ui-polish
Nov 11, 2026
Merged

yansfil merged 3 commits into
mainfrom
feat/phone-ui-polish

Conversation

@yansfil

@yansfil yansfil commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Four small phone app changes, phone web only, no new data from hided:

  • Settings reads like the desktop's Settings: each group is a heading over a card of rows (the desktop's Group), and a group's note sits under its card, wrapping between Korean words.
  • Terminal tab: rows use the caption text size so a pane keeps more columns; the demo's terminal shows a believable sample per agent instead of two English lines.
  • Mission steps sit on one rail in the order they wait on each other: side-by-side steps bracketed under 동시에, a step not begun says what it waits for, finished steps fold at the head.
  • Wording: the scan page said 설정 > Mobile in Korean, Japanese and Chinese; it now names the desktop's tab in each language.

Before (left) and after (right), Korean, 390 pt wide (the terminal at 375):

1-settings
2-terminal
3-mission
5-wording

Review

  • Decide: whether caption-size terminal text reads well enough on a 375-wide phone (second image); the body size is one step up.
  • Decide: the rail names what a not-begun step waits for from depends_on on the phone, while the desktop reads the core's waiting_on, which the phone frame does not carry; same answer today, but two places hold the rule until hided sends waiting_on.
  • Decide: two App Store screenshots go stale and need retaking: 03-notification (Settings behind the banner) and 04-missions (the mission page, now 2/6 steps).
  • Risky files: web/src/mobile/HostList.tsx - the same list draws in the header's device sheet, which now also shows hairlines between computers.
  • Risky files: web/src/mobile/MissionDetail.tsx - the 지금 and 내가 볼 곳 sections are gone; their steps are on the rail.

Tests

  • Layer: unit (jsdom page render through the phone's real store and a fake hided socket).
  • Catches: a rail out of dependency order, a dropped step drawn, side-by-side steps not bracketed, a finished step named as still waited for (planted: counting finished steps as waited for; the test failed with waiting for #7, #6, Step c).
  • Catches: the demo Settings losing its sample host, connect row or way out; a planned gate step read as current work.
  • Repeat: missions.test.tsx, missionGate.test.tsx, demoScreens.test.tsx x 5 locally, all green.
  • Waits: none.

Evidence

  • Verified: web unit suite, 312 files, 2907 tests passed; lint; check-design-contract.mjs (tokens, contrast, logos, part count); CI verify green on a2f9a85, typecheck and the six web e2e shards included; c669e92 adds only the notes' word wrapping (phone unit tests 238 passed).
  • Verified: demo mode captured before and after in Korean, Light and Dark, at 390 and 375 wide; gallery phone-settings (a paired Mac) and the largest text size for Settings and the mission page.
  • Not verified: the iOS app itself (no simulator run; the app's notification switch row was seen only in code, not on screen) and real hided data.
  • Not verified: e2e specs were not run locally; CI runs them.
  • Not verified: Japanese and Chinese screens were not captured; their new words are four short labels and the scan line.
More evidence
  • Settings with a paired computer (gallery), after only: the computer row, its trash and 다른 기기 연결 inside one card.
  • Largest text size: Settings and the mission rail wrap without overlap.
  • Store text: mobile/store/metadata names no step count, so the 2/6 change needs no text change; the review notes' tabs, rows and shots.json selectors are unchanged.

@yansfil
yansfil added this pull request to the merge queue Nov 11, 2026
Merged via the queue into main with commit 40eb081 Nov 11, 2026
35 checks passed
@yansfil
yansfil deleted the feat/phone-ui-polish branch November 11, 2026 04:17
HyunjunJeon pushed a commit to HyunjunJeon/hide that referenced this pull request Nov 12, 2026
…missions and pull requests (with-hide#2432)

## 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](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-pair-screen-and-chips/9ffabbf/1-add-page.png?raw=true)

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

![2-camera](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-pair-screen-and-chips/9ffabbf/2-camera.png?raw=true)

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

![3-chips](https://github.com/yansfil/pr-assets/blob/main/hide/feat-phone-pair-screen-and-chips/9ffabbf/3-chips.png?raw=true)

## 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); with-hide#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 내 컴퓨터 연결하기).
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