Repository navigation
Explorer, History, View 탭, 사이드바에서 파일과 폴더를 OS 파일 관리자로 보기 (reveal_external) - #327
Merged
Merged
Conversation
…y, View tabs and the sidebar One action, reveal_external, now sits in the Explorer's file and folder row menus, History row menus, View tab menus and the sidebar's project and checkout rows (renamed from reveal_finder). It hands the item to the desktop host, which selects it in its parent folder through shell.showItemInFolder and opens nothing. The label follows the host's OS, which the preload bridge now reports as platform: Reveal in Finder, Reveal in File Explorer, Open Containing Folder, or Show in File Manager. A plain browser tab lists no such item, another device's files list it disabled with the reason, and a deleted file's History row lists it disabled. The View tab's in-app Reveal in Explorer becomes Select in File Tree (select_in_tree), so it no longer shares a name with Windows' file manager. The host now refuses a path that no longer exists as well as one that is not absolute, and logs reveal.refused or reveal.shown without the path. UI_BEHAVIOR.md's Explorer, View tab and sidebar menu paragraphs describe the menus as they are; the Explorer paragraph no longer promises Open with Default App or the copy items the menu does not have.
…nd pick the fixture's sidebar row by name The main process's reveal handler now ends its chain with a logged reveal.failed, as the open-path handler beside it does. docs/README.md lists web/src/revealExternal.ts, desktop/src/main/reveal.ts and the new desktop spec under their rows. The spec's sidebar step picks the fixture project's row by its name rather than the first row.
…tion value Only the source_intake frontmatter changes; no goal, decision or behavior does.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: Closes #324 · PRD
agents/prd/reveal-external/prd.mdSummary
Reveal in Finder)으로 OS 파일 관리자를 열 수 있고, View 탭의Reveal in Explorer는 앱 안 트리를 고르는 다른 동작인데 Windows 파일 탐색기와 이름이 겹쳤습니다.reveal_external을 씁니다(사이드바reveal_finder는 이름만 바뀜).shell.showItemInFolder로 부모 폴더에서 항목을 선택한 채로 OS 파일 관리자를 열고, 아무것도 실행하지 않습니다.Reveal in Finder, WindowsReveal in File Explorer, LinuxOpen Containing Folder, 그 밖Show in File Manager). 원격 디바이스에서는 이유와 함께 비활성, 일반 브라우저 탭에서는 숨김.Select in File Tree(select_in_tree)로 이름을 바꿨고,docs/UI_BEHAVIOR.md의 Explorer, View 탭, 사이드바 메뉴 문단을 실제 메뉴대로 고쳤습니다.View 탭 메뉴 끝: Copy path, Select in File Tree, OS 라벨의 reveal, Close view.
Review
Only for files and folders on this computer.로 바꿨습니다(D-04).reveal.refused/reveal.shown/reveal.failed를 경로 없이 로그에만 남깁니다. 화면 알림은 없습니다(D-09, 원칙 13).desktop/src/preload/index.ts- 브리지에platform키가 추가돼 공개 표면이 바뀜.desktop/src/main/host.ts- failure path. 존재 확인 후showItemInFolder, 실패는 로그만.web/src/viewLayout.ts- View 메뉴 ID가 바뀜(reveal->select_in_tree,reveal_external추가).agents/prd/reveal-external/prd.md- 구현 경계 밖 변경은 이 파일의source_intake한 줄뿐입니다. 검증 preflight가 비정규 값을 거부해 Observer 지시로 amend했습니다(Goal·Decision·Behavior 불변).prd/reveal-external입니다. PRD D-12의gen-prd/reveal-external은 기록 트리가 쓰고 있어 같은 이름으로 낼 수 없었습니다.design/hide-ui.lib.pen,design/hide-screens.pen,scripts/pen-*.mjs에는 아직Reveal in Explorer/Reveal in Finder가 남아 있습니다. 이 실행은.pen편집 권한이 없어 손대지 않았습니다. 디자인 쪽 후속 이슈로 둘까요?Evidence
reveal-external.spec.ts가 Electron 앱(격리된 Herdr 0.9.1, hided)에서 Explorer 파일·폴더 행, View 탭, History 행, 사이드바 프로젝트 행의 메뉴 줄과 라벨을 확인했습니다. 각 reveal이 넘긴 경로 5개를showItemInFolder기록기로 확인했습니다.The file was deleted., 상대 경로와 없는 경로는reveal.refused(path,missing), 로그에 경로가 없음을 확인했습니다. 이 spec은 main 병합 후 head를 포함해 4회 통과했습니다.pnpm --dir desktop e2e --grep-invert @needs-focus전체 28 통과, 5 건너뜀(main 병합 전 head, 이 브랜치 소스는 병합 후와 동일). 건너뛴 5개는 SSH 디바이스·kit 픽스처 조건으로 스스로 건너뛰는 테스트입니다.s7.spec.ts+sidebar-menus.spec.ts14 통과(main 병합 전 head, 브라우저 탭에는 reveal 없음,Select in File Tree라벨).bash scripts/verify-web.sh통과(병합 후 head에서 web 834, desktop 83 unit 포함).verify-cargo.sh test,lint) PASS. 웹 레인은 봉인 suite 밖에서 같은 head에 직접 실행했습니다.showItemInFolder를 기록기로 바꾸고, 이 맥 미니는 화면 잠금 상태일 수 있어 네이티브 관찰을 하지 않았습니다.@needs-focus데스크톱 테스트는 CI에 맡겼습니다.추가 증거
Explorer 파일 행 메뉴: Open to the side, 구분선, Reveal in Finder, 구분선, Rename, 구분선, Move to Trash.
History의 삭제된 파일 행: reveal이 이유와 함께 비활성.
후속 개선(이번 범위 밖): 삭제된 파일의 Diff View 탭에서 reveal 비활성화, 깨진 심볼릭 링크를
lstat로 허용, UI_BEHAVIOR의 원격 트리 문구,revealInExplorer이름 정리,reveal.failed에 오류 종류 기록.PRD amendment 1:
source_intakefrontmatter를current conversation으로 고침(Observer 지시, Goal·Decision·Behavior 변경 없음).Verification record
agents/prd/reveal-external/prd.md(sha256 2e4fcf15ef963ab414ff7bc17805364260d2f60dac9831467edb4ee0470d0be6)agents/runs/reveal-external/verification-report.jsonandagents/runs/reveal-external/verification-report.md; source fingerprint 84371e229e46d04bd624435a11fde907724b3f49895ca5c688a909c2c6cb8d30bash scripts/verify-cargo.sh test(exit 0)bash scripts/verify-cargo.sh lint(exit 0)gen-prd/reveal-external로 푸시하므로 해소, 'verify NOT_RUN'은 이후 PASS로 해소. Follow-up은 아래 Review에 정리reveal.failed로그 catch, docs/README.md 소유 파일 표기. e2e 사이드바 행 선택을 이름으로 바꿈(441effb)source_intake한 줄만 바뀜(Observer가 지시한 amendment 1). 추가 증거 로그 3개도 PRD와 모순 없음, 건너뛴 5개 테스트는 환경 변수 조건으로 무관함을 확인