diff --git a/src/lib/components/chat/MessageInput.svelte b/src/lib/components/chat/MessageInput.svelte index 3c3cf1593..d3e17ba00 100644 --- a/src/lib/components/chat/MessageInput.svelte +++ b/src/lib/components/chat/MessageInput.svelte @@ -144,6 +144,7 @@ files = files.filter((item) => item.status !== null); } }; + const inputFilesHandler = async (inputFiles) => { inputFiles.forEach((file) => { console.log(file, file.name.split('.').at(-1)); diff --git a/src/lib/components/common/FileItem.svelte b/src/lib/components/common/FileItem.svelte index d0d3b83d2..66ac75bb4 100644 --- a/src/lib/components/common/FileItem.svelte +++ b/src/lib/components/common/FileItem.svelte @@ -48,7 +48,7 @@ dispatch('click'); }} > -
+
{#if status === 'processed'} -
+
{name}
diff --git a/src/lib/components/icons/FloppyDisk.svelte b/src/lib/components/icons/FloppyDisk.svelte new file mode 100644 index 000000000..bcb481e82 --- /dev/null +++ b/src/lib/components/icons/FloppyDisk.svelte @@ -0,0 +1,20 @@ + + + diff --git a/src/lib/components/workspace/Knowledge/Collection.svelte b/src/lib/components/workspace/Knowledge/Collection.svelte index 0895aa037..f1a6cb9b7 100644 --- a/src/lib/components/workspace/Knowledge/Collection.svelte +++ b/src/lib/components/workspace/Knowledge/Collection.svelte @@ -27,6 +27,8 @@ import { processFile } from '$lib/apis/retrieval'; import AddContentMenu from './Collection/AddContentMenu.svelte'; import AddTextContentModal from './Collection/AddTextContentModal.svelte'; + import Check from '$lib/components/icons/Check.svelte'; + import FloppyDisk from '$lib/components/icons/FloppyDisk.svelte'; let largeScreen = true; @@ -410,10 +412,20 @@
{#if selectedFile}
-
-
+
+
{selectedFile?.meta?.name}
+ +
+ + + +
diff --git a/src/lib/components/workspace/Knowledge/Collection/AddContentMenu.svelte b/src/lib/components/workspace/Knowledge/Collection/AddContentMenu.svelte index 6e3ad3a31..cc1ca54d6 100644 --- a/src/lib/components/workspace/Knowledge/Collection/AddContentMenu.svelte +++ b/src/lib/components/workspace/Knowledge/Collection/AddContentMenu.svelte @@ -35,7 +35,7 @@ >