Skip to content

Head the sidebar with an Overview row and a Projects | Agents strip with Search and New workspace - #219

Merged
yansfil merged 6 commits into
mainfrom
prd/sidebar-shell
Sep 27, 2026
Merged

yansfil merged 6 commits into
mainfrom
prd/sidebar-shell

Conversation

@yansfil

@yansfil yansfil commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Related: agents/prd/sidebar-shell/prd.md

Summary

  • 왼쪽 pane 맨 위를 전역 목적지 목록으로 바꿨습니다: 집 글리프, Overview, 프로젝트 수를 가진 행 하나가 목록 스크롤 밖에 고정되고, Overview 화면이 앞일 때만 선택 fill을 가집니다.
  • 그 아래 Projects | Agents 탭 스트립(Projects가 왼쪽이자 기본), 오른쪽 끝에 🔍(⌘K 검색 오버레이)와 그 앞에 +(새 워크스페이스, Projects 탭에서만).
  • Search 필드 행, 하단 + 새 워크스페이스 버튼, Projects 목록 안의 All projects 행을 지웠습니다(search-field.tsx 삭제).
  • 모든 프로젝트 화면의 제목과 경로(Overview / Project / Workspace)가 Overview가 됐습니다. 코어, Herdr 계약, 단축키 레지스트리, workspaceManage.ts, 푸터는 그대로입니다.
  • Pen: Screen / Projects Sidebar와 공유 사이드바(Main, Workspace), Palette 시트의 사이드바 칸을 새 구성으로 다시 그렸고, 라이브러리는 바꾸지 않았습니다.

사이드바 맨 위: 고정 Overview 행 → Projects | Agents 스트립(+ 는 Projects 탭만, 🔍 는 항상). 왼쪽 Projects·Light, 가운데 Agents 탭, 오른쪽 Dark

Pen 기준 / 현재 Pen / 실제 사이드바(gallery scene), Light 292px

Review

  • 판단해 주세요: Overview 행 오른쪽을 ASCII 안의 맨 숫자(12) 대신 12 projects로 두었습니다. 무엇을 세는지 말하려는 선택입니다.
  • 판단해 주세요: 집 글리프는 D-06대로지만 primary 체크아웃의 kind 글리프도 집입니다. 첫 이미지에서 두 의미가 헷갈리지 않는지 봐 주세요.
  • 판단해 주세요: 사이드바 기본 탭이 Agents에서 Projects로 바뀝니다(B3). 세션 동안 선택은 유지되고, 새로 연 창은 Projects로 시작합니다.
  • 조심해서 볼 파일: web/src/ui.ts - 기본 sidebarMode 변경이 Agents 목록을 전제한 흐름(⌥ 숫자 키캡 등)에 닿는 자리. spec 7개(desktop 1개 포함)에 Agents 탭 클릭을 넣었습니다.
  • 조심해서 볼 파일: web/src/sidebar.tsx - T6(행 우클릭 메뉴)가 같은 파일의 행 부분을 고칩니다. 이 PR은 헤더와 AllProjectsRow 삭제만 건드립니다.

Evidence

  • 확인한 것: 격리된 Herdr + debug hided 위 웹 e2e sidebar-shell.spec.ts: Overview 행 클릭·Enter, 제목 Overview, 선택 fill 켜짐/꺼짐, 행 오른쪽 끝이 목록 행과 같은 열, 🔍 hint Search ⌘K와 팔레트, + 흐름, Agents 탭에서 + 없음, 목록에 All projects 없음.
  • 확인한 것: 전체 웹 e2e 76개 중 71개 통과, 기본 탭 변경을 전제한 5개(s6, s7×2, s8, shell)를 고쳐 다시 돌려 모두 통과. palette, sidebar-status도 통과.
  • 확인한 것: vitest 431개(새 sidebarHeader.test.ts 4개 포함), verify-web.sh(web + desktop typecheck/lint/unit/build), verify-cargo.sh test·lint.
  • 확인한 것: CI(986448d) 6개 잡 통과: 웹 e2e 76개 통과, desktop e2e 14개 통과·1개 skip(remote-workspace, SSH 서버 필요), 수정한 digit-shortcuts.spec.ts 포함. desktop e2e는 운영자 화면을 차지해서 로컬에서는 돌리지 않았습니다.
  • 확인한 것: check-design-contract.mjs 통과, design-review.mjs review PASS(light/dark × 292/240px × reference/long, 들여쓰기·열·hover/focus 안정·겹침·가로 넘침 규칙 전부).
  • 확인하지 못한 것: 원격 SSH 디바이스를 선택한 상태(B8)는 실제로 띄워 보지 않았습니다. 헤더는 디바이스에 따라 갈라지는 분기가 없습니다.
  • 확인하지 못한 것: 설치된 /Applications/hide.app에는 올리지 않았습니다.
  • 생성물: design/hide-screens.pen의 큰 diff는 scripts/pen-screens.mjs에서 gen-screens.mjs로 만든 것입니다(Main, Project Overview, Workspace, Project Sessions, Palette, Projects Sidebar 시트). 두 번째 이미지가 그 결과입니다.
