Skip to content

Improve Agents and Projects sidebar readability and stable row interactions #174

Closed

Description

@yansfil

The task you are doing when you want this

여러 프로젝트와 체크아웃에서 실행 중인 에이전트를 훑어보고 필요한 작업을 연다.
Projects에서는 소속 관계가 즉시 구분되어야 하고 Agents에서는 상태와 요청을 읽는 동안 목록 위치가 움직이지 않아야 한다.
승인된 Pen v2를 Mac mini에서 구현할 수 있도록 branch, PRD, 디자인 원본과 검증 기준을 인계한다.

What hide does today

  • 프로젝트·체크아웃·에이전트가 비슷한 텍스트 밀도로 보이고 왼쪽 조작 요소가 제목 공간을 차지한다.
  • 에이전트 행의 quiet 상세는 hover에서 나타나고 상세가 두 줄로 늘어나 아래 행 위치가 바뀐다.
  • 체크아웃 시간은 hover/menu focus에서 overflow 버튼에 자리를 내준다.
  • Projects 내부 계보는 현재 모두 펼쳐 표시되어 개별 부모 에이전트를 접을 수 없다.

What it should do instead

  • 오른쪽 접기 버튼을 쓴다. 펼친 상태는 hover/focus/menu에서, 접힌 상태는 항상 표시하고 버튼 공간을 미리 확보한다.
  • 내용 종류별 행 높이를 유지한다. hover·focus·선택·메뉴 열림으로 높이나 시간 위치가 달라지지 않는다.
  • agent elapsed와 checkout commit age를 항상 표시하고 서로 다른 의미를 유지한다.
  • 프로젝트·체크아웃·에이전트의 계층을 정렬, 여백, 무게로 구분한다. Agents에는 소속 문맥을 기본으로 표시한다.
  • Projects 부모 에이전트에도 기존 core 확장 상태와 descendant badge/popover를 연결한다.
  • 본문 클릭은 탐색, 접기 버튼은 접힘, 배지는 자식 목록이다. 접기만으로 선택·읽음·프로세스·그룹이 바뀌지 않는다.
  • 실행 전/작업 중/자식 생성/요청/접힘, 빈 상태, 미확인, missing, disconnected, 장문, 두 테마를 같은 구성요소의 상태로 정리한다.

수용 기준은 아래 PRD의 D-1D-12 / B1B28을 따른다.
SSH 접힘 저장 기능, 자동 펼침 정책, branch/device 전용 줄, 새 pane 열기 대기·실패 UI는 이번 범위에 추가하지 않는다.

Where the authority for it lives

Branch and contract

이 branch에는 PRD 한 파일만 추가되어 있고 제품 구현은 아직 시작하지 않았다.
root checkout은 main에 두고 remote에서도 별도 worktree에서 이 branch를 이어간다.

사용자는 시안을 수용한 뒤 다음과 같이 지시했다.

어 우선 좋다.. 이거 우선 worktree 파서 작업 진행해볼래? 근데 이거 우선 branch origin으로 푸시하고 issue 만드는것까지 해줄래? 왜냐면 mac mini쪽 remote쪽에 작업 위임하려고!

현재 인계 범위는 branch push와 이슈 등록까지이며 원격 작업자 자동 시작, PR 생성, 병합은 수행하지 않았다.
새로 작성한 PRD의 형식 상태는 ready, human_approval은 pending이다.
원문 작업 지시는 D-11에 보존했으며 후속 구현자가 harness를 사용할 때는 정식 PRD 승인으로 바꾸어 적지 말고 해당 원문을 implement start --allow-unapproved-prd의 실행 근거로 사용한다.

Private design bundle on Mac mini

Mac mini에 아래 자료를 복사하고 압축 파일 및 내부 19개 파일의 SHA-256 일치를 확인했다.
공개 저장소 정책에 따라 scratch와 PNG는 Git에 넣지 않았다.

~/agents/runs/sidebar-readability-handoff-20260926/
  sidebar-readability-design.tar.gz
  sidebar-readability-design/
    SHA256SUMS
    agents/runs/sidebar-readability-proposal/design/
      scratch.pen
      v2/                         # 12 PNGs + state-spec.md
    design/hide-ui.lib.pen         # referenced library snapshot
    web/src/assets/                # referenced provider artwork
    macos/Sources/HerdrMacOS/Resources/

Archive SHA-256: 1910900674fb00002fe6e0fceacc1695500d7f91d8ea8b72e1ac8f8b04479f70.
Pen은 bundle 안에서 열면 상대 library/image 참조가 유지된다.
참조용 library snapshot을 최신 branch library 위에 덮어쓰지 않는다.
state-spec.md는 승인 전 제안 기록이므로 범위가 충돌하면 이번 PRD를 따른다.

