Repository navigation
Open a checkout's pull request from its row glyph and describe it in a hover card - #210
Merged
Merged
Conversation
The pull request badge reads its lifecycle word or its review decision, with Review required muted and Draft said beside a draft under review. shownPullRequest names the one pull request a checkout row speaks for, so the glyph, the card and the menu agree; checkoutCard lists the card's header and rows only where the snapshot has a value, and a card that would hold one value falls back to the plain tooltip. The checkout menu starts with Open pull request #n while GitHub knows one.
…ver card A checkout row whose glyph is a pull request's lifecycle makes that glyph a button: a ring in the pull request's color under the pointer, a click opens the pull request as a browser display of the Workspace in front, and Command-click, All projects, an Overview or an SSH device's checkout open the default browser instead. The press never reaches the row, so the checkout neither opens nor unfolds. Hovering or focusing the row opens a card in place of the text tooltip: the badge, number and Open PR over the title, then Review, Checks, Branch, Agents, Commit and Path, each only where the snapshot has the value. The card stays while the pointer crosses onto it and closes on Escape; a screen reader keeps the detail sentence. The row's menu offers Open pull request #n. One e2e drives all of it on a fake gh.
… sheet Component / PR hover card is the card's master with each state as a ref: open and approved, a draft with failed checks, changes requested with pending checks, merged, no pull request, folder missing, and the glyph at rest and under the pointer. The Projects Sidebar screen adds a pull-request row under the pointer with the card beside it. UI_BEHAVIOR describes the glyph button, the open rules, the card rows and the menu item; DESIGN_WORKFLOW names the hover frame.
…th the row The card a checkout row opens on hover registered itself as an escape layer, so a pointer resting on a row took the Escape a focused terminal was about to receive. It now closes through the tooltip's own dismiss like the plain hint, and the shell's Escape keeps going where it went before. The press-suppressed open state that Hint and the card both carried is one hook, useHintOpen, so the card inherits the blur guard that keeps a closing context menu's returned focus from reopening it; the e2e drives that path by keyboard. The row glyph and the card badge read one CHECKOUT_KIND_ICON map through pullRequestKind, so a draft under review has the same shape in both. The card is computed on every render, like the row's detail sentence, so its Commit age cannot stall on a memo keyed to the checkout. The review decision words live in one table behind pullRequestBadge and the Review row.
A hint or checkout card is not an Escape layer, so a pointer resting on a row never takes the Escape a focused terminal receives; the tooltip's own dismiss closes it. An Escape the shell answers itself, leaving a Project's Overview for one, is consumed in the window's capture phase and never reaches that dismiss, which left the card open on the sidebar. An open hint now registers its close with the shell, and consuming an Escape closes every open hint. The PR card e2e drives the Overview case; UI_BEHAVIOR.md states the rule beside the layer rule.
The ui store now carries both the numbered family a modifier hold reveals, called hint after hints.ts, and the closers of the tooltips open on hover. The closers are tooltips and pushTooltip, so the two do not read as one.
HyunjunJeon
pushed a commit
to HyunjunJeon/hide
that referenced
this pull request
Nov 9, 2026
Closes with-hide/hide-private#210 Closes with-hide/hide-private#503 Closes with-hide/hide-private#149 Closes with-hide/hide-private#294 Related: with-hide/hide-private#718 with-hide#719 (제품 쪽 후속), with-hide#173 (hook 시간 초과는 원인 미확정, 진단만 추가), with-hide#457 (relay, 진단만 추가), with-hide#339 with-hide#398 (WSL, 이슈에 원인과 남은 일을 적음) ## Summary 기기 연결 테스트가 가끔 실패하던 원인 넷을 고쳤습니다. 제품 코드는 바뀌지 않고 테스트 보조 코드와 CI 입구만 바뀝니다. - with-hide#210: 테스트용 sshd가 고른 포트를 다른 테스트의 sshd가 먼저 잡아도 "준비됨"으로 통과해서, 데몬이 남의 서버에 붙고 `host_key_changed`로 끝났습니다. 이제 자기 sshd가 "listening"을 로그에 쓸 때까지 기다리고, 포트를 잃었으면 다른 포트로 다시 시작합니다. - with-hide#503: 질문하는 프로그램이 holder가 pane 기록을 `running`으로 쓰기 전에 물어서 한 번 거절당했습니다. 테스트가 노드의 증명을 확인한 뒤에 풀어 주게 순서를 고정했습니다. - with-hide#149: 거절 순서 문제는 `133b05fe9`가 이미 고쳤고, 남은 BrokenPipe는 상한 확인용 연결이 이미 닫힌 연결에 요청을 쓰던 테스트 경쟁이라 듣기만 하게 바꿨습니다. - with-hide#294: 설정용 renderer가 프레임 64개에서 포기하던 것을 시간 상한으로 바꿨습니다. 이슈 본문의 첫 증상인 doorbell 시간 초과는 with-hide#173 댓글대로 10월 28일 뒤 재발이 없어, frame 상한을 고친 이 PR로 닫습니다. - remote mailbox 레인을 브랜치에서 손으로 N번 반복할 수 있습니다: `gh workflow run remote-mailbox.yml --ref <branch> -f repeat=10`. ## Review - **판단해 주세요**: 반복 실행을 새 workflow가 아니라 `remote-mailbox.yml`의 `workflow_dispatch` + `repeat` 입력으로 둔 것. `test_vt_cache.py`가 vt-cache 사용 workflow 목록을 고정해서 새 파일은 정책 검사에 걸립니다. - **조심해서 볼 파일**: `hided/tests/it/support/sshd.rs` - 준비 판정을 연결 성공에서 자기 로그의 "Server listening ... port N."으로 바꾼 곳(macOS sshd로 문구 확인). 재시작(`online(false)` 뒤 `online(true)`)은 로그가 이어 쓰이므로 spawn 뒤에 쓰인 부분만 읽고, 같은 포트를 잃으면 이유를 말하며 실패합니다. `system_ssh`에 이 경로를 확인하는 시험을 더했습니다. - **조심해서 볼 파일**: `hided/tests/it/device_own_engine.rs` - asker가 파일이 생길 때까지 기다리는 셸 반복. 상태를 기다리는 것이고 시간을 기다리지 않습니다. - **질문**: #173의 11월 7일 실패는 hook이 제품 예산(`INTAKE_BUDGET` 1.65초) 안에 답을 못 받은 것입니다. 부하 때문에 예산을 못 지키는 경우를 테스트가 어떻게 다룰지(병렬도를 줄일지) 정하지 못해 이번엔 진단만 넣었습니다. - **후속 이슈**: #149의 남은 틈(노드가 연결을 닫은 뒤에 자리를 돌려주는 것)은 제품 쪽이라 #718에, #503의 제품 쪽 경쟁(holder 기록이 Running이 되기 전의 첫 `hide` 호출 거절)은 #719에 적었습니다. 테스트 쪽 원인은 이 PR이 고쳤습니다. - 반복 실행은 `--retries 0`으로 돌아, 한 번의 실패가 job의 실패입니다. ## Evidence - **확인한 것**: `cargo check`와 `clippy -D warnings`(hided, hide-relay 테스트)가 통과합니다. 포트 충돌 메시지(`Bind to port N on 127.0.0.1 failed: Address already in use`)와 listening 문구는 이 Mac의 sshd에서 직접 확인했습니다. - **확인한 것**: with-hide#210 원인은 실패한 CI 실행(42085737360)의 보관된 sshd 로그에 `Address already in use`와 데몬의 `host_key_changed`가 함께 있는 것으로 확인했습니다. - **확인하지 못한 것**: #503의 원인은 코드 읽기로 좁힌 것입니다(`hide-holder/src/holder.rs`의 spawn 뒤 `running` 기록 사이). 실패한 CI에는 asker 화면이 없었고, 이번 변경이 다음 실패 때 그 화면을 남깁니다. - **확인한 것**: remote mailbox 레인(Linux)을 이 브랜치에서 `repeat=10`으로 돌려 10회 모두 통과했고(33개 x 10, 재시도 0번, `FLAKY` 줄 없음) https://github.com/with-hide/hide/actions/runs/42386421651 에서 볼 수 있습니다. - **확인한 것**: 재시작 경로를 고친 head 6817f7c09에서 `--retries 0`으로 다시 `repeat=10`을 돌려 10회 모두 통과했습니다(33개 x 10, `no flaky test`) https://github.com/with-hide/hide/actions/runs/42429757957 - **확인하지 못한 것**: 고치기 전 실패율은 이슈별로 며칠에 한두 번이라 10회 통과가 재발 없음을 증명하지는 않습니다. 이 Mac에서는 레인을 돌리지 않았습니다.
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.
Related: PRD
agents/prd/checkout-pr-glyph-card/prd.mdSummary
Component / PR hover card와 Projects Sidebar hover 상태 시트가 추가됩니다.Review
Badge로 그렸습니다(색은 D-08 매핑). 대표 이미지에서 이 선택이 보드 의도에 맞는지 봐 주세요.web/src/keyboard.ts- shell이 소비하는 Escape가 열린 힌트를 함께 닫습니다. 힌트는 레이어가 아니어서 터미널의 ESC를 막지 않지만, 소비된 키는 Radix 툴팁에 닿지 않기 때문입니다. high-frequency path는 아니고 Escape에만 붙습니다.web/src/components/ui/tooltip.tsx-Hint와 카드가 같은useHintOpen을 씁니다. 약 70개Hint호출 지점의 press/blur 동작이 그대로여야 합니다.web/src/actions.ts-openPullRequest는 앞 워크스페이스의openBrowser를 재사용하고 그 외에는window.open으로 host의setWindowOpenHandler에 맡깁니다. 새 IPC와 core 이벤트는 없습니다.Evidence
checkoutCard/pullRequestBadge/shownPullRequest/checkoutMenu/folderMenu의 D-07~D-12 규칙과, 행 글리프·카드 배지의 아이콘 일치(draft under review 포함)를 단위 테스트로 고정.checkout-pr.spec.ts(고립 Herdr + debug hided + fakegh+ 로컬 PR 페이지): 글리프 버튼, 카드 행 내용, hover 시 행 geometry 불변, 카드 위 포인터 유지, Escape 닫힘, All projects에서 팝업, Workspace에서 브라우저 탭 열기·재사용, ⌘-클릭 팝업, 메뉴 항목과 키보드 선택 뒤 카드 재오픈 없음, main 행의 plain 카드, Overview에서 Escape가 카드와 Overview를 함께 닫음.sasu implement verifyPASS(verify-cargo.sh test/lint),check-design-contract.mjs통과,gen-pen.mjsdiff 없음, Pen 라이브러리 구조 diff는 시트 1개 추가,hide-screens.pen은 origin/main 대비 Projects Sidebar 시트만 다름.palette.spec.ts의 no-match 단언 하나로 실패했습니다. 이 PR은 팔레트를 건드리지 않고, 로컬에서 2회 통과했습니다(로그 등록). 그 블록은 ⌘K 직후 입력 포커스를 기다리지 않고 타이핑하는 기존 경쟁 상태라 느린 러너에서 재현되는 플레이크로 봅니다.window.open→shell.openExternal경로는 코드로만 확인했고 앱을 띄우지 않았습니다. 원격(SSH) 체크아웃의 기본 브라우저 분기도 테스트가 없습니다.gh). draft이면서 review 배지인 조합은 core가 만들지 않아 단위 테스트로만 고정했습니다.hide-agent-hooksdeadline 테스트(1.5s 벽시계 상한)가 load 12에서 1.89s로 실패했고 재실행에서 통과했습니다. 이 PR은 그 크레이트를 바꾸지 않습니다.projects-sidebar.spec.ts도 fixture의git commit실패로 한 번 떨어진 뒤 재실행 통과.sidebar-width.spec.ts는 병합 전에 빌드된 debug hided(core에sidebar_width가 없음)로 한 번 떨어졌고, hided를 다시 빌드한 뒤 통과.design/hide-ui.lib.pen에Component / PR hover card시트 1개,design/hide-screens.pen의 Projects Sidebar 시트에 hover 상태 프레임이 스크립트로 추가됐습니다. 아래 접힌 블록의 Pen export를 보세요.추가 증거
AI tooling: 대부분 AI 도구. 손으로 대조한 것: e2e 캡처와 보드 6번 섹션, 리뷰 지적 5건의 수정 diff.
Verification record
agents/prd/checkout-pr-glyph-card/prd.md(sha256 aaaed5881b8905958c012f2a92b8506504a9345eee1a5e2a089554bbbc0453f8)agents/runs/checkout-pr-glyph-card/verification-report.jsonandagents/runs/checkout-pr-glyph-card/verification-report.md; source fingerprint 06ae70b1fd27180fe442c254aaa0f914126223548f5f5309a8126bb633cfe2ddbash scripts/verify-cargo.sh test(exit 0)bash scripts/verify-cargo.sh lint(exit 0)pullRequestBadge와 중복(e07367b4에서 한 표로 합침), 폴더 행 메뉴의 PR 항목 미검증(테스트 추가), 행 버튼 aria-label이 툴팁 설명을 덮는 기존 동작(이 PR 범위 밖, 그대로 둠).useMemo에 갇힌 Commit 나이, draft under review 아이콘 불일치, blur 가드 누락으로 메뉴 닫힘 뒤 카드 재오픈 - 모두 e07367b4에서 수정. Follow-up: press 상태 훅 공유(적용), 아이콘 매핑 공유(적용), 빈 PR url 가드(미적용, core가 빈 url을 보내지 않음), 글리프 픽셀 위 hover는 카드를 열지 않음(그대로 둠, 기존 FoldToggle과 같은 구조).hints→tooltips)은 제품 동작 변경이 없어 별도 리뷰 없이 verify와 web e2e 전체를 다시 돌렸습니다.