추가 증거
  • 🔍 hover hint와 Enter로 다시 연 Overview 행의 focus ring, Dark/Light 캡처, Pen 비교 Dark는 실행 디렉터리에 등록돼 있습니다.
  • Follow-up: web/vite.config.ts의 vitest include가 *.test.ts뿐이라 기존 newTab.test.tsx는 한 번도 돌지 않습니다(이 PR 이전부터). 새 헤더 테스트는 .ts로 썼습니다.

AI tooling: 대부분 AI 도구. 사람 확인이 필요한 시각 판단은 위 Review에 모았습니다.

Verification record
  • PRD: agents/prd/sidebar-shell/prd.md (sha256 8d4a7f47b6d4a14d0ff6e10fcfbe49505e9242532079640de54edd3bfeb669fb)
  • Base 72d3083 → head 986448d, verified 2026-09-27T23:04:14.989Z: PASS
  • Verification report: agents/runs/sidebar-shell/verification-report.json and agents/runs/sidebar-shell/verification-report.md; source fingerprint 2f9493841fd8401eb62ccdafdba27be0b389398e4dacb5d1e787cd379ff0c8b8
  • Suites:
    • S1: GREEN bash scripts/verify-cargo.sh test (exit 0)
    • S2: GREEN bash scripts/verify-cargo.sh lint (exit 0)
  • Reviews:
    • Fidelity (986448d): Fix now 없음. Follow-up: 코드·e2e 주석에 남은 "All projects" 명칭 정리. 미관찰로 보고: B8(원격 디바이스), 단축키 시트 화면, desktop e2e.
    • Code (986448d): Fix now 없음. Follow-up: Overview 행 hover 힌트 여부, s7의 스트립 패딩 클릭 좌표, screenSidebar 옵션 정리.
    • 같은 head의 첫 리뷰 세트는 세션 재시작으로 끝나지 못해(REVIEW_UNAVAILABLE) 같은 head로 다시 돌렸고, 위가 그 결과입니다.
  • Evidence: 7 registered (4 screenshot, 2 image, 1 file); paths are local to the run directory
    • agents/runs/sidebar-shell/artifacts/e2e/sidebar-shell-overview-dark.png
    • agents/runs/sidebar-shell/artifacts/e2e/sidebar-shell-overview-light.png
    • agents/runs/sidebar-shell/artifacts/e2e/sidebar-shell-search-hint-light.png
    • agents/runs/sidebar-shell/artifacts/e2e/sidebar-shell-agents-light.png
    • agents/runs/sidebar-shell/artifacts/design/psb-sidebar-l.png
    • agents/runs/sidebar-shell/artifacts/design/psb-sidebar-d.png
    • agents/runs/sidebar-shell/artifacts/design/report.md
  • Changed paths: 24 (see Files changed)

…rip carrying Search and New workspace

The Search field row, the bottom new-workspace button and the All projects row
inside the Projects list are gone: the Overview row sits above the strip on
both tabs, Search is an icon at the strip's end and New workspace an icon
before it on the Projects tab. Projects is the first tab and the default.
…strip with Search and New workspace

Screen / Projects Sidebar, the shared sidebar on Main and Workspace, and the
Palette sheet's sidebar cell now show the fixed Overview row and the strip's
icons in place of the Search field and the bottom button; the every-project
screen and its path back read Overview. UI_BEHAVIOR, DESIGN_WORKFLOW and
ARCHITECTURE name the screen Overview and describe the new top.
…irst sidebar

A new web e2e drives the Overview row, the strip's Search and New workspace
icons and the Agents tab. Specs that read the Agents list now choose that tab,
since the sidebar opens on Projects, and the Overview row's hook replaces the
All projects row's.
@yansfil
yansfil merged commit 1485392 into main Sep 27, 2026
7 checks passed
@yansfil
yansfil deleted the prd/sidebar-shell branch September 27, 2026 23:30
yansfil added a commit that referenced this pull request Sep 28, 2026
Related: PRD `agents/prd/sidebar-context-menus/prd.md`

## Summary

- 사이드바의 프로젝트·체크아웃·에이전트 행을 우클릭하면 보드에 그린 순서대로 메뉴가 열립니다. 호스트에 없는 항목은 빠지고,
행이 쓸 수 없는 항목은 이유와 함께 비활성으로 보입니다.
- 프로젝트: Open Overview, New worktree…, New tab in main(단축키 표시), Reveal in
Finder(데스크톱만), Copy path, Pin/Unpin, Remove project…. Herdr가 보여 주기만 하는
미등록 행에서도 Pin은 그 행을 등록하면서 고정하고, Remove는 그 행의 pane을 닫습니다(D-14).
- 체크아웃: Open, New tab here, Open pull request, Set purpose…, Set as
default checkout, Copy branch name, Copy path, Reveal in Finder, Delete
worktree…. 원격 장치의 행은 Finder·기본 체크아웃·worktree 삭제가 비활성입니다.
- 에이전트: Show(⌥n), Copy title, Copy session id, Close tab…. 이를 위해 스냅샷의
에이전트 행이 Herdr가 기록한 session id를 싣고, 데스크톱 preload에 `revealPath` 하나가 생깁니다.
- `Screen / Projects Sidebar` 시트에 세 메뉴가 열린 프레임을 스크립트로 추가했고,
UI_BEHAVIOR·ARCHITECTURE를 같이 고쳤습니다.

