From 5abb422bb8cf17f5b54f404963eb6dd30901da96 Mon Sep 17 00:00:00 2001 From: Ryan Hopper-Lowe Date: Fri, 20 Dec 2024 12:47:51 -0600 Subject: [PATCH] fix: additionally start knowledge polling when source is pending --- ui/admin/app/components/knowledge/AddSourceModal.tsx | 5 ++++- ui/admin/app/components/knowledge/CronDialog.tsx | 2 +- .../components/knowledge/KnowledgeSourceDetail.tsx | 11 ++++++++++- .../app/hooks/knowledge/useKnowledgeSourceFiles.ts | 5 ++++- 4 files changed, 19 insertions(+), 4 deletions(-) diff --git a/ui/admin/app/components/knowledge/AddSourceModal.tsx b/ui/admin/app/components/knowledge/AddSourceModal.tsx index ede13a74b..3551a1202 100644 --- a/ui/admin/app/components/knowledge/AddSourceModal.tsx +++ b/ui/admin/app/components/knowledge/AddSourceModal.tsx @@ -58,7 +58,10 @@ export const AddSourceModal: FC = ({ return ( - +
= ({ return ( - + Enter Cron Expression diff --git a/ui/admin/app/components/knowledge/KnowledgeSourceDetail.tsx b/ui/admin/app/components/knowledge/KnowledgeSourceDetail.tsx index df1c3263b..20c30fc65 100644 --- a/ui/admin/app/components/knowledge/KnowledgeSourceDetail.tsx +++ b/ui/admin/app/components/knowledge/KnowledgeSourceDetail.tsx @@ -20,7 +20,12 @@ import KnowledgeSourceAvatar from "~/components/knowledge/KnowledgeSourceAvatar" import OauthSignDialog from "~/components/knowledge/OAuthSignDialog"; import { LoadingSpinner } from "~/components/ui/LoadingSpinner"; import { Button } from "~/components/ui/button"; -import { Dialog, DialogContent, DialogTitle } from "~/components/ui/dialog"; +import { + Dialog, + DialogContent, + DialogDescription, + DialogTitle, +} from "~/components/ui/dialog"; import { DropdownMenu, DropdownMenuCheckboxItem, @@ -122,6 +127,10 @@ export const KnowledgeSourceDetail: FC = ({ onScroll={handleScroll} ref={tableContainerRef} > + +