Skip to content

Open shared Overview and navigate projects to checkouts - #387

Merged
yansfil merged 5 commits into
mainfrom
feat/overview-modal
Oct 4, 2026
Merged

yansfil merged 5 commits into
mainfrom
feat/overview-modal

Conversation

@yansfil

@yansfil yansfil commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Closes #349
Closes #350
Related: agents/prd/overview-modal/prd.md, agents/prd/overview-remove/prd.md

Summary

Overview를 하나의 공유 모달/페이지로 열고, 사이드바·툴바·단축키에서 접근합니다.
프로젝트별 Overview 행과 이동 경로를 없애고, 프로젝트 행은 마지막으로 포커스한 사용 가능한 체크아웃으로 이동합니다.

Dark shared Overview above a mounted Workspace Light shared Overview with Needs You indication
격리된 macOS 후보 창 캡처: 작업 화면 위 Overview, 선택된 사이드바 행과 테마별 Needs You 표시를 확인할 수 있습니다.

Review

2026-10-04 승인된 다섯 상태를 반영했습니다. 별도 Pen 보드 리뷰는 생략합니다.

  • D-07: 오른쪽 아이콘은 Overview, Open server 순서이며 File Views 개수 뱃지를 유지합니다.
  • Needs You가 0이면 수와 점 모두 숨깁니다.
  • 라이트 테마는 기존 토큰을 따릅니다.
  • 좁은 창은 기존 패턴을 따릅니다.
  • 선택된 탭은 기존 패턴을 따릅니다.
  • 판단해 주세요: 캡처의 모달 크기·내용 밀도와 기존 작업 화면 사이의 시각적 관계.
  • 조심해서 볼 파일: web/src/Overview.tsx, web/src/actions.ts - 레이어 종료와 키보드 소유권 반환.
  • 조심해서 볼 파일: herdr-core/src/runtime/events.rs - 대상 검증 후 체크아웃 포커스·프로젝트 접기를 한 이벤트로 반영.
  • 비용 검토: count는 rest/agents 변경 때 계산하며 터미널 청크는 추가 계산·알림·큐를 만들지 않습니다.

Evidence

  • Rust 전체 테스트 2,058개, fmt/clippy 통과. 기존 ignored 14개는 실행하지 않았습니다.
  • scripts/verify-web.sh 통과: 웹 902개, 데스크톱 99개 테스트와 각 typecheck·lint·build, 플러그인 검증.
  • 관련 웹 E2E 통과: 공유 레이어·포커스 복귀·단축키 해제/복원, 프로젝트 이동, 콘텐츠, PR 카드, 세션 검색.
  • 사설 Herdr와 격리된 Electron 후보에서 네이티브 레이어·캡처·서버·세션 검색 E2E 3개 통과.
  • Aside 실제 브라우저에서 Overview 열기·닫기와 Workspace 유지 확인. 디자인 계약·개인정보 검사 통과.
  • 확인하지 못한 것: 전체 플랫폼 E2E, 실 SSH 연결, 설치 배포 경로. 원격 CI 결과는 별도로 확인해야 합니다.
  • 생성물: design/hide-screens.pen에 공유 Overview와 승인된 상태를 반영했습니다. 라이브러리와 토큰은 그대로입니다.

@yansfil
yansfil marked this pull request as draft October 4, 2026 09:37
@yansfil yansfil changed the title Feat/overview modal Open shared Overview and navigate projects to checkouts Oct 4, 2026
@yansfil
yansfil marked this pull request as ready for review October 4, 2026 09:51
@yansfil

yansfil commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

c010565 push: #349/#350의 체크아웃 이동·공유 Overview 범위·새 창 Workspace 복원·키캡·툴바·Chrome 이동 명령을 정확히 단언하도록 spec을 수정했습니다. macOS 관련 E2E 8개, 단축키 unit 39개, typecheck·lint·개인정보 검사 통과. timeout·retry·skip 변경 없음.

@yansfil

yansfil commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

origin/main(#386 포함)을 merge해 충돌을 해결하고 Overview 모달·사이드바·툴팁·단축키 표시를 네 언어 번역 키에 연결했습니다. 전체 웹/데스크톱/hcoord 검증, core appearance 11개, 관련 E2E 5개, 디자인 계약 및 실제 브라우저 확인 통과 (e1cec181).

@yansfil
yansfil merged commit 58ca12d into main Oct 4, 2026
21 checks passed
@yansfil
yansfil deleted the feat/overview-modal branch October 4, 2026 11:58
yansfil added a commit that referenced this pull request Oct 4, 2026
Related: #329, #361, #386, #387
Closes #322

## Summary

- File View도 Agent와 같은 연속 축소 계산과 탭 슬롯을 사용합니다.
- 선택 탭이 제목과 닫기를 가장 오래 유지하며, 최소 마크 폭까지 모자랄 때만 스크롤합니다.
- 기본은 기존 파일 타입 아이콘이며, 전체 이름과 저장 상태는 툴팁·접근성 이름에 남습니다.
- 새 문구는 네 언어에 추가했고 `docs/UI_BEHAVIOR.md`를 갱신했습니다.

![같은 폭에서 main과 변경 화면
비교](https://github.com/user-attachments/assets/87dcc0e7-940e-4861-bedd-69565a884caa)
같은 12개 파일과 영역 폭입니다. 변경 후에는 선택 제목을 남기면서 나머지 파일도 스트립 안에 들어옵니다.

## Review

- **질문**: 최소 상태는 A 파일 타입, B 확장자, C 이름 앞글자 중 무엇을 쓸까요? 기존 패턴인 A를 구현했습니다.
- B/C는 같은 실행 화면에서 최소 상태의 마크만 바꾼 제안입니다. `collapsedDisplayMark` 한 곳에서 교체할
수 있습니다.

![최소 밀도 후보 세
가지](https://github.com/user-attachments/assets/324c3c99-2142-4610-9186-ebd2549c115c)

- **조심해서 볼 파일**: `AreaTree.tsx`의 크기 관찰을 View에도 적용합니다. 공유 계산과 Agent 동작은
유지합니다.
- **비용 검토**: 보이는 View 영역당 ResizeObserver 하나를 추가합니다. 콜백은 경계 두 번 읽기와 CSS 폭
두 번 쓰기입니다.
- 밀도가 바뀔 때만 렌더하며 core 이벤트·PTY 리사이즈를 보내지 않습니다. 최대 6개 영역이고 언마운트 때 해제합니다.

## Evidence

- 수정 전 실제 e2e에서 File 탭이 104px에 멈추는 실패를 확인했습니다. 수정 후 독립 폭 계산과 실제 DOM이
일치합니다.
- `verify-web.sh` 전체 통과: web 942개, desktop 99개 단위 테스트와 타입·lint·빌드,
hcoord 검사 포함.
- 관련 e2e 5개 통과: Agent 연속 축소, File 12탭의 밀도·선택·스크롤·닫기, 미리보기, 좁은 화면, 컬럼 토글.
- 사설 Herdr와 격리된 Electron의 정확한 창 캡처로 축소·미저장 마크를 확인했고, 후보는 두 테마와 한·중·일
이름으로 비교했습니다.
- 디자인 계약, harness 비공개 경계, 공개 소스의 워크스테이션 식별 정보 검사가 통과했습니다.
- **확인하지 못한 것**: 아이콘 최종 선택은 사람의 판단이 남아 있습니다. Windows/Linux 네이티브 UI와 전체
e2e는 실행하지 않았습니다.
- 기존 desktop 단위 테스트의 3개 skip은 그대로이며 이번 변경의 e2e에는 skip·재시도·시간 제한 변경이
없습니다.

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

밝은 테마에서도 같은 세 후보를 비교했습니다.
![밝은 테마
후보](https://github.com/user-attachments/assets/de4033b5-cc99-4d15-8bdd-84c4db451633)

</details>
yansfil added a commit that referenced this pull request Oct 4, 2026
## Summary

Every PR ran Rust, the unit suites on three OSes and the full E2E, even
a docs-only PR.
The median time for the required checks to finish was 32.45 min (Orca
16.22, Paseo 20.65).
Now a `plan` job reads the changed paths (`HEAD^1..HEAD` of the PR merge
commit) and plans only the lanes the change needs.
The same plan sets each job's `if:` and is what `verify` checks the
results against.

- `verify` passes only when every **planned** lane is `success` and
every **unplanned** lane is `skipped`. A planned lane that was skipped,
failed or cancelled fails `verify`, and so does a `needs` entry the plan
doesn't know or a failed plan.
- The Windows browser `@platform` smoke moves out of `windows check`
into its own `windows e2e` lane, which calls `web-e2e.yml` the same way
nightly does. Compile, unit tests and the OS contract stay in `windows
check`.
- `checks` is split into `policy` (on every plan), `web checks`,
`desktop checks` and `hcoord`.
- A main push, a comparison that fails (base missing, not a merge
commit, diff parse failure, `cargo metadata` failure) and any
unclassified path all run **every** lane.
- Main pushes no longer cancel each other (`cancel-in-progress` is now
PR-only). `design-contract.yml` also cancels only the same PR's previous
run.
- The rules live in one place, `scripts/ci-plan.py`; the table in
`docs/TESTING.md`, "Which lanes a pull request runs", explains them.

## Review

- **판단해 주세요**: whether it is acceptable that **main's full run is the
safety net** for a lane wrongly left out. A wrongly skipped lane
surfaces as a failure on main after the merge, not on the PR.
- **판단해 주세요**: whether to keep the Windows smoke now skipping `@flaky`
tests, as macOS already did. No `@platform` test is tagged `@flaky`
today, so the behavior is the same for now.
- **판단해 주세요**: web code shared with the desktop host (`SHARED_WEB`) also
runs the desktop lanes and the macOS/Windows `@platform` lanes. That is
broader than the brief's "desktop 연결까지"; I chose it because terminal,
input and shortcut changes are Windows-impacting.
- **조심해서 볼 파일**: `scripts/ci-plan.py` `READERS` and `SHARED_WEB`. These
two hand-kept lists are where a lane can be dropped wrongly (the failure
path). Review found five omissions from tests reading files across
folders and they are fixed (below).
- **조심해서 볼 파일**: the `verify` job in `.github/workflows/pr.yml` and
`aggregate()`. This is the merge gate itself.
- **질문**: `site/`, `tools/`, `spikes/`, `.github/*.md` and `agents/prd`
currently fall under "unknown path → everything". Should a follow-up
narrow them?

## Evidence

**Plan replay over the last 20 merged PRs.** Each row runs the
classifier on the merge commit's `^1..` diff:

| PR | 경로 수 | 계획 | 생략되는 lane | Rust crate |
| --- | ---: | --- | --- | --- |
| #389 | 7 | 전체 (`scripts/web-shell-measure/run.sh`) | - | 전체 |
| #388 | 6 | 부분 | desktop-checks, hcoord, os-contract, windows-check,
windows-e2e, macOS-e2e, desktop-e2e | herdr-core |
| #385 | 125 | 전체 (`.github/pull_request_template.md`) | - | 전체 |
| #387 | 70 | 전체 (`contracts/hided-ws.schema.json`) | - | 전체 |
| #386 | 61 | 전체 (`contracts/hided-ws.schema.json`) | - | 전체 |
| #368 | 2 | 전체 (`.github/workflows/pr.yml`) | - | 전체 |
| #372 | 23 | 전체 (`.github/workflows/nightly.yml`) | - | 전체 |
| #382 | 3 | 부분 | web-checks, desktop-checks, hcoord | herdr-core,
hide-host, hided |
| #383 | 1 | 부분 | rust, desktop-checks, hcoord, os-contract,
windows-check, desktop-e2e | - |
| #384 | 8 | 부분 | web-checks, desktop-checks, hcoord, os-contract,
windows-check, windows-e2e, web-e2e, macOS-e2e, desktop-e2e | herdr-core
|
| #380 | 2 | 부분 | web-checks, desktop-checks, hcoord | herdr-core, hided
|
| #381 | 1 | 부분 | rust, desktop-checks, hcoord, os-contract,
windows-check, desktop-e2e | - |
| #378 | 58 | 전체 (`.github/workflows/nightly.yml`) | - | 전체 |
| #377 | 11 | 부분 | hcoord | herdr-core, hided |
| #361 | 91 | 전체 (`agents/prd/three-column-panel/prd.md`) | - | 전체 |
| #376 | 7 | 부분 | web-checks, desktop-checks, hcoord | herdr-core,
hide-agent-hooks, hide-ai, hide-herdr-client, hide-host, hide-kit,
hide-memory, hide-platform, hide-session, hided |
| #367 | 27 | 부분 | hcoord | herdr-core, hide-host, hided |
| #375 | 2 | 부분 | web-checks, desktop-checks, hcoord | herdr-core,
hide-agent-hooks, hide-host, hide-kit, hide-memory, hided |
| #366 | 8 | 전체 (`.github/workflows/release.yml`) | - | 전체 |
| #362 | 153 | 전체 (`agents/prd/overview-request-view/prd.md`) | - | 전체 |

- **줄어드는 lane**:
- 11 of 20 PRs would run a partial plan; 9 run everything because they
touch `.github/`, `contracts/`, `scripts/` or `agents/`.
- A docs-only PR (#384) runs no E2E, Windows or macOS lane. It still
runs `rust -p herdr-core`, because a herdr-core test reads the root
`AGENTS.md`.
- A web display change (#388) runs no Windows, macOS, desktop or
OS-contract lane.
- A Rust crate change tests only that crate and its reverse
dependencies, from `cargo metadata`. For example #380 tests `herdr-core`
and `hided` only.
- **확인한 것**:
  - `scripts/tests/test_ci_plan.py` passes 19 cases. They cover:
    - Docs-only, which excludes Rust and E2E.
    - A pure web display change, which excludes the Windows smoke.
    - `hide-platform`, which includes Windows and the OS contract.
- Shared web, a `@platform` spec, `desktop/src/main` and leaf-crate
reverse dependencies.
    - Every `READERS` entry.
- Unknown paths, lockfiles and workflows, a type change, an empty diff,
a missing base, a non-merge HEAD and a missing crate graph, which all
run everything.
- The aggregate rejecting a skipped, failed or cancelled planned lane,
an unplanned lane that ran, a missing or extra `needs` entry, a failed
plan and an empty plan.
- The full `python3 -m unittest discover -s scripts/tests` suite passes
(108). That includes the check that every gate a workflow runs is a
tracked script.
- actionlint passes on every workflow. `check-herdr-pin-single-source`,
`check-hide-design-enforcement`, `check-no-workstation-identity`,
`check-harness-ignore-anchor` and `verify-cargo.sh fmt-check` all pass.
- Running `plan` on #388 produced the expected `GITHUB_OUTPUT` (`lanes`,
`full`, `rust-packages`) and the job-summary table.
- Running `aggregate` with a fake `needs` passed when the results
matched the plan and failed when a planned lane was skipped.
- **리뷰 반영**: a code review and a fidelity review against the brief found
these, now fixed:
- Tests read files across folders, so these changes now plan the lanes
that read them: the root `AGENTS.md` (herdr-core test), `web/src` and
`hided/src` (herdr-core structure tests), `wirePath.ts` (imported by web
e2e) and `design/tokens.json` (read by web tests).
  - Every crate change now runs `windows check`.
  - Main pushes no longer cancel each other.
  - `docs/PERFORMANCE_TESTING.md` no longer describes the old lanes.
- **CI ([run
37214808511](https://github.com/modakbul-gongbang/hide/actions/runs/37214808511))**:
- The plan was full (the change touches `.github/` and `scripts/`), and
every lane ran, including the separate `windows e2e`. All passed.
- The first attempt failed in Linux web e2e shard 2/6 on
`home.spec.ts:82` (the location bar read `Home/hde-…` instead of
`Home/~/hide`). This PR touches no web or test code. `verify` reported
exactly `web-e2e: planned, expected success, got failure`.
  - One rerun of the failed jobs passed, and `verify` is green.
- The `home.spec` failure is a flaky-test candidate; it belongs to the
main-green work, not this PR.
- **확인하지 못한 것**:
- Partial plans have never run on Actions. A docs-only or web-only PR
has not been tried; the first one after the merge will show it.
- The cold-cache time of the `windows e2e` lane is unmeasured. It uses
the same path as the nightly Windows lane.
- Main runs now queue instead of cancelling, but GitHub keeps only one
pending run per group. If three merges land in a row, the middle merge's
full run can be dropped.
- **안전망과 위험**: a lane that should have run but was skipped is the risk.
Main's full run catches it after the merge; the fix is then a rule in
`scripts/ci-plan.py` plus a test case.

Does not include: a failure ledger or history, a quarantine registry,
cache changes, a `max-parallel` experiment, or the `package.yml` `paths`
trigger (all out of scope).
If this and the main-green PR overlap in `pr.yml`, whichever merges
later rebases.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant