features: add commit and push option to git commit window

- Add split button with dropdown in commit dialog supporting both
  "Commit" and "Commit and Push" actions
- Pass folderId through gitCommit/gitPush API calls so backend emits
  events that the folder window can receive for toast notifications
- Update Tauri git_commit and git_push commands to accept folder_id
  parameter with window label fallback for cross-window compatibility
- Wrap commit page with GitCredentialProvider for push authentication
- Keep commit window open when push fails so user can see the error
- Add i18n translations for all 10 locales

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
xintaofei
2026-04-02 16:22:41 +08:00
parent 1287dab37c
commit efd8e1104f
16 changed files with 184 additions and 82 deletions

View File

@@ -1009,6 +1009,7 @@
"commitDialog": {
"toasts": {
"commitCompleted": "코드 커밋이 완료되었습니다",
"pushFailed": "푸시 실패",
"committedFiles": "{count, plural, one {#개 파일 커밋됨} other {#개 파일 커밋됨}}",
"addedToVcs": "VCS에 추가되었습니다",
"addToVcsFailed": "VCS에 추가하지 못했습니다",
@@ -1050,6 +1051,7 @@
"commitMessage": "커밋 메시지",
"commitMessagePlaceholder": "커밋 메시지 입력...",
"commitButton": "커밋 ({count})",
"commitAndPushButton": "커밋 후 푸시 ({count})",
"head": "HEAD",
"workingTree": "작업 트리",
"clickFileToDiff": "파일 이름을 클릭해 diff를 확인하세요",