From 5f5df9647b328e890cf1883ae28c3b241868a590 Mon Sep 17 00:00:00 2001 From: digua Date: Thu, 22 Oct 2026 15:58:47 +0800 Subject: [PATCH] fix(import): show conversion guidance for batch failures Show one localized conversion guide in the batch result when any failed file has an unrecognized format. Batch errors are stored separately from the single-file error state, so they previously missed the guidance. --- src/components/import/ImportArea.vue | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/components/import/ImportArea.vue b/src/components/import/ImportArea.vue index 8120f6fb..f84fbea4 100644 --- a/src/components/import/ImportArea.vue +++ b/src/components/import/ImportArea.vue @@ -99,6 +99,9 @@ function showImportOutcome(result: ImportResult) { const importError = ref(null) const isUnrecognizedFormat = computed(() => importError.value === 'error.unrecognized_format') +const hasUnrecognizedBatchFormat = computed(() => + batchImportResult.value?.files.some((file) => file.status === 'failed' && file.error === 'error.unrecognized_format') +) const hasImportLog = ref(false) const importDiagnostics = ref<{ logFile: string | null @@ -1075,6 +1078,21 @@ const getMergeFileProgressText = (file: MergeFileInfo) => +
+

+ {{ t('home.import.errors.unrecognizedFormatHint') }} +

+ + {{ t('home.import.viewConversionGuide') }} + +