From bf5775e07a635c9bfe6491a0db5ebc905c2adc61 Mon Sep 17 00:00:00 2001 From: "Timothy J. Baek" Date: Thu, 20 Jun 2024 01:16:31 -0700 Subject: [PATCH] refac --- backend/apps/webui/models/functions.py | 1 + src/lib/components/workspace/Functions.svelte | 20 +++++++++++++++---- 2 files changed, 17 insertions(+), 4 deletions(-) diff --git a/backend/apps/webui/models/functions.py b/backend/apps/webui/models/functions.py index 91fbdb769..f5fab34db 100644 --- a/backend/apps/webui/models/functions.py +++ b/backend/apps/webui/models/functions.py @@ -55,6 +55,7 @@ class FunctionModel(BaseModel): class FunctionResponse(BaseModel): id: str user_id: str + type: str name: str meta: FunctionMeta updated_at: int # timestamp in epoch diff --git a/src/lib/components/workspace/Functions.svelte b/src/lib/components/workspace/Functions.svelte index aeb53bde0..15793fa01 100644 --- a/src/lib/components/workspace/Functions.svelte +++ b/src/lib/components/workspace/Functions.svelte @@ -35,6 +35,8 @@ toast.error(error); return []; }); + + console.log(functions); }); @@ -107,15 +109,25 @@ href={`/workspace/functions/edit?id=${encodeURIComponent(func.id)}`} class="flex items-center text-left" > -
+
+
+ {func.type} +
+
{func.name}
-
{func.id}
-
- {func.meta.description} + +
+
{func.id}
+ +
+ {func.meta.description} +