Skip to content

Commit 74cc770

Browse files
committed
Add success notification modal when patch repair completes successfully
- once user applies 'patch repair', show auto-closing modal in panel - should translate [Fragment] └── apps └── editor └── src ├── commands │ └── apply-response-command │ ├── apply-response-command.ts │ ├── handlers │ │ ├── diff-handler.ts │ │ ├── fast-replace-handler.ts │ │ ├── restore-preview-handler.ts │ │ ├── search-replace-handler.ts │ │ └── truncated-handler.ts │ ├── index.ts │ ├── response-processor.ts │ ├── types │ │ └── original-file-state.ts │ └── utils │ ├── file-checks.ts │ ├── file-operations │ │ ├── apply-file-relocations.ts │ │ ├── cleanup-rename-source.ts │ │ ├── close-file-tabs.ts │ │ ├── create-file-if-needed.ts │ │ ├── get-rename-source-info.ts │ │ ├── handle-deleted-file-item.ts │ │ ├── index.ts │ │ ├── read-rename-source-file.ts │ │ ├── relocate-file.ts │ │ ├── remove-directory-if-empty.ts │ │ ├── undo-files.ts │ │ └── uri-exists.ts │ ├── preview │ │ ├── diff-utils.ts │ │ ├── file-preparer.ts │ │ ├── index.ts │ │ ├── preview.ts │ │ ├── temp-file-manager.ts │ │ ├── types.ts │ │ ├── virtual-document-provider.ts │ │ ├── vscode-ui.ts │ │ └── workspace-listener.ts │ ├── preview-handler.ts │ ├── response-parser │ │ └── response-parser.ts │ └── state-manager.ts ├── i18n │ ├── index.ts │ └── translations │ └── commands │ ├── apply-response-command.ts │ └── index.ts └── views └── prompt ├── backend │ └── message-handlers │ ├── handle-autofill.ts │ ├── handle-make-api-call.ts │ ├── handle-preview-web-configuration.ts │ ├── handle-undo.ts │ └── handle-voice-input.ts ├── frontend │ ├── Prompt.tsx │ └── hooks │ └── use-modal-manager.ts └── types └── messages.ts
1 parent f73dcdd commit 74cc770

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

‎apps/editor/src/commands/apply-response-command/apply-response-command.ts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,14 @@ export const apply_response_command = (params: {
184184
}
185185
}
186186
}
187+
188+
params.prompt_view_provider.send_message({
189+
command: 'SHOW_AUTO_CLOSING_MODAL',
190+
title: t(
191+
'command.apply-response-command.success.patched-successfully'
192+
),
193+
type: 'success'
194+
})
187195
} finally {
188196
params.workspace_provider.resume_file_watcher()
189197
}

‎apps/editor/src/i18n/translations/commands/apply-response-command.ts‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -345,5 +345,23 @@ export const translations = {
345345
cs: 'Aplikují se úpravy...',
346346
hu: 'Szerkesztések alkalmazása...',
347347
bg: 'Прилагане на редакциите...'
348+
},
349+
'command.apply-response-command.success.patched-successfully': {
350+
en: 'Patched successfully',
351+
pl: 'Zastosowano pomyślnie',
352+
'zh-cn': '补丁应用成功',
353+
ja: 'パッチが正常に適用されました',
354+
'zh-tw': '補丁應用成功',
355+
de: 'Erfolgreich gepatcht',
356+
es: 'Parcheado con éxito',
357+
fr: 'Correction appliquée avec succès',
358+
'pt-br': 'Corrigido com sucesso',
359+
ru: 'Успешно исправлено',
360+
ko: '패치 성공',
361+
it: 'Patch applicata con successo',
362+
tr: 'Yama başarıyla uygulandı',
363+
cs: 'Úspěšně záplatováno',
364+
hu: 'Sikeresen javítva',
365+
bg: 'Успешно пачване'
348366
}
349367
} as const

0 commit comments

Comments
 (0)