diff --git a/frontend/public/locales/en-GB/translation.json b/frontend/public/locales/en-GB/translation.json index e32579891..7fa1036db 100644 --- a/frontend/public/locales/en-GB/translation.json +++ b/frontend/public/locales/en-GB/translation.json @@ -51,7 +51,6 @@ "placeholder": "Select a PDF file in the main view to get started", "upload": "Upload", "addFiles": "Add files", - "noFiles": "No files uploaded. ", "selectFromWorkbench": "Select files from the workbench or " }, "noFavourites": "No favourites added", @@ -2320,9 +2319,14 @@ "creation": { "createTitle": "Create Automation", "editTitle": "Edit Automation", - "description": "Automations run tools sequentially. To get started, add tools in the order you want them to run.", + "intro": "Automations run tools sequentially. To get started, add tools in the order you want them to run.", "name": { - "placeholder": "Automation name" + "label": "Automation Name", + "placeholder": "My Automation" + }, + "description": { + "label": "Description (optional)", + "placeholder": "Describe what this automation does..." }, "tools": { "selectTool": "Select a tool...", @@ -2339,6 +2343,9 @@ "message": "You have unsaved changes. Are you sure you want to go back? All changes will be lost.", "cancel": "Cancel", "confirm": "Go Back" + }, + "icon": { + "label": "Icon" } }, "run": { @@ -2369,7 +2376,7 @@ "emailPreparation": "Email Preparation", "emailPreparationDesc": "Optimises PDFs for email distribution by compressing files, splitting large documents into 20MB chunks for email compatibility, and removing metadata for privacy.", "secureWorkflow": "Security Workflow", - "secureWorkflowDesc": "Secures PDF documents by removing potentially malicious content like JavaScript and embedded files, then adds password protection to prevent unauthorised access.", + "secureWorkflowDesc": "Secures PDF documents by removing potentially malicious content like JavaScript and embedded files, then adds password protection to prevent unauthorised access. Password is set to 'password' by default.", "processImages": "Process Images", "processImagesDesc": "Converts multiple image files into a single PDF document, then applies OCR technology to extract searchable text from the images." } diff --git a/frontend/public/locales/en-US/translation.json b/frontend/public/locales/en-US/translation.json index ab5b66802..b0a19539a 100644 --- a/frontend/public/locales/en-US/translation.json +++ b/frontend/public/locales/en-US/translation.json @@ -2111,10 +2111,10 @@ "suggested": { "securePdfIngestion": "Secure PDF Ingestion", "securePdfIngestionDesc": "Comprehensive PDF processing workflow that sanitizes documents, applies OCR with cleanup, converts to PDF/A format for long-term archival, and optimizes file size.", - "emailPreparation": "Email Preparation", + "emailPreparation": "Email Preparation", "emailPreparationDesc": "Optimizes PDFs for email distribution by compressing files, splitting large documents into 20MB chunks for email compatibility, and removing metadata for privacy.", "secureWorkflow": "Security Workflow", - "secureWorkflowDesc": "Secures PDF documents by removing potentially malicious content like JavaScript and embedded files, then adds password protection to prevent unauthorized access.", + "secureWorkflowDesc": "Secures PDF documents by removing potentially malicious content like JavaScript and embedded files, then adds password protection to prevent unauthorized access. Password is set to 'password' by default.", "processImages": "Process Images", "processImagesDesc": "Converts multiple image files into a single PDF document, then applies OCR technology to extract searchable text from the images." } diff --git a/frontend/src/components/shared/FileUploadButton.tsx b/frontend/src/components/shared/FileUploadButton.tsx index 27f58400f..434aad1b4 100644 --- a/frontend/src/components/shared/FileUploadButton.tsx +++ b/frontend/src/components/shared/FileUploadButton.tsx @@ -32,9 +32,10 @@ const FileUploadButton = ({ onChange={onChange} accept={accept} disabled={disabled} + > {(props) => ( - )} diff --git a/frontend/src/components/shared/QuickAccessBar.tsx b/frontend/src/components/shared/QuickAccessBar.tsx index ad91b2ac2..fc4301181 100644 --- a/frontend/src/components/shared/QuickAccessBar.tsx +++ b/frontend/src/components/shared/QuickAccessBar.tsx @@ -22,7 +22,7 @@ const QuickAccessBar = forwardRef(({ const { t } = useTranslation(); const { isRainbowMode } = useRainbowThemeContext(); const { openFilesModal, isFilesModalOpen } = useFilesModalContext(); - const { handleReaderToggle, handleBackToTools, handleToolSelect, selectedToolKey, leftPanelView, toolRegistry, readerMode } = useToolWorkflow(); + const { handleReaderToggle, handleBackToTools, handleToolSelect, selectedToolKey, leftPanelView, toolRegistry, readerMode, resetTool } = useToolWorkflow(); const [configModalOpen, setConfigModalOpen] = useState(false); const [activeButton, setActiveButton] = useState('tools'); const scrollableRef = useRef(null); @@ -74,7 +74,12 @@ const QuickAccessBar = forwardRef(({ type: 'navigation', onClick: () => { setActiveButton('automate'); - handleToolSelect('automate'); + // If already on automate tool, reset it directly + if (selectedToolKey === 'automate') { + resetTool('automate'); + } else { + handleToolSelect('automate'); + } } }, { diff --git a/frontend/src/components/tools/addWatermark/WatermarkTypeSettings.tsx b/frontend/src/components/tools/addWatermark/WatermarkTypeSettings.tsx index f97454c5c..84bbb296a 100644 --- a/frontend/src/components/tools/addWatermark/WatermarkTypeSettings.tsx +++ b/frontend/src/components/tools/addWatermark/WatermarkTypeSettings.tsx @@ -16,7 +16,7 @@ const WatermarkTypeSettings = ({ watermarkType, onWatermarkTypeChange, disabled