From ffd77faec01f90422b3b09a9cbed583c7b339b86 Mon Sep 17 00:00:00 2001 From: Darren Shepherd Date: Fri, 7 Mar 2025 14:21:35 -0700 Subject: [PATCH] bug: add missing agent files to project share --- pkg/api/handlers/projectshare.go | 3 +++ ui/user/src/lib/services/chat/types.ts | 1 + ui/user/src/routes/home/+page.svelte | 5 +++-- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/pkg/api/handlers/projectshare.go b/pkg/api/handlers/projectshare.go index a7bdbf8c2..5c6c6015b 100644 --- a/pkg/api/handlers/projectshare.go +++ b/pkg/api/handlers/projectshare.go @@ -169,6 +169,9 @@ func convertProjectShare(threadShare v1.ThreadShare) types.ProjectShare { PublicID: threadShare.Spec.PublicID, Featured: threadShare.Spec.Featured, ProjectID: strings.Replace(threadShare.Spec.ProjectThreadName, system.ThreadPrefix, system.ProjectPrefix, 1), + Name: threadShare.Status.Name, + Description: threadShare.Status.Description, + Icons: threadShare.Status.Icons, } } diff --git a/ui/user/src/lib/services/chat/types.ts b/ui/user/src/lib/services/chat/types.ts index 8929cbe1e..ef8b7ee56 100644 --- a/ui/user/src/lib/services/chat/types.ts +++ b/ui/user/src/lib/services/chat/types.ts @@ -324,6 +324,7 @@ export interface ProjectList { } export interface ProjectShare { + id: string; publicID: string; projectID: string; public: boolean; diff --git a/ui/user/src/routes/home/+page.svelte b/ui/user/src/routes/home/+page.svelte index be0b8f620..d1bfc0cee 100644 --- a/ui/user/src/routes/home/+page.svelte +++ b/ui/user/src/routes/home/+page.svelte @@ -97,12 +97,13 @@ {#snippet projectCard(project: Project | ProjectShare)}
- {#if 'id' in project} + {#if !('publicID' in project)} {@render menu(project)} {/if}