From 5dbef2273acecb90ba3d77f6acb58de899a9c0ed Mon Sep 17 00:00:00 2001 From: ernstmul Date: Wed, 2 Apr 2025 13:56:10 +0200 Subject: [PATCH] Fix org page, make chat into separate component and make it hide able --- src/lib/components/chat.svelte | 56 +++++++++++++++++++ src/lib/components/index.ts | 1 + src/lib/layout/shellStudio.svelte | 27 +-------- .../organization-[organization]/+page.svelte | 44 +++++++-------- .../organization-[organization]/header.svelte | 4 +- 5 files changed, 83 insertions(+), 49 deletions(-) create mode 100644 src/lib/components/chat.svelte diff --git a/src/lib/components/chat.svelte b/src/lib/components/chat.svelte new file mode 100644 index 000000000..ef7f6f0be --- /dev/null +++ b/src/lib/components/chat.svelte @@ -0,0 +1,56 @@ + + +
+ +
+ + + Chat + + + + + + Phasellus a ultricies nulla. Proin tristique aliquam dui. Phasellus porta + sodales justo, et feugiat ligula pulvinar sed. Morbi et nulla hendrerit, + pellentesque est sodales, euismod magna. Suspendisse vel massa arcu. Nulla + ultrices sit amet metus ac euismod. Curabitur ultrices aliquet libero, a + pharetra orci tristique in. Etiam egestas fermentum justo ut semper. Sed + vulputate eros erat, ac sollicitudin nulla condimentum volutpat. Sed vulputate + est ante. + + +
+
+
+ + diff --git a/src/lib/components/index.ts b/src/lib/components/index.ts index d827c596f..c49202c02 100644 --- a/src/lib/components/index.ts +++ b/src/lib/components/index.ts @@ -81,3 +81,4 @@ export { default as Sidebar } from './sidebar.svelte'; export { default as BottomSheet } from './bottom-sheet/index'; export { default as Confirm } from './confirm.svelte'; export { default as UsageCard } from './usageCard.svelte'; +export { default as Chat } from './chat.svelte'; diff --git a/src/lib/layout/shellStudio.svelte b/src/lib/layout/shellStudio.svelte index e8d1865f9..ef92f4812 100644 --- a/src/lib/layout/shellStudio.svelte +++ b/src/lib/layout/shellStudio.svelte @@ -1,5 +1,5 @@ {#if isStudio} - - - - Projects - - - - - - - - {#each data.projects.projects as project} - - {/each} - + + + Projects + - + + + + + + {#each data.projects.projects as project} + + {/each} + + {:else}
diff --git a/src/routes/(console)/organization-[organization]/header.svelte b/src/routes/(console)/organization-[organization]/header.svelte index 419cf7530..8e847ee51 100644 --- a/src/routes/(console)/organization-[organization]/header.svelte +++ b/src/routes/(console)/organization-[organization]/header.svelte @@ -16,7 +16,7 @@ isBilling, isOwner } from '$lib/stores/roles'; - import { GRACE_PERIOD_OVERRIDE, isCloud } from '$lib/system'; + import { GRACE_PERIOD_OVERRIDE, isCloud, isStudio } from '$lib/system'; import { IconGithub, IconPlus } from '@appwrite.io/pink-icons-svelte'; import { Icon, Tooltip, Typography, Layout, Badge } from '@appwrite.io/pink-svelte'; @@ -76,7 +76,7 @@ ].filter((tab) => !tab.disabled); -{#if $organization?.$id} +{#if $organization?.$id && !isStudio}