feat(git): AI 커밋 초안 생성 버튼 추가 - #391
Merged
Merged
Conversation
- 목록 뷰 AI 생성 액션 추가 - 생성 중 상태와 재생성 처리 - 표시 조건 테스트 보강 Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01SXxAox1se7ZgEDSRmCRiUR
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.
Summary
Changes
src/dashboard/src/components/git/WorkingDirectory.tsx!is_clean && viewMode === 'list'조건에서만 렌더되는 컴팩트 액션 버튼 추가isGeneratingDrafts또는 변경 파일 0건이면disableddraftCommits.length > 0→Regenerate, 아니면Generate with AIsrc/dashboard/src/components/git/__tests__/WorkingDirectory.test.tsxonGenerateDrafts호출 / 생성 중 disabled + "Analyzing..." / clean 상태에서 미노출새 prop 없음 — 그룹 뷰가 이미 쓰던
onGenerateDrafts·isGeneratingDrafts·draftCommits를 그대로 재사용합니다.Test Plan
npm run type-check— 에러 0npm run lint— 에러 0npm run test:coverage— 전체 통과, vitest.config.ts 임계치 충족 (exit 0)npm run build— 성공--scope branch --base b8d1d22) — 지적 0건백엔드 트랙은 SKIP — 변경 파일이 대시보드 2개뿐(
git show --stat)이라 백엔드 게이트가 이 커밋으로 회귀할 수 없습니다. CI는 PR에서 양쪽 트랙을 모두 실행합니다.🤖 Generated with Claude Code
https://claude.ai/code/session_01SXxAox1se7ZgEDSRmCRiUR