From d02b13701d3ce4374049128ac47bafcd509f0c19 Mon Sep 17 00:00:00 2001 From: harmj0y Date: Thu, 19 Jun 2025 18:00:24 +0300 Subject: [PATCH] Truncate the Agent ID field in file view -Truncate the Agent ID field in file view w/ a mouseover for full details --- .../src/components/FileList/FileList.jsx | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/projects/frontend/src/components/FileList/FileList.jsx b/projects/frontend/src/components/FileList/FileList.jsx index b5a4dfb..f28017e 100644 --- a/projects/frontend/src/components/FileList/FileList.jsx +++ b/projects/frontend/src/components/FileList/FileList.jsx @@ -68,7 +68,18 @@ const Row = React.memo(({ index, style, data }) => { {index === selectedIndex ? '✓' : ''} )} -
{file.agent_id}
+
+ + {file.agent_id} +
+ } + side="top" + > + {file.agent_id} + +
{formatFileSize(file.size)}
{new Date(file.timestamp).toLocaleString()}
@@ -288,12 +299,12 @@ const FileList = () => { setViewFilter(viewStateParam || 'unviewed_by_me'); setObjectIdFilter(objectIdParam || ''); setSelectedTag(tagParam || ''); - + // Update sort order from URL if (sortParam !== null) { setSortNewestFirst(sortParam === 'newest'); } - + // Update findings filter from URL setShowOnlyWithFindings(findingsParam === 'true'); }, [searchParams]);