From 8dff995a1cb1a6aeb37a1d53d5e04cbc67af1aa3 Mon Sep 17 00:00:00 2001 From: Connor Yoh Date: Wed, 30 Jul 2025 14:24:23 +0100 Subject: [PATCH] pdf-csv simplified --- .../src/components/fileEditor/FileEditor.tsx | 5 +- .../convert/ConvertFromImageSettings.tsx | 44 +++- .../convert/ConvertFromPdfToCsvSettings.tsx | 37 ---- .../tools/convert/ConvertSettings.tsx | 52 +++-- .../tools/convert/GroupedFormatDropdown.tsx | 4 +- frontend/src/constants/convertConstants.ts | 20 +- .../tools/convert/useConvertOperation.ts | 191 ++++++++++++++++-- .../tools/convert/useConvertParameters.ts | 108 +++++++++- frontend/src/pages/HomePage.tsx | 4 +- frontend/src/tests/convert/ConvertE2E.spec.ts | 79 +++++--- .../tests/convert/ConvertIntegration.test.tsx | 151 ++++++++++++-- frontend/src/tools/Convert.test.tsx | 90 ++++++++- frontend/src/tools/Convert.tsx | 64 ++++-- frontend/src/utils/convertUtils.ts | 2 +- 14 files changed, 687 insertions(+), 164 deletions(-) delete mode 100644 frontend/src/components/tools/convert/ConvertFromPdfToCsvSettings.tsx diff --git a/frontend/src/components/fileEditor/FileEditor.tsx b/frontend/src/components/fileEditor/FileEditor.tsx index 9e0dc2171..8be0438d9 100644 --- a/frontend/src/components/fileEditor/FileEditor.tsx +++ b/frontend/src/components/fileEditor/FileEditor.tsx @@ -304,7 +304,8 @@ const FileEditor = ({ }); } } else { - errors.push(`Unsupported file type: ${file.name} (${file.type})`); + console.log(`Adding none PDF file: ${file.name} (${file.type})`); + allExtractedFiles.push(file); } } @@ -681,7 +682,7 @@ const FileEditor = ({ + +