From 504b71757581cc95cfa1519d8ccabb33d5bebd76 Mon Sep 17 00:00:00 2001 From: Chenlei Hu Date: Fri, 28 Mar 2025 11:53:29 -0400 Subject: [PATCH] [Refactor] Unify error dialog component (#3265) Co-authored-by: github-actions --- browser_tests/tests/dialog.spec.ts | 2 +- .../dialog/content/ErrorDialogContent.vue | 175 +++++++++++++----- .../content/ExecutionErrorDialogContent.vue | 155 ---------------- src/locales/en/main.json | 3 +- src/locales/es/main.json | 1 + src/locales/fr/main.json | 1 + src/locales/ja/main.json | 1 + src/locales/ko/main.json | 1 + src/locales/ru/main.json | 1 + src/locales/zh/main.json | 1 + src/scripts/app.ts | 4 +- src/services/dialogService.ts | 41 ++-- src/utils/errorReportUtil.ts | 20 +- 13 files changed, 178 insertions(+), 228 deletions(-) delete mode 100644 src/components/dialog/content/ExecutionErrorDialogContent.vue diff --git a/browser_tests/tests/dialog.spec.ts b/browser_tests/tests/dialog.spec.ts index bd8daec17..d309b2b1e 100644 --- a/browser_tests/tests/dialog.spec.ts +++ b/browser_tests/tests/dialog.spec.ts @@ -323,7 +323,7 @@ test.describe('Error dialog', () => { await comfyPage.loadWorkflow('default') - const errorDialog = comfyPage.page.locator('.error-dialog-content') + const errorDialog = comfyPage.page.locator('.comfy-error-report') await expect(errorDialog).toBeVisible() }) }) diff --git a/src/components/dialog/content/ErrorDialogContent.vue b/src/components/dialog/content/ErrorDialogContent.vue index a1cb4113f..361b23cb6 100644 --- a/src/components/dialog/content/ErrorDialogContent.vue +++ b/src/components/dialog/content/ErrorDialogContent.vue @@ -1,80 +1,159 @@