PNG pair (-dark.png / -light.png) 읽을 내용
right-controls 오른쪽 조작과 rest/hover 확대 비교
projects-states 펼침·접힘·선택과 화살표 노출안, 채택안은 B
launch-lineage 시작 전부터 자식 생성·선택·요청·접힘까지
agent-row-states 10가지 상태, hover/선택/focus, Agents 문맥
edge-states 빈 목록·loading·missing·remote·PR·240px 장문
click-scope All projects / Overview / Workspace 선택과 클릭 대상

Pen row masters: Project E2kTrM, Checkout Z7AHj, Agent lcxde.
독립 headless Pen 세션과 저장소 docs/DESIGN_WORKFLOW.md 절차로 승인된 재사용 부분만 library/screen으로 승격한다.
Pen 폰트는 대체 폰트이며 실제 앱 폰트와의 픽셀 일치 증거가 아니다.

Implementation boundaries and starting points

먼저 docs/README.md, docs/UI_BEHAVIOR.md, docs/DESIGN_WORKFLOW.md, docs/status-model.md를 읽는다.
core의 상태/소유권과 기존 typed event를 유지하며 UI가 상태를 다시 계산하지 않는다.

위치 확인한 수정 지점
web/src/components/agent-row.tsx hover에서 상세 표시/두 줄 확장이 행 높이를 바꾼다. agent disclosure는 현재 왼쪽이다.
web/src/sidebar.tsx project disclosure를 오른쪽으로 이동하고 checkout age와 메뉴를 분리한다. OpenAgentRows의 항상 펼친 계보를 PRD B12에 맞춘다.
web/src/agentRow.ts, components/entry-menu.tsx, components/agent-children-popover.tsx 기존 detail 정책, 메뉴 노출, 자식 popover의 동작을 재사용한다.
web/src/ProjectOverview.tsx 동일 AgentRowItem을 쓰므로 사이드바 밀도 변경이 전파되지 않는지 확인한다.
web/src/actions.ts, projects.ts 기존 open/fold 이벤트와 실제 집계·정렬을 유지한다.
docs/UI_BEHAVIOR.md, docs/status-model.md 현재 hover 두 줄 확장 계약과 Projects 계보를 새 웹 동작에 맞춰 함께 수정한다. Swift whole-row disclosure를 웹에 적용하지 않는다.

Verification to complete with implementation

  • web/e2e/projects-sidebar.spec.ts: 실제 Git project/main/worktree/plain folder, 오른쪽 버튼, 시간 유지, 접힘 저장, Light/Dark.
  • web/e2e/sidebar-status.spec.ts: 장문 한글/영문, rest→hover→focus→selected의 행 높이와 다음 행 y좌표, waiting/child question, badge/popover 키보드.
  • web/e2e/overview.spec.ts 및 wire 이벤트 관찰: fold 후 중앙 scope·focused pane/tab·read/group이 유지되고 불필요한 focus/start/close/read 이벤트가 생기지 않음.
  • 기존 agentRow.test.ts, projects.test.ts, projectBoard.test.ts, remote.test.ts에서 상세 정책, missing/stale/미확인, 소유권과 remote capability 회귀 확인.
  • WS drop과 owning Herdr server 단절은 다른 실패이므로 Disconnected 검증을 서로 대체하지 않음.
  • Herdr Browser pane + chromux로 실제 상호작용과 두 테마를 확인. Electron 앱 UI 완료를 주장한다면 정확한 후보 PID/window의 실제 macOS screenshot도 필요.
pnpm --dir web typecheck
pnpm --dir web lint
pnpm --dir web test
pnpm --dir web build
pnpm --dir web e2e projects-sidebar.spec.ts sidebar-status.spec.ts overview.spec.ts shell.spec.ts
node scripts/check-design-contract.mjs

테스트·스크린샷·비교 산출물은 해당 worktree의 agents/runs/sidebar-readability/ 아래에 둔다.
운영 중인 앱·pane·server는 QA 대상으로 조작하지 않는다.

Handoff verification already completed

  • PRD readiness: PASS, 12 decisions / 28 behaviors, blocking gaps 0.
  • Design contract static check: PASS.
  • Staged diff/whitespace 및 workstation-identity 검사: PASS, PRD만 commit.
  • origin branch와 로컬 handoff commit 일치 확인.
  • Mac mini 디자인 자료 전송 및 19개 파일 checksum: PASS.
  • 별도 interview qa-log가 없어 독립 Spec gate는 미실행.
  • 제품 코드를 바꾸지 않았으므로 앱 E2E·렌더링·native QA는 후속 구현에서 수행할 항목이다.

Activity

  1. added
    enhancement
    on Sep 26, 2026
  2. added a commit that references this issue on Sep 27, 2026
    8622156
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions