Skip to content

fix: give back what stood under the 보기 slot when it closes, and give the documents their own ✕ - #1657

Merged
yansfil merged 1 commit into
mainfrom
fix/lane-slot-and-documents-close
Oct 24, 2026
Merged

yansfil merged 1 commit into
mainfrom
fix/lane-slot-and-documents-close

Conversation

@yansfil

@yansfil yansfil commented Oct 23, 2026

Copy link
Copy Markdown
Contributor

Related: #1628

Summary

문서를 보다가 ⌘E로 lane을 닫고, Conductor 지도나 PR 카드를 열었다 닫으면 숨겨 둔 문서가 다시 떴습니다.
이제 닫힌 lane에서 보기 슬롯을 열면 슬롯만 열리고, 슬롯을 닫으면 슬롯을 열기 전 모습으로 돌아갑니다(문서를 보던 중이었으면 문서, 아니면 lane이 닫힘).
문서 칸에도 도구 칸과 같은 ✕가 생겼습니다. 탭 줄 오른쪽 끝에 있고, 누르면 탭은 그대로 둔 채 문서 칸만 닫힙니다.

문서 탭 줄 오른쪽 끝의 ✕(문서 닫기), 오른쪽 Memory 머리의 ✕와 같은 모양

Review

  • 판단해 주세요: 문서 ✕는 문서 칸을 여러 영역으로 나눴을 때 오른쪽 위 영역의 탭 줄에만 한 번 그립니다(좁은 창의 한 영역 보기에서는 보이는 영역에).
  • 판단해 주세요: 슬롯을 닫으면 "문서가 있으면 문서를 보인다"던 기존 B13 규칙을 "슬롯 아래 있던 것을 돌려준다"로 바꿨습니다. 문서를 접은 채 카드를 열었다 닫으면 보는 칸이 닫힙니다.
  • 조심해서 볼 파일: herdr-core/src/runtime/detail.rs - show_front_documents_if_any를 지우고, 닫힌 lane을 여는 슬롯은 documents를 끕니다.
  • 조심해서 볼 파일: web/src/AreaTree.tsx - 에이전트 영역과 같이 쓰는 탭 줄에 선택 항목 close를 더했고, 문서(ViewAreas.tsx)만 넘깁니다.

Evidence

  • 확인한 것: 새 core 테스트 closing_the_slot_gives_back_what_stood_under_it(⌘E로 닫은 lane에 카드 → 카드만, 닫으면 칸 없음 / 문서 위에 카드 → 닫으면 문서).
  • 확인한 것: herdr-core 관련 383개 테스트, clippy, fmt 통과. web typecheck, lint, 단위 테스트 2085개, build 통과.
  • 확인한 것: lane 관련 e2e 7개 spec 83개 통과, 새 단계로 문서 ✕ 클릭 후 Memory만 남고 문서 버튼으로 돌아오는 것을 확인.
  • 확인하지 못한 것: Conductor 지도 자체를 띄우는 e2e는 없습니다. 지도와 PR 카드는 같은 보기 슬롯 경로(call_front_lane, close_detail)라 core 테스트로 대신했습니다.
  • 확인하지 못한 것: 나머지 web e2e, desktop e2e, Windows와 Linux 레인은 CI에 맡깁니다. 설치된 앱에서는 아직 확인하지 않았습니다.

…the documents their own ✕

A card or map opened into a lane ⌘E closed stood over the documents kept
behind it, so closing it brought those documents back. The slot now opens a
closed lane alone, and its ✕ leaves the viewing column as it was before the
slot came forward. The documents get a ✕ at the top-right of their tab bar,
like a tool's head, that closes their column alone.
@yansfil
yansfil merged commit e2f8285 into main Oct 24, 2026
54 of 56 checks passed
@yansfil
yansfil deleted the fix/lane-slot-and-documents-close branch October 24, 2026 00:06
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