Repository navigation
Narrow the device rail to a full-height column with corner marks - #296
Merged
Merged
Conversation
The rail narrows to 48 and runs the sidebar's full height, with the device header and the Projects | Agents strip to its right. Tiles drop their names for a hint, remote devices draw a monogram, and the selected tile is ringed instead of barred. Needs You is a count notched into the bottom-right corner, unseen Done a dot at the top-right, and Working leaves the rail for the Agents tab. Mark digits use a new --status-foreground, white in Light, which lifts the light-theme contrast from about 3.7:1 to 5:1.
A rail tile's focus outline never drew, because outline-none left the outline style at none; it is now solid and stands 4 off the tile, outside the selected ring. The Pen rail spaces tiles 44 apart as the app does, --size-badge-wide goes with its last consumer, a device name is normalized before its monogram is taken, and the design and architecture guides describe the narrowed rail.
The Needs You pill stops at 9+, so the hint now carries the name with the counts in full (mini · Needs You 12 · Done 1), or 연결 안 됨 for a device that is not connected.
The pill drops from 15 to 13 with 9px digits on a new --size-rail-badge-text, and the Done dot and the cross from 9 to 8, so the marks sit lighter on the 32 tile.
A tile now carries a single mark notched into its top-right corner: the Needs You count, or with none a dot for unseen Done. The hint keeps every count, and the cross for a device that is not connected stays at the bottom-right.
yansfil
added a commit
that referenced
this pull request
Oct 1, 2026
…n graph (#298) Related: PRD `agents/prd/agents-graph-view/prd.md` ## Summary - Overview의 Agents 탭에서 레인 모드와 계보 모드를 지우고 그래프 하나로 바꿉니다: 체크아웃은 박스, 에이전트는 행, 체크아웃을 넘는 위임은 선입니다. - 선은 부모 행에서 자식 행으로 이어지고, 색이 상태를 말합니다: 묻는 중은 경고색, 일하는 중은 흐르는 파란 점선, 하위를 기다리면 옅은 파랑, 쉬면 회색입니다. - 띠(첫 열 박스와 거기서 위임된 박스들)는 그 안에서 가장 급한 행의 순서로 서고, primary 띠는 순위가 같을 때만 먼저 섭니다 (D-37). - 쉬는 박스와 에이전트 없는 워크트리는 접기 줄로 접히고, 필터(상태 칩, 검색, 기기), 키보드 이동, 행 팝오버(위치, 맡긴 에이전트, 선의 뜻)가 붙습니다. - web만 바뀝니다. core, hided, wire, Herdr 계약, hcoord는 그대로이고, 옛 두 모드의 호환 경로는 없습니다.  ## Review - **판단해 주세요**: 첫 화면의 순서(질문 띠가 main 띠 위)와 박스 높이, 선 색, 일하는 선의 점선이 초당 세 번 끊겨 흐르는 모양이 맞는지. - **판단해 주세요**: 진입 스크롤(B1)은 선택된 박스로 가는데, 쉬는 main이 질문 띠 여러 개 아래에 있으면 첫 화면을 main으로 내려 질문이 가려질 수 있습니다. B1과 D-37 중 무엇이 이기는지 PRD가 말하지 않습니다. - **조심해서 볼 파일**: `web/src/agentGraph.ts` - 열·띠 배치와 선 경로 계산(순수 함수, 순환 처리). - **조심해서 볼 파일**: `web/src/GraphView.tsx`, `web/src/graphMotion.ts` - DOM을 직접 쓰는 애니메이션과 타이머(해제 경로, high-frequency path). - **조심해서 볼 파일**: `design/tokens.json`, `scripts/pen-tokens.mjs` - `--lens-*` 토큰 제거와 `retired` 목록(PRD 밖의 작은 추가). - **질문**: 일하는 선의 점선을 CSS 애니메이션 대신 타이머 스텝으로 둔 것(아래 Evidence)을 PRD 본문에도 적을까요? ## Evidence - **확인한 것**: 검증 보고서 PASS(`scripts/verify-cargo.sh test`, `lint` 둘 다 exit 0), web lint, `tsc`, vitest 765개, 웹 토큰 검사와 디자인 계약 검사. - **확인한 것**: 브라우저 e2e `overview`(그래프, 접기, 호버 사슬, 팝오버, 키보드, 필터, 상태 변화 이동, 동작 줄이기, Recent Panels 복원)와 `s2`, `s6`, `s8`. - **확인한 것**: 패키지된 앱 `0.1.0-graph.b226c1ce`(main으로 리베이스하기 전 빌드, 동작 코드는 같음)를 창 단위로 캡처해 20개 에이전트와 선 6개를 두 테마로 봤고, 창을 좁혀도 가로 스크롤이 없습니다. 글자 배율 1.3은 `--interface-scale`로 흉내 내 잘림이 없는 것을 봤습니다. - **확인한 것**: D-26 CPU(20초 표본 3회, 흐름 켬 대 끔): 유휴 렌더러 평균 +0.56pp(게이트 1pp 이하), GPU 약 0.69% 대 0.02%, 그래프 revision과 frame 카운터는 유휴 동안 변하지 않음. 마우스 훑기 중에는 렌더러 +0.74pp. - **확인한 것**: D-12(같은 pane 재사용 때 옛 부모 관계를 물려받는 문제)의 세션 대조 변경(#300)이 main에 들어간 뒤의 head로 병합해 다시 검증했습니다. - **확인하지 못한 것**: B34의 일하는 마크 회전은 코드에 없습니다(상태 마크는 정지한 점). 멈출 것이 없어서 구현하지 않았고, PRD 전제와 코드가 다릅니다. - **확인하지 못한 것**: 일하는 선의 점선은 CSS 애니메이션이 아니라 초당 세 번 스텝하는 타이머입니다. CSS 애니메이션은 유휴 렌더러 약 10%, GPU 약 13%를 썼습니다. - **확인하지 못한 것**: OS의 실제 동작 줄이기 설정(Playwright 에뮬레이션만), Pen 그림의 렌더(생성기와 계약 검사만), 원격 기기가 응답하지 않는 상태의 실기 확인. - **생성물**: `design/hide-ui.lib.pen`, `design/hide-screens.pen`, `web/src/tokens.css`는 생성기로 다시 만든 결과입니다. <details><summary>추가 증거</summary>  </details> <details><summary>Verification record</summary> - PRD: `agents/prd/agents-graph-view/prd.md` (sha256 715ee7d729821b228152082076b2e7ce8df76012664eed5b08091b727849a296); 밴드 순서(D-37, B4, B5)는 사람이 승인한 amend로 반영 - Base e246d00 → head bd9a9ad, verified 2026-10-01T17:04:19.739Z: PASS - Verification report: `agents/runs/agents-graph-view/verification-report.json` and `agents/runs/agents-graph-view/verification-report.md`; source fingerprint 0a24afb1e4d678eab1be15f8f4b48663cb2508854cd4cb2383d38d0d976eea0f - Suites: - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0) - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0) - Reviews: Fidelity와 Code가 1c024dac(리베이스 전 해시)을 전체 범위로 검토했고, 이후 band 순서 변경(D-37)까지 차이 범위로 다시 검토했습니다(리베이스 전 b226c1ce). main으로 두 번 리베이스하고 두 번 병합(D-12 #300과 좁아진 기기 레일 #296 포함)한 뒤에는 Code가 첫 리베이스(main 29개 커밋)의 충돌 해결과 상호작용을 검토해 남은 Fix now가 없습니다. 두 번째 리베이스(단축키 변경 #284와의 충돌: `UI_BEHAVIOR.md` 문장과 e2e의 Recent Panels 호출)와 Fidelity는 다시 돌리지 않았고, 대신 e2e `overview`, `s6`, `s2`, `s8`, `lineage-session`, `projects-sidebar`, `device-rail`과 전체 검증이 병합 head에서 통과했습니다(검증 시도 중 둘은 서로 다른 `herdr-core`의 `gh` 픽스처 테스트 하나씩(부하 아래 타임아웃, 가짜 `gh` 실행 실패)으로 실패했고 같은 head 재실행에서 통과했습니다. 이 PR은 Rust를 바꾸지 않습니다.) 검토는 참고용입니다. - Fix now(해결): 접힌 선택 박스가 접기를 강제로 열어 닫히지 않음, All projects의 `이슈 없는 워크트리 N`이 접기를 열지 않음, 선의 뜻을 말로 확인할 길이 없음(팝오버에 `선` 줄 추가), 선 상태만 바뀌면 점선이 그려지지 않음, 캔버스가 사라져도 흐름 타이머가 남음, 쓰이지 않는 필드. - Fix now(미구현, 위 Evidence에 공개): B34 마크 회전 부재. 점선이 타이머 스텝인 것도 PRD 본문과 다릅니다. - Follow-up: B9 순환을 닫는 선의 점선은 흐르지 않음, 같은 탭의 부모와 자식이 한 박스에 있을 때 받침 없음, 팝오버에서 그려지지 않은 부모는 `직접 시작`으로 보임, 같은 순위 띠의 최근 활동 순서가 timestamp에 따라 바뀔 수 있음, 키보드 roving tabindex와 박스 접근성 역할, 호버 때 섹션 전체 다시 그림, 20개 에이전트 배치 8ms 단언 단위 테스트의 부하 민감도. - Evidence: none registered separately. - Changed paths: 38 (see Files changed) </details>
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: #283
Summary
기기 레일이 64px 폭에 타일 이름, 숫자 원 세 개, 선택 막대까지 겹쳐 무거웠습니다.
Slack 워크스페이스 레일처럼 바꿉니다: 48px, 사이드바 맨 위부터 이어지는 왼쪽 기둥, 이름 없는 32px 타일(원격 기기는 이름 머리글자), 선택은 링 하나.
타일 오른쪽 위에 가장 급한 표시 하나만 둡니다: Needs You 숫자(13px pill, 9px 숫자), 없으면 안 본 Done 초록 점(8px). Working은 Agents 탭 숫자에만 둡니다.
툴팁이 이름과 전체 숫자를 보여주고(
mini · Needs You 12 · Done 1), 라이트 테마 뱃지 숫자는 흰색이 됩니다(대비 약 3.7:1 → 5:1).Review
web/src/sidebar.tsx- 레일을 내부 행에서 꺼내 nav의 첫 열로 옮겼습니다(ownership 없음, 레이아웃만). 폭 계산과 드래그 edge는 그대로입니다.design/tokens.json---size-rail64→48, 레일 표시 크기 세 개와--status-foreground추가, 쓰이지 않게 된--size-badge-wide삭제.Evidence
scripts/verify-web.sh통과(web 737, desktop 72 테스트와 typecheck, lint, build),check-design-contract.mjs통과.projects-sidebar장면에서 실제 컴포넌트를 라이트/다크로 캡처했고, Tab 포커스 outline이 선택 링 바깥에solid 2px로 그려지는 것을 computed style로 확인했습니다.design/hide-screens.pen,design/hide-ui.lib.pen,web/src/tokens.css는 생성 스크립트의 diff입니다. 레일 그림은scripts/pen-screens.mjs에서 읽어 주세요.추가 증거
Before/After, 라이트

툴팁: 이름과 전체 숫자 (표시 위치를 바꾸기 전 캡처)

연결 끊긴 기기를 선택: 글리프가 흐려지고 ×, 표시 없음 (표시 위치를 바꾸기 전 캡처)

코드 리뷰: 첫 리뷰의 Fix now 4건(포커스 outline이 그려지지 않음, Pen 타일 간격 52 대 앱 44, 고아 토큰, 옛 문서 문구)을 모두 반영했고, 수정 커밋 재리뷰에서는 Fix now가 없었습니다.
남은 개선: 포커스 outline 회귀 e2e,
tileMonogram의 grapheme 단위 처리(Intl.Segmenter), 이름이 빈 기기의 빈 타일.