![Herdr가 보여 주기만 하던(미등록) 프로젝트 행의 메뉴: Open Overview, New worktree, New tab
in main ⌥T, Copy path, Pin, Remove
project](https://github.com/yansfil/pr-assets/blob/main/hide/sidebar-context-menus/536b794/menu-project-dark.png?raw=true)

![링크된 worktree 체크아웃 행의 메뉴: 기본 체크아웃 지정, 브랜치/경로 복사, 파괴적 항목인 Delete
worktree는
빨간색](https://github.com/yansfil/pr-assets/blob/main/hide/sidebar-context-menus/536b794/menu-checkout-dark.png?raw=true)

![에이전트 행의 메뉴: Show, Copy title, Copy session id, Close
tab](https://github.com/yansfil/pr-assets/blob/main/hide/sidebar-context-menus/536b794/menu-agent-dark.png?raw=true)

## Review

- **판단해 주세요**: 원격 체크아웃의 Delete worktree…가 이제 비활성입니다(B9/D-07). 이전에는 원격에서도
열 수 있었습니다.
- **판단해 주세요**: "New tab in main"은 보드 문구 그대로라서 기본 체크아웃 이름이 main이 아니어도 같은
라벨입니다. 대상은 home 글리프가 붙은 체크아웃입니다.
- **판단해 주세요**: 미등록 프로젝트의 Set as default checkout은 "Pin the project first
to keep a default checkout."로 비활성입니다(core가 거부하는 경우라 PRD 밖의 판단).
- **조심해서 볼 파일**: `herdr-core/src/runtime/projects.rs` - runtime mutex
안에서 미등록 행을 등록합니다. 등록 id는 행의 id를 그대로 쓰고(다음 catalog rebuild가 같은 id를 채택),
파일 I/O는 없습니다. helper가 아직 묶지 않은 장치 행과 제거 진행 중인 행은 진단 로그로 거부합니다.
- **조심해서 볼 파일**: `herdr-core/src/model.rs` - snapshot wire에 에이전트
`session_id`가 추가됩니다(없으면 생략). 세션이 바뀔 때만 값이 바뀝니다.
- **조심해서 볼 파일**: `desktop/src/main/host.ts`,
`desktop/src/main/reveal.ts` - 새 IPC. `reportBindings`와 같은 sender 검사, 절대
경로·길이·NUL 검사, `shell.showItemInFolder`만 부르며 로그에 경로를 남기지 않습니다.
- **조심해서 볼 파일**: `web/src/components/entry-menu.tsx` - 공용 메뉴 항목이 라벨과
단축키를 한 줄에 두도록 바뀌었고(`items-start` → `items-stretch`), 라벨·이유에
`data-menu-label`/`data-menu-reason`이 붙습니다. History·ViewAreas·Workspace
메뉴도 같은 컴포넌트를 씁니다.

## Evidence

- **확인한 것**: 새 web e2e `sidebar-menus.spec.ts`(고립 Herdr + debug hided +
fake claude): 세 메뉴의 항목·순서·구분선·단축키, 미등록 행 Pin → Pinned · 1과 Unpin, New
tab in main → 기본 체크아웃에 탭 2개, Set as default → home 글리프와 첫 자리 이동, Copy
session id/Copy title → 클립보드 값, 대기 중 에이전트의 Close tab… → 확인창 없이 그 탭만 닫힘.
- **확인한 것**: #219 병합 뒤 web e2e 전체 77개를 로컬에서 돌려 76개 통과, 남은
`checkout-pr.spec.ts` 하나는 536b794에서 고친 뒤 단독 3회·병렬 4회 통과. 메뉴가 바뀌어 기존 spec
두 개(`checkout-pr`, `s7`)가 첫 CI에서 떨어졌던 것을 같은 PR에서 고쳤습니다(메뉴 항목에
`data-menu-label`/`data-menu-reason`).
- **확인한 것**: herdr-core 테스트로 미등록 행 Pin이 한 이벤트로 등록·고정되고, Remove가 pane을 닫고
아무것도 등록하지 않으며, 에이전트 행이 session id를 싣는 것을 고정했습니다. `sasu implement verify`
PASS(`verify-cargo.sh test`/`lint`, 536b794).
- **확인한 것**: vitest web 438개(메뉴 규칙: 순서, 비활성 이유, 호스트별 항목, 원격 게이트, D-14) +
desktop 43개(`revealablePath` 포함), web·desktop typecheck와 eslint,
`check-design-contract.mjs` 통과.
- **확인하지 못한 것**: 데스크톱 앱을 띄워 Reveal in Finder와 Show의 ⌥n 표시를 보지 않았습니다(단위
테스트와 typecheck만). 원격 장치 행은 단위 테스트만 있습니다. 작업 중 에이전트의 Close tab… 확인창 경로는
e2e 에이전트가 대기 상태라 닿지 않았습니다.
- **확인하지 못한 것**: 이전 로컬 전체 cargo 실행에서 `hide-agent-hooks` deadline(부하 중
1.86s), `device_worktrees`(git 서명 키), `install::tests`(임시 settings.json)
세 테스트가 한 번씩 실패했고 각각 단독 3회 통과했습니다. 이 PR은 그 코드를 바꾸지 않으며 최종 verify에서는 모두
통과했습니다.
- **생성물**: `design/hide-screens.pen`의 큰 diff는 `scripts/pen-screens.mjs`
+ `gen-screens.mjs`가 만든 것으로, Projects Sidebar 시트의 메뉴 프레임 3개와 Menus and
Overlays 시트의 프로젝트 메뉴 갱신입니다. #219 병합 뒤 main의 파일에서 다시 생성했고, main과 다른 시트는 이
둘뿐입니다.

**AI tooling**: 대부분 AI 도구. 메뉴 항목·순서를 PRD 보드와 e2e 캡처로, core 변경을 테스트와 두
리뷰로 대조했습니다.

<details><summary>Verification record</summary>

- PRD: `agents/prd/sidebar-context-menus/prd.md` (sha256
4310c5aa5d74f6efc5b8863cb1dd0ac4f2955b925b3c8b505181470ba6264bfd)
- Base 72d3083 → head 536b794, verified 2026-09-28T00:02:47.928Z: PASS
- Verification report:
`agents/runs/sidebar-context-menus/verification-report.json` and
`agents/runs/sidebar-context-menus/verification-report.md`; source
fingerprint
3e1226c1e8a8a521a4d8c71c87c89b677f1027c27ee5af503a1a14d16a139a52
- Suites:
  - S1: GREEN `bash scripts/verify-cargo.sh test` (exit 0)
  - S2: GREEN `bash scripts/verify-cargo.sh lint` (exit 0)
- Reviews:
- Fidelity: 820f88d 전체 계약(B1-B11, D-01-D-14) Fix now 없음; a44ef6a,
1222fd0(#219 병합 해소 포함), 536b794 후속 리뷰 모두 Fix now 없음. Follow-up:
⌥n·Reveal in Finder·작업 중 에이전트 Close tab 확인창·원격 행은 실행 관찰 없음.
- Code: 820f88d 전체 diff Fix now 없음; a44ef6a, 1222fd0(병합된
sidebar.tsx/actions.ts가 이 PR 쪽 변경만 담는지 확인), 536b794 후속 리뷰 모두 Fix now 없음.
Follow-up: `folderMenu`의 `separated: false` 덮어쓰기 함정, entry-menu 공용 변경의
다른 메뉴 시각 확인. 폴더 행 항목 목록 중복은 a44ef6a에서 하나로 통합.
- 자체 발견과 CI: e2e의 `Delete worktree… (disabled)` 단언이 worktree reader 타이밍에
기댄 것(a44ef6a에서 수정), a44ef6a CI web shell에서 기존 spec 두 개가 새 메뉴 DOM·항목에 맞지
않아 실패(1222fd0), Radix roving focus 타이머 때문에 화살표 이동이 짧아지던 spec
루프(536b794). hcoord plugin job은 알려진 hang으로 취소.
- 증거: #219 병합 뒤 헤더가 바뀌어 메뉴 캡처를 병합된 head에서 다시 찍어 등록했고, Fidelity가 세 메뉴를 다시
확인(Fix now 없음).
- Evidence: 18 registered (18 screenshot); paths are local to the run
directory
-
agents/runs/sidebar-context-menus/artifacts/e2e/sidebar-menus-project-dark.png
-
agents/runs/sidebar-context-menus/artifacts/e2e/sidebar-menus-project-light.png
-
agents/runs/sidebar-context-menus/artifacts/e2e/sidebar-menus-checkout-dark.png
-
agents/runs/sidebar-context-menus/artifacts/e2e/sidebar-menus-checkout-light.png
-
agents/runs/sidebar-context-menus/artifacts/e2e/sidebar-menus-agent-dark.png
-
agents/runs/sidebar-context-menus/artifacts/e2e/sidebar-menus-agent-light.png
-
agents/runs/sidebar-context-menus/artifacts/e2e-wait-read/sidebar-menus-project-dark.png
-
agents/runs/sidebar-context-menus/artifacts/e2e-wait-read/sidebar-menus-project-light.png
-
agents/runs/sidebar-context-menus/artifacts/e2e-wait-read/sidebar-menus-checkout-dark.png
-
agents/runs/sidebar-context-menus/artifacts/e2e-wait-read/sidebar-menus-checkout-light.png
-
agents/runs/sidebar-context-menus/artifacts/e2e-wait-read/sidebar-menus-agent-dark.png
-
agents/runs/sidebar-context-menus/artifacts/e2e-wait-read/sidebar-menus-agent-light.png
-
agents/runs/sidebar-context-menus/artifacts/e2e-merged/sidebar-menus-project-dark.png
-
agents/runs/sidebar-context-menus/artifacts/e2e-merged/sidebar-menus-project-light.png
-
agents/runs/sidebar-context-menus/artifacts/e2e-merged/sidebar-menus-checkout-dark.png
-
agents/runs/sidebar-context-menus/artifacts/e2e-merged/sidebar-menus-checkout-light.png
-
agents/runs/sidebar-context-menus/artifacts/e2e-merged/sidebar-menus-agent-dark.png
-
agents/runs/sidebar-context-menus/artifacts/e2e-merged/sidebar-menus-agent-light.png
- Changed paths: 46 (see Files changed)

</details>
yansfil added a commit that referenced this pull request Sep 28, 2026
Brings in Agent tab groups (#217), the sidebar shell (#219), the
sidebar row menus (#220) and the project row fold (#221) alongside the
issue-first Overview.

- The every-project screen keeps main's title, Overview (sidebar-shell
  D-02), on the issue-first board; its docs and Screen / Main follow.
- actions.ts keeps main's row-menu and project-fold actions and the
  issue-linked createWorktree; WorkspaceDialogs keeps the issue dialogs
  and main's Remove project `listed` flag; keyboard.ts keeps the renamed
  recent entries and main's agentListOrder.
- design/hide-screens.pen is rewritten from the merged
  scripts/pen-screens.mjs with scripts/gen-screens.mjs rather than
  merged by hand.
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