diff --git a/frontend/src/components/FileList.tsx b/frontend/src/components/FileList.tsx index ffc35a7..e638630 100644 --- a/frontend/src/components/FileList.tsx +++ b/frontend/src/components/FileList.tsx @@ -16,8 +16,9 @@ import { DialogContent, DialogActions, Typography, + Tooltip, } from '@mui/material'; -import { Download as DownloadIcon, Delete as DeleteIcon } from '@mui/icons-material'; +import { Download as DownloadIcon, Delete as DeleteIcon, Error as ErrorIcon } from '@mui/icons-material'; import { File, FileStatus } from '../types/file'; import { api } from '../services/api'; @@ -172,6 +173,50 @@ const FileList: React.FC = ({ files, onFileStatusChange }) => { color={getStatusColor(file.status) as any} size="small" /> + {file.status === FileStatus.FAILED && file.error_message && ( +
+ +
+ + + {file.error_message.length > 50 + ? `${file.error_message.substring(0, 50)}...` + : file.error_message + } + +
+
+
+ )} {new Date(file.created_at).toLocaleString()}