diff --git a/src/routes/private/+layout.svelte b/src/routes/private/+layout.svelte
index 60352a1..62b9f4c 100644
--- a/src/routes/private/+layout.svelte
+++ b/src/routes/private/+layout.svelte
@@ -11,6 +11,6 @@
-
+
diff --git a/src/routes/private/creator/+page.svelte b/src/routes/private/creator/+page.svelte
index af11e51..4475815 100644
--- a/src/routes/private/creator/+page.svelte
+++ b/src/routes/private/creator/+page.svelte
@@ -45,6 +45,26 @@
}
+
+
+
+ Step {step + 1} of {steps.length}
+
+
+
+
{#if step == 0}
@@ -57,23 +77,3 @@
{:else if step == 4}
{/if}
-
-
-
-
- Step {step + 1} of {steps.length}
-
-
-
diff --git a/src/routes/private/creator/steps/StepConnectGoogle.svelte b/src/routes/private/creator/steps/StepConnectGoogle.svelte
index bc663c5..fddc9f7 100644
--- a/src/routes/private/creator/steps/StepConnectGoogle.svelte
+++ b/src/routes/private/creator/steps/StepConnectGoogle.svelte
@@ -4,6 +4,7 @@
let refreshToken = '';
let authorized = false;
+ let loading = true;
let to = '';
let subject = '';
@@ -22,9 +23,10 @@
}
onMount(async () => {
- console.log("on mount");
refreshToken = localStorage.getItem('gmail_refresh_token') ?? '';
+ loading = true;
authorized = await validateToken(refreshToken);
+ loading = false;
});
/* ⇢ redirects straight to Google via server 302 */
@@ -59,11 +61,30 @@
}
-{#if !authorized}
-
- You haven’t connected your Google account yet.
-
-
-{:else}
- Your connection is good, proceed to next step
-{/if}
+
+ {#if loading}
+
+
+
Checking Google connection...
+
+ {:else}
+ {#if !authorized}
+
+ You haven’t connected your Google account yet.
+
+
+ {:else}
+
+
+
Your connection to Google is good, proceed to next step
+
+ {/if}
+ {/if}
+
diff --git a/src/routes/private/creator/steps/StepCraftEmail.svelte b/src/routes/private/creator/steps/StepCraftEmail.svelte
index 6e7956d..6f5da17 100644
--- a/src/routes/private/creator/steps/StepCraftEmail.svelte
+++ b/src/routes/private/creator/steps/StepCraftEmail.svelte
@@ -1,6 +1,6 @@
-{#if Object.keys(new_event).length > 0}
+{#if Object.keys(new_event).length === 0}
+
+ {#if loading}
+ Loading...
+ {:else}
+ No event created yet...
+ {/if}
+
+{:else}
- {new_event.name}
diff --git a/src/routes/private/creator/steps/StepOverview.svelte b/src/routes/private/creator/steps/StepOverview.svelte
index a0d5289..ed4350b 100644
--- a/src/routes/private/creator/steps/StepOverview.svelte
+++ b/src/routes/private/creator/steps/StepOverview.svelte
@@ -3,7 +3,7 @@
-
+
Event Overview
- Name: {new_event.name}
@@ -13,23 +13,31 @@
-
+
Email Preview
Subject: {subject}
-
-
-
Participants ({participants.length})
-
- {#each participants as p}
- -
- {p.name} {p.surname}
- {p.email}
-
- {/each}
-
-
\ No newline at end of file
+
+
Participants ({participants.length})
+
+ {#each participants.slice(0, 10) as p}
+ -
+ {p.name} {p.surname}
+
+ {p.email}
+
+ {/each}
+
+
Note: Only the first 10 participants are shown.
+
+
+
\ No newline at end of file
diff --git a/src/routes/private/creator/steps/StepUploadFiles.svelte b/src/routes/private/creator/steps/StepUploadFiles.svelte
index 307fdec..9d5e0f1 100644
--- a/src/routes/private/creator/steps/StepUploadFiles.svelte
+++ b/src/routes/private/creator/steps/StepUploadFiles.svelte
@@ -2,11 +2,26 @@
import { enhance } from '$app/forms';
let { participants = [] } = $props();
+ let loading = $state(false);
+ function handleEnhance() {
+ loading = true;
+
+ return async ({ update }) => {
+ await update();
+ loading = false;
+ };
+ }
-
{#if participants.length === 0}
-
No participants added yet.
-{/if}
-
-{#if participants.length > 0}
-
+
+ {#if loading}
+ Loading...
+ {:else}
+ No participants yet...
+ {/if}
+
+{:else}
+
{#each participants as p, i}
-
{p.name} {p.surname}
-
{p.email}
+
{p.email}
{/each}