From d8f50f139e44cbfb2ceb170dfc1ec4245e9afc60 Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 27 Jul 2023 17:52:56 +0100 Subject: [PATCH] Frontend update for app builders, handling when in the builder portal and don't have any app access, as well as allowing viewing of apps from the portal. --- .../src/components/start/AppRow.svelte | 36 +++- .../_components/BuilderSidePanel.svelte | 12 +- .../src/pages/builder/portal/_layout.svelte | 2 +- .../pages/builder/portal/apps/_layout.svelte | 14 +- .../pages/builder/portal/apps/index.svelte | 199 ++++++++++-------- .../src/sdk/app/applications/applications.ts | 6 +- .../src/api/routes/global/tests/auth.spec.ts | 2 +- 7 files changed, 155 insertions(+), 116 deletions(-) diff --git a/packages/builder/src/components/start/AppRow.svelte b/packages/builder/src/components/start/AppRow.svelte index 2e7719987d..212ab4c6f8 100644 --- a/packages/builder/src/components/start/AppRow.svelte +++ b/packages/builder/src/components/start/AppRow.svelte @@ -1,16 +1,21 @@
@@ -39,7 +48,7 @@
- {#if editing} + {#if editing && isBuilder} Currently editing {:else if app.updatedAt} @@ -56,14 +65,21 @@ {app.deployed ? "Published" : "Unpublished"}
-
- - -
+ {#if isBuilder} +
+ + +
+ {:else} + +
+ +
+ {/if}