Repository navigation
Conversation
…ry dialog (AGT-4005) The supervisor page's Add repository dialog gets a "Connect GitHub repo" section that consumes the existing GET /api/github/repos?q= and POST /api/repos/clone endpoints (#581). - Debounced search with stale-response protection; results show the full name, a private badge, and a cloned badge in place of the Clone button. - Per-row clone progress (Cloning..., then cloned or the error with Retry); a missing GH_TOKEN (503) is explained instead of rendering an empty list. - On success the Repositories panel and local picker list are reloaded via reloadProjectList() in supervisor.js. - GitHub names are written with textContent/dataset only. Requests go through the webToken.js fetch seam like every other dashboard call. The issue's file scope (dashboardHtml.ts) predates the static supervisor page redesign, so the change lives in web/static instead.
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.
무엇
supervisor 페이지의 Add repository 대화상자(기존 저장소 관리 영역)에
Connect GitHub repo섹션을 추가했다.GET /api/github/repos?q=로 검색한다(250ms debounce, 늦게 도착한 이전 응답은 버림). 행마다 full name,private배지, 이미 clone된 저장소는 Clone 버튼 대신cloned배지를 보여준다.POST /api/repos/clone{ fullName }을 보낸다. 행 단위로 진행(Cloning…) → 성공(cloned+ 경로) / 실패(에러 문구 +Retry)를 표시한다.supervisor.js의reloadProjectList()로 Repositories 패널과 로컬 picker 목록을 다시 읽는다.web/static/js/githubConnect.js(classic script, 의존성 없음). GitHub 이름은textContent/dataset로만 쓴다. 요청은 다른 대시보드 호출처럼webToken.jsfetch seam을 거친다.왜
API(#581)는 있었지만 대시보드에 진입점이 없어서 운영자가 GitHub 저장소를 연결할 수 없었다. 이슈에 적힌 파일 범위
dashboardHtml.ts는 #828–#835에서 정적 supervisor 페이지로 재설계되기 전 기준이라, 변경은web/static에 들어갔다.검증
src/support/githubConnectBrowser.test.ts(jsdom) 6건: 쿼리 인코딩·배지 렌더, 악성 이름이 마크업이 되지 않음, 503 안내, stale 응답 폐기, clone 진행→성공·패널 갱신, 실패 표시·재시도 활성화staticAssets·web.githubRepos테스트 포함 3 files / 22 tests 통과tsc --noEmit -p tsconfig.check.json통과. oxlint 신규 경고 0(남은 2건은 기존supervisor.js경고)test:responsive는 떠 있는 데몬 URL이 필요해서 돌리지 않았다.