Skip to content

Clarify workspace navigation and surface agent and pull request status - #32

Merged
yansfil merged 8 commits into
mainfrom
redesign/sidebar-workflow
Sep 8, 2026
Merged

yansfil merged 8 commits into
mainfrom
redesign/sidebar-workflow

Conversation

@yansfil

@yansfil yansfil commented Sep 8, 2026 •

Copy link
Copy Markdown
Contributor

What changed, in one paragraph a new contributor can follow

The sidebar now reads Project > Workspace > Agents, with branch names and separate primary/detached badges, actual folder names as the fallback, and consistent agent status marks aggregated at Workspace level.
Clicking a populated Workspace anywhere along its row folds or unfolds its agents without moving focus or acknowledging work.
Shared icon controls now own 32pt standard and 24pt toolbar hit areas, hover/pressed/disabled states, accessibility labels and command tooltips.
Agent rows align their status mark under the branch icon, and populated Workspaces show a trailing status/provider/count chip followed by disclosure.
A separate PR control shows the branch pull request title, state and CI rollup, with explicit refresh and last-known-state notices on lookup failure.
The change also retains agent family context in attention sections, makes the active tab describe its selected pane, and stacks the New worktree form fields.
The contracts live in DESIGN.md and docs/status-model.md.

Review boundary

  • Runtime mutex: aggregation indexes pane ownership and visits canonical agents during existing synchronization; GitHub request events update per-project generations under the lock, and the existing background reader runs all CLI I/O outside it.
  • Snapshot wire: checkout agent_summary, GitHub lookup status, PR title/checks and collapsed_checkout_ids travel in revisioned rest; collapsed IDs are persisted with backward-compatible defaults because disclosure is UI state, not stream data.
  • Ownership: disclosure and pane-level read projection remain core-owned; the shell dispatches one toggle event. Pane topology and agent lifecycle remain Herdr-owned.
  • Herdr contract: no new methods, parameters or external wire fields; the pinned schema and single-source checks pass.
  • Failure path: missing checkouts retain an explicit missing badge; an unavailable server displays Disconnected rather than stale activity, with existing runtime connection diagnostics. Unknown activity stays Unknown. GitHub failures show their reason and retain explicitly stale prior results; missing CI data never appears Passing. Existing runtime diagnostics retain event errors.

Evidence

  • Verified by: 450 Rust tests passed, 6 explicitly ignored; 342 Swift tests passed; every local CONTRIBUTING gate, theme literal guard and component ownership guard passed. Signed debug app was driven against an isolated server using native accessibility and screenshots. Checked status/read/disconnection transitions, whole-row collapse and blank-space expansion with unchanged selected pane, 32pt project control opening/cancelling its dialog, and 24pt tab creation/close controls. Final native screenshots also verify aligned agent marks, the three-agent chip, trailing PR/disclosure alignment, live PR title/state/checks, separate PR activation with unchanged pane focus, explicit stale results after a fixture-only lookup failure, and recovery through refresh.
  • Not verified (and why): the New worktree form was visually inspected, but native submission was not completed because desktop focus interference blocked that earlier scenario; backend behavior tests pass. No matched CPU/latency benchmark or exhaustive hover/pressed/disabled visual matrix was run; this PR makes no performance improvement claim.
  • High-frequency path impact: status aggregation runs only in existing synchronization and publishes changes; hover state is local to one icon and ignores repeated identical values. The sidebar requests GitHub once per local project appearance, with duplicate requests ignored and explicit refresh scoped to that project. The existing reader/cache coalesces pending generations; the existing 200-PR response bound and timeout remain, with title/checks added to each result. No new terminal input queue, timer or rendering work. Agent tree projection indexes owned panes and visits agents once per existing recomputation. Existing status, grouping, persistence and selected-pane regressions pass; the component guard rejects reintroducing the retired duplicate pane button.
  • Human review focus: assess the separate PR and disclosure hit areas, CI rollup semantics, agent count chip, and status priority/read semantics against docs/status-model.md; inspect core summary ownership and Swift decoding together. Native evidence proves the listed interactions, while icon visual taste and the unrun scenarios remain review judgments.

Screenshots

Native screenshot, cropped to the sidebar from the isolated app.

Aligned agent status marks, trailing summary and PR controls, and live PR details

AI tooling

Implementation, documentation and test execution were assisted.
The final diff, native app screenshots and interactions, test results and contract boundaries were checked before delivery.

@yansfil yansfil changed the title Clarify workspace navigation and unify sidebar status controls Clarify workspace navigation and surface agent and pull request status Sep 8, 2026
@yansfil
yansfil merged commit eb34d4e into main Sep 8, 2026
5 checks passed
@yansfil
yansfil deleted the redesign/sidebar-workflow branch September 8, 2026 05:22
yansfil added a commit that referenced this pull request Oct 16, 2026
…1282)

## Summary

화면을 바꾼 PR이 스크린샷 없이 열리던 문제를 막습니다. 10-16에 머지된 UI 변경 PR 20개 중 이미지가 있는 것은
7개였고, 규칙은 템플릿과 AGENTS.md에 있었지만 손으로 연 PR은 그냥 넘어갔습니다.

- `verify`의 policy 검사가 PR 본문을 읽습니다. diff가 `web/src`, `site/`, `design/`을
건드리면(테스트와 스냅샷 제외) 리뷰어가 열 수 있는 `https://` 이미지가 있거나, `스크린샷 없음: <이유>` 한 줄이
있어야 통과합니다. 워크스테이션 경로, `file://`, `raw.githubusercontent.com` 링크는 이미지로 치지
않습니다.
- 본문을 고치면(`edited`) 검사가 다시 돕니다. 진행 중인 런은 취소하지 않고 기다리며, 지난 초록 런이 서 있으면
policy만 돕니다.
- AGENTS.md에 올리는 명령(`prd_ship.js screenshots --no-run`, sasu PR #32)과 예외
줄을 적었고, CONTRIBUTING의 CI gates 표와 PR 템플릿, TESTING.md의 lanes 절에 같은 내용을
넣었습니다.

## Review

- **판단해 주세요**: 예외 줄 `스크린샷 없음: <이유>`를 둘지. 검사가 막는 것은 말없이 빼는 것이고, 이유가 적힌
생략은 리뷰어가 판단합니다. 이 줄이 없으면 CI 포화로 후보 빌드를 못 띄우는 날 PR 자체가 막힙니다.
- **조심해서 볼 파일**: `.github/workflows/pr.yml` - `edited` 트리거와
`cancel-in-progress` 조건, policy job의 `fetch-depth: 2`. 본문 검사는 Structural
checks 블록 밖에 두어 `premerge-check.py`의 parity 테스트가 요구하지 않게 했습니다(머지 결과에는
본문이 없음).
- **질문**: `edited`는 제목 변경에도 런을 시작합니다. 지난 초록 런이 있으면 policy 한 job이라 비용은
작은데, 그래도 싫으시면 별도 워크플로로 뺄 수 있습니다(브랜치 보호에 required check 추가 필요).

## Evidence

- **확인한 것**: `python3 -m unittest discover -s scripts/tests` 전체 통과(398개,
새 `test_pr_screenshots.py` 9개 포함: 이미지 없음 실패, https 이미지 통과, 로컬 경로와 raw 링크
실패, 예외 줄 통과, 이유 없는 예외 실패, 템플릿 주석 무시, 테스트 파일만 바뀐 경우 통과). 이 브랜치 자체의 diff에
검사를 돌려 "No screen changed"로 통과.
- **확인하지 못한 것**: `edited` 이벤트에서의 실제 런 동작(취소 안 함, policy만)은 이 PR의 본문을 고쳐
보는 것으로 확인할 수 있어서, 열린 뒤 한 번 고쳐 결과를 적겠습니다.
yansfil added a commit that referenced this pull request Oct 18, 2026
…does (#1352)

## Summary

일을 자식 에이전트에게 맡긴 루트는 직접 PR을 만들지 않아도, 태스크 탭에서는 그 행에 자손이 만든 PR 표시가 보였는데
프로젝트 탭에서는 보이지 않았습니다.
이제 프로젝트 탭의 루트 행도 태스크 탭의 같은 행과 똑같이 자기와 모든 자손의 PR을 URL로 한 번씩 모아 그립니다(하나면
`#번호`, 여럿이면 상태별 개수).
자식·손자 행은 지금처럼 자기 PR만 그리고, 호버는 PR 하나면 그 PR 카드, 여럿이면 가장 급한 것부터 PR과 그것을 가진
세션 이름을 보여 줍니다.


![projects-root-row](https://github.com/yansfil/pr-assets/blob/main/hide/spec-project-tree-pr-family/2c42e1a/projects-root-row.png?raw=true)
직접 PR이 없는 루트 `릴리스 스킬과 로컬 검증 체계` 행이 자식 세션이 만든 `#32`를 그립니다(격리된 Herdr와
hided 위의 후보 빌드).

## Review

- **판단해 주세요**: 펼친 트리에서 루트(모음)와 자식(자기 것)에 같은 PR이 두 번 보입니다. 태스크 탭과 같은 모양이고
`docs/UI_BEHAVIOR.md`에 규칙으로 적었습니다.
- **조심해서 볼 파일**: `web/src/sidebar.tsx` - 가족 PR을 스냅숏마다 한 번 `useMemo`로
만들고, 태스크 탭과 같은 행 목록(`paneAgents.allAgents`)을 읽습니다.
- **조심해서 볼 파일**: `web/src/components/pr-mark.tsx`,
`web/src/components/sidebar-agent-row.tsx` - 호버 목록과 PR 카드가 행의 PR 대신 가족
PR을 받습니다.
- **비용 검토**: 사이드바 렌더마다 하던 일은 그대로이고, 에이전트 목록이 바뀔 때 자식이 있는 루트마다 자손을 한 번
훑습니다(기존 `sessionPulls`).

## Evidence

- **확인한 것**: 웹 typecheck, lint, 전체 unit 201파일 1775 테스트 통과.
- **확인한 것**: `web/src/projectTreePrFamily.test.tsx` 5개가 실제 `Sidebar`를 그려
자손 PR 모음, 같은 URL 한 번, 다른 저장소 같은 번호 따로, 자식 행 자기 PR, 질문 행 표시 없음, 단일 PR 카드,
GitHub 못 읽을 때 흐림과 마지막 읽은 시각을 확인합니다.
- **확인한 것**: 세 군데를 일부러 망가뜨렸을 때(가족 전달 제거, 흐림 계산에서 가족 제거, 카드에 자기 PR만 전달)
해당 테스트가 각각 실패했습니다.
- **확인한 것**: 격리된 Herdr와 hided 후보 실행에서 같은 루트의 태스크 행과 프로젝트 행 PR 표시 접근성 이름이
`#32 CI failed`로 같았습니다.
- **확인하지 못한 것**: 로컬 `sasu implement verify`의 Rust 테스트 1건(`hided`
`connect_build::the_apps_hide_replaces_a_daemon_of_another_build_and_keeps_one_of_its_own`)이
디스크 100%(여유 546MiB)에서 `codesign` 내부 오류로 실패했습니다. 이 PR은 웹만 바꾸며, 이 PR의 CI
`verify`를 검증 기록으로 삼습니다. Rust lint는 로컬에서 통과했습니다.
- **확인하지 못한 것**: PR이 여럿인 루트의 호버 목록은 jsdom 테스트로만 확인했고, 실화면 캡처는 PR
하나짜리입니다. 다른 기기 자손은 코드 경로로만 확인했습니다.

<details><summary>추가 증거</summary>


![projects-root-opened](https://github.com/yansfil/pr-assets/blob/main/hide/spec-project-tree-pr-family/2c42e1a/projects-root-opened.png?raw=true)
펼친 트리: 루트는 모음으로 `#32`, 자식 행은 자기 PR `#32`.


![projects-root-hover](https://github.com/yansfil/pr-assets/blob/main/hide/spec-project-tree-pr-family/2c42e1a/projects-root-hover.png?raw=true)
루트 행 PR 표시 호버: PR 하나이므로 그 PR 카드. 카드의 `Branch main`은 픽스처 PR의 head 브랜치입니다.

리뷰: 1차 지적(가족을 태스크 탭과 같은 행 목록에서 만들 것, 렌더마다 재계산 대신 `useMemo`, 단일 PR 카드와 흐림
테스트 추가)은 모두 2c42e1a0d에서 고쳤고, 후속 리뷰에서 고칠 것은 없었습니다. 후속 제안(다른 기기 자손 테스트,
PR이 여럿인 실화면 캡처)은 남겨 둡니다.

</details>
yansfil added a commit that referenced this pull request Oct 30, 2026
… on the branch

The record now reads the session's one list, which holds the pull request
the pane holds on its checkout's branch, as its row's mark does; the e2e
fixture opens every pull request on main, so #32 is listed from the start.
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