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:
@@ -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": "انقر اسم الملف لعرض الفرق",
|
||||
|
||||
@@ -1009,6 +1009,7 @@
|
||||
"commitDialog": {
|
||||
"toasts": {
|
||||
"commitCompleted": "Code-Commit abgeschlossen",
|
||||
"pushFailed": "Push fehlgeschlagen",
|
||||
"committedFiles": "{count, plural, one {# Datei committet} other {# Dateien committet}}",
|
||||
"addedToVcs": "Zu VCS hinzugefügt",
|
||||
"addToVcsFailed": "Hinzufügen zu VCS fehlgeschlagen",
|
||||
@@ -1050,6 +1051,7 @@
|
||||
"commitMessage": "Commit-Nachricht",
|
||||
"commitMessagePlaceholder": "Commit-Nachricht eingeben...",
|
||||
"commitButton": "Einchecken ({count})",
|
||||
"commitAndPushButton": "Committen und pushen ({count})",
|
||||
"head": "HEAD",
|
||||
"workingTree": "Arbeitsverzeichnis",
|
||||
"clickFileToDiff": "Dateinamen anklicken, um Diff zu sehen",
|
||||
|
||||
@@ -1009,6 +1009,7 @@
|
||||
"commitDialog": {
|
||||
"toasts": {
|
||||
"commitCompleted": "Code commit completed",
|
||||
"pushFailed": "Push failed",
|
||||
"committedFiles": "Committed {count, plural, one {# file} other {# files}}",
|
||||
"addedToVcs": "Added to VCS",
|
||||
"addToVcsFailed": "Failed to add to VCS",
|
||||
@@ -1050,6 +1051,7 @@
|
||||
"commitMessage": "Commit message",
|
||||
"commitMessagePlaceholder": "Enter commit message...",
|
||||
"commitButton": "Commit ({count})",
|
||||
"commitAndPushButton": "Commit and Push ({count})",
|
||||
"head": "HEAD",
|
||||
"workingTree": "Working Tree",
|
||||
"clickFileToDiff": "Click a file name to view diff",
|
||||
|
||||
@@ -1009,6 +1009,7 @@
|
||||
"commitDialog": {
|
||||
"toasts": {
|
||||
"commitCompleted": "Commit de código completado",
|
||||
"pushFailed": "Error al enviar",
|
||||
"committedFiles": "{count, plural, one {# archivo confirmado} other {# archivos confirmados}}",
|
||||
"addedToVcs": "Añadido a VCS",
|
||||
"addToVcsFailed": "No se pudo añadir a VCS",
|
||||
@@ -1050,6 +1051,7 @@
|
||||
"commitMessage": "Mensaje de commit",
|
||||
"commitMessagePlaceholder": "Introduce el mensaje de commit...",
|
||||
"commitButton": "Confirmar ({count})",
|
||||
"commitAndPushButton": "Confirmar y enviar ({count})",
|
||||
"head": "HEAD",
|
||||
"workingTree": "Árbol de trabajo",
|
||||
"clickFileToDiff": "Haz clic en un nombre de archivo para ver diff",
|
||||
|
||||
@@ -1009,6 +1009,7 @@
|
||||
"commitDialog": {
|
||||
"toasts": {
|
||||
"commitCompleted": "Commit de code terminé",
|
||||
"pushFailed": "Échec du push",
|
||||
"committedFiles": "{count, plural, one {# fichier commit} other {# fichiers commit}}",
|
||||
"addedToVcs": "Ajouté à VCS",
|
||||
"addToVcsFailed": "Échec de l’ajout à VCS",
|
||||
@@ -1050,6 +1051,7 @@
|
||||
"commitMessage": "Message de commit",
|
||||
"commitMessagePlaceholder": "Saisissez le message de commit...",
|
||||
"commitButton": "Valider ({count})",
|
||||
"commitAndPushButton": "Valider et pousser ({count})",
|
||||
"head": "HEAD",
|
||||
"workingTree": "Arbre de travail",
|
||||
"clickFileToDiff": "Cliquez sur un nom de fichier pour voir le diff",
|
||||
|
||||
@@ -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": "ファイル名をクリックして差分を表示",
|
||||
|
||||
@@ -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를 확인하세요",
|
||||
|
||||
@@ -1009,6 +1009,7 @@
|
||||
"commitDialog": {
|
||||
"toasts": {
|
||||
"commitCompleted": "Commit de código concluído",
|
||||
"pushFailed": "Falha no envio",
|
||||
"committedFiles": "{count, plural, one {# arquivo commitado} other {# arquivos commitados}}",
|
||||
"addedToVcs": "Adicionado ao VCS",
|
||||
"addToVcsFailed": "Falha ao adicionar ao VCS",
|
||||
@@ -1050,6 +1051,7 @@
|
||||
"commitMessage": "Mensagem de commit",
|
||||
"commitMessagePlaceholder": "Digite a mensagem de commit...",
|
||||
"commitButton": "Confirmar ({count})",
|
||||
"commitAndPushButton": "Confirmar e enviar ({count})",
|
||||
"head": "HEAD",
|
||||
"workingTree": "Árvore de trabalho",
|
||||
"clickFileToDiff": "Clique no nome do arquivo para ver o diff",
|
||||
|
||||
@@ -1009,6 +1009,7 @@
|
||||
"commitDialog": {
|
||||
"toasts": {
|
||||
"commitCompleted": "提交代码完成",
|
||||
"pushFailed": "推送失败",
|
||||
"committedFiles": "已提交 {count} 个文件",
|
||||
"addedToVcs": "已添加到 VCS",
|
||||
"addToVcsFailed": "添加到 VCS 失败",
|
||||
@@ -1050,6 +1051,7 @@
|
||||
"commitMessage": "提交消息",
|
||||
"commitMessagePlaceholder": "输入提交信息...",
|
||||
"commitButton": "提交 ({count})",
|
||||
"commitAndPushButton": "提交并推送 ({count})",
|
||||
"head": "HEAD(当前提交)",
|
||||
"workingTree": "工作区",
|
||||
"clickFileToDiff": "点击文件名查看差异",
|
||||
|
||||
@@ -1009,6 +1009,7 @@
|
||||
"commitDialog": {
|
||||
"toasts": {
|
||||
"commitCompleted": "提交程式碼完成",
|
||||
"pushFailed": "推送失敗",
|
||||
"committedFiles": "已提交 {count} 個檔案",
|
||||
"addedToVcs": "已加入到 VCS",
|
||||
"addToVcsFailed": "加入到 VCS 失敗",
|
||||
@@ -1050,6 +1051,7 @@
|
||||
"commitMessage": "提交訊息",
|
||||
"commitMessagePlaceholder": "輸入提交訊息...",
|
||||
"commitButton": "提交 ({count})",
|
||||
"commitAndPushButton": "提交並推送 ({count})",
|
||||
"head": "HEAD(目前提交)",
|
||||
"workingTree": "工作目錄",
|
||||
"clickFileToDiff": "點擊檔案名稱查看差異",
|
||||
|
||||
Reference in New Issue
Block a user