From 70456d945d35d2ed8042351f1e9d7a87a200f8b9 Mon Sep 17 00:00:00 2001 From: Tom Butcher Date: Fri, 24 Jul 2026 22:20:03 +0100 Subject: [PATCH] Enhance FileUpload, ObjectProperty, and ObjectSelect components by adding masterFilter prop for improved file filtering capabilities. Refactor FileList component styles for better layout consistency. Update ObjectSelect to accept custom styles, enhancing flexibility in usage. --- src/components/Dashboard/common/FileList.jsx | 12 ++++++++++-- src/components/Dashboard/common/FileUpload.jsx | 17 ++++++++++++++--- .../Dashboard/common/ObjectProperty.jsx | 4 ++++ .../Dashboard/common/ObjectSelect.jsx | 6 ++++-- 4 files changed, 32 insertions(+), 7 deletions(-) diff --git a/src/components/Dashboard/common/FileList.jsx b/src/components/Dashboard/common/FileList.jsx index 9919579..d382d42 100644 --- a/src/components/Dashboard/common/FileList.jsx +++ b/src/components/Dashboard/common/FileList.jsx @@ -67,14 +67,22 @@ const FileList = ({ { const { uploadFile } = useContext(ApiServerContext) const [uploading, setUploading] = useState(false) @@ -138,11 +139,17 @@ const FileUpload = ({ {hasNoItems && uploading == false ? ( - + 0 + ? { extension: { $in: masterFilter } } + : {} + } />