Repository navigation
Show the Explorer's Git status as a mark in its root row - #587
Merged
Merged
Conversation
…reads The host refused every failed rev-parse as not a repository, so a git that could not run or did not finish read the same as a plain folder. A git that cannot run is now Io, the operator's to act on; Unsupported stays only for a folder Git finds no repository for. The core marks that answer not_a_repository and logs each new History failure as changes.unavailable.
The Git status was a line between the root row and the tree. It changed height when the answer landed (loading, then a wrapped unavailable line, or nothing), so every row moved, and a double-click aimed during loading opened the row above. The status is now a spinner or a warning badge beside the refresh button, and a folder that is not a repository draws nothing. The new spec holds the Git answer at the socket, measures a row, releases it and asserts the row did not move, for a plain folder, a repository and a repository whose index is corrupt.
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.
Refs #570
Summary
tab-strip-fit.spec.ts"File View tabs use the same shrinking strip..."가 파일 12개를 연달아 열 때 한 개를 못 열던 제품 원인을 고칩니다.Git 저장소가 아닌 폴더는 "Loading Git status"(25.5 px)가 두 줄로 접히는 "Git status unavailable: <경로> is not inside a Git repository"(58.5 px)가 되어 행이 33 px 내려가고, 저장소는 loading 줄이 사라져 한 줄 올라갑니다.
그 사이에 떨어진 더블클릭은 겨냥한 행의 위 행(이미 열린 파일)을 엽니다. 실제 사용자의 빠른 더블클릭도 같습니다.
git을 실행할 수 없음, Git이 읽지 못하는 저장소, 이전 답을 보여 주는 중 실패)는 경고색!badge이고 tooltip이 이유를 말합니다.changes.unavailable)에만 남깁니다(설계 원칙 13).git실행 실패를 더 이상 "저장소 아님"으로 덮지 않습니다: 실행 실패와 시간 초과는Io,Unsupported는 Git이 저장소를 찾지 못한 폴더뿐입니다. core는 그 답을not_a_repository로 표시합니다.Badge(outline +border-warning text-warning, TaskBoards와 같은 모양)와LoaderCircleIcon(SearchPalette와 같은 크기)를 씁니다.Review
.git파일이 엉뚱한 곳을 가리키거나 dubious ownership처럼rev-parse가 실패하는 저장소도 지금처럼 "저장소 아님"으로 남아 Explorer에 표시가 없습니다. 이를 가르려면 상위 폴더의.git을 보는 판정이 필요해 이 PR에 넣지 않았습니다.hide-host/src/git.rs- failure path.rev-parse실행 실패가Io로 올라갑니다. wire 모양은 그대로라 protocol 번호는 올리지 않았고, 이전 helper가 있는 device는git실행 실패를 계속 "저장소 아님"으로 보내 표시가 없을 뿐입니다.herdr-core/src/runtime/projects.rs- runtime mutex 안.ingest_changes에 diagnostic 한 줄이 늘었고, 실패 이유가 처음 나타나거나 바뀔 때만 씁니다.herdr-core/src/model.rs- snapshot wire.not_a_repository는 false일 때 생략됩니다.Evidence
web/e2e/explorer-git-status.spec.ts3개: socket에서 Git 답이 실린 frame을 잡아 두고second.md행을 잰 뒤 풀어서, 행 상자가 그대로이고 최종 표시가 맞는지 봅니다(비 Git 폴더: 없음, 저장소: 없음, index가 깨진 저장소:!와 이유).수정 전(origin/main a64e118)에는 3개 모두 행 위치에서 실패했습니다: y 179.5 -> 212.5, 179.5 -> 154, 179.5 -> 196.
수정 후 3/3,
--repeat-each=20 --workers=8 --retries=0로 60/60 통과.tab-strip-fit.spec.ts를--repeat-each=20 --workers=8 --retries=0: 80/80 통과(test 4개 x 20). 수정 전 같은 조건에서:173이 2/20 실패했습니다.changes::tests::only_a_folder_git_finds_no_repository_for_is_not_a_repository: 실제 host로 비 Git 폴더는not_a_repository, helper 미준비와 index가 깨진 저장소는 아님.host와 core의 changes, git, snapshot delta, stale test 188개 통과.
cargo fmt --check,node scripts/check-design-contract.mjs통과.Screen / Menus and Overlays를 Light/Dark로 export해 확인했습니다(아래 접힌 블록).hide-host전체 test 중clone::a_taken_name_is_refused_before_git_runs1개가 이 기기의 git commit 서명 agent 오류로 실패했습니다. 이 변경과 무관하고 CI에는 서명 설정이 없습니다.git을 실행할 수 없는 경우(Io)를 직접 만드는 test는 없습니다. test 프로세스의 PATH를 바꿔야 해서 넣지 않았고, 고칠 수 있는 실패의 표시는 index가 깨진 저장소로 확인했습니다.design/hide-screens.pen은node scripts/gen-screens.mjs가scripts/pen-screens.mjs에서 다시 만든 것입니다.추가 증거