From 50725edd021bb9a7f58c85b79c1eab355ad22ced Mon Sep 17 00:00:00 2001 From: xeisenberg <94274140+xxeisenberg@users.noreply.github.com> Date: Tue, 27 May 2025 14:22:32 +0530 Subject: [PATCH] feat: enhance job details display with file information - Added `files_detailed` property to the `Jobs` class to store detailed file information. - Updated job listing to include a toggle for displaying detailed file information. - Implemented a toggle function for showing/hiding detailed file rows in the UI. --- src/index.tsx | 121 ++++++++++++++++++++++++++++++++++++++++++-------- 1 file changed, 103 insertions(+), 18 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index c311d66..b132506 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -107,6 +107,7 @@ class Jobs { date_created!: string; status!: string; num_files!: number; + files_detailed!: Filename[]; } // enable WAL mode @@ -1131,6 +1132,7 @@ const app = new Elysia({ .all(job.id); job.finished_files = files.length; + job.files_detailed = files; } // filter out jobs with no files @@ -1162,6 +1164,12 @@ const app = new Elysia({ > + {userJobs.map((job) => ( - - - {new Date(job.date_created).toLocaleTimeString()} - - {job.num_files} - {job.finished_files} - {job.status} - - + + - View - - - + + + + + + {new Date(job.date_created).toLocaleTimeString()} + + {job.num_files} + {job.finished_files} + {job.status} + + + View + + + + + +
+
+ Detailed File Information: +
+ {job.files_detailed.map((file: Filename) => ( +
+ + {file.file_name} + + + + + + {file.output_file_name} + +
+ ))} +
+ + + ))} + );