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 1/2] 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} + +
+ ))} +
+ + + ))} + ); From 29ba229bc23d2019d2ee9829da7852f884ffa611 Mon Sep 17 00:00:00 2001 From: xeisenberg <94274140+xxeisenberg@users.noreply.github.com> Date: Tue, 27 May 2025 16:10:35 +0530 Subject: [PATCH 2/2] feat: improve job details interaction and accessibility - Enhanced job details toggle functionality by adding event listeners to job detail elements. - Updated job detail rows to use data attributes for better accessibility and maintainability. - Improved the rendering of file information with unique keys for each file entry. --- src/index.tsx | 107 +++++++++++++++++++++++++++++--------------------- 1 file changed, 62 insertions(+), 45 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index b132506..6514ed0 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1169,7 +1169,9 @@ const app = new Elysia({ px-2 py-2 sm:px-4 `} - /> + > + Expand details + {userJobs.map((job) => ( <> - + Detailed File Information: - {job.files_detailed.map((file: Filename) => ( -
- ( +
- {file.file_name} - - - - - - {file.output_file_name} - -
- ))} + + {file.file_name} + + + + + + {file.output_file_name} + +
+ ), + )} @@ -1302,18 +1309,28 @@ const app = new Elysia({