diff --git a/frontend/src/components/tools/shared/FileStatusIndicator.tsx b/frontend/src/components/tools/shared/FileStatusIndicator.tsx index 26e1335e5..ca56b3c22 100644 --- a/frontend/src/components/tools/shared/FileStatusIndicator.tsx +++ b/frontend/src/components/tools/shared/FileStatusIndicator.tsx @@ -57,36 +57,70 @@ const FileStatusIndicator = ({ // Check if there are no files in the workbench if (workbenchFiles.length === 0) { - return ( - - {t("files.noFiles", "No files uploaded. ")}{" "} - - - {t("files.addFiles", "Add files")} - - - ); + // If no recent files, show upload button + if (!hasRecentFiles) { + return ( + + + + {t("files.upload", "Upload")} + + + ); + } else { + // If there are recent files, show add files button + return ( + + + + {t("files.addFiles", "Add files")} + + + ); + } } // Show selection status when there are files in workbench if (selectedFiles.length === 0) { - return ( - - {t("files.selectFromWorkbench", "Select files from the workbench or ") + " "} - - - {t("files.addFiles", "Add files")} - - - ); + // If no recent files, show upload option + if (!hasRecentFiles) { + return ( + + {t("files.selectFromWorkbench", "Select files from the workbench or ") + " "} + + + {t("files.upload", "Upload")} + + + ); + } else { + // If there are recent files, show add files option + return ( + + {t("files.selectFromWorkbench", "Select files from the workbench or ") + " "} + + + {t("files.addFiles", "Add files")} + + + ); + } } return (