diff --git a/ceremony/src/lib/components/Ceremony.svelte b/ceremony/src/lib/components/Ceremony.svelte
index 5d6cb33934..06cff94289 100644
--- a/ceremony/src/lib/components/Ceremony.svelte
+++ b/ceremony/src/lib/components/Ceremony.svelte
@@ -35,7 +35,7 @@ let addressValidState: ValidState = $state("PENDING")
Your position: {contributor.queueState.position}
Queue length: {contributor.queueState.count}
-
+
Waiting time: {contributor.queueState.estimatedTime} minutes (est.).
@@ -45,13 +45,10 @@ let addressValidState: ValidState = $state("PENDING")
{:else if contributor.state === 'contribute'}
Starting contribution...
-
{:else if contributor.state === 'contributing'}
Contributing...
-
{:else if contributor.state === 'verifying'}
Verifying your contribution...
-
{:else if contributor.state === 'contributed'}
@@ -65,7 +62,7 @@ let addressValidState: ValidState = $state("PENDING")
{:else}
-
Loading...
+ Not able to contribute at this time
{/if}
diff --git a/ceremony/src/lib/components/Join.svelte b/ceremony/src/lib/components/Join.svelte
index 6b0403a7cc..6aecf74959 100644
--- a/ceremony/src/lib/components/Join.svelte
+++ b/ceremony/src/lib/components/Join.svelte
@@ -3,10 +3,13 @@ import H1 from "$lib/components/typography/H1.svelte"
import Button from "$lib/components/Button.svelte"
import Text from "$lib/components/typography/Text.svelte"
import { callJoinQueue } from "$lib/supabase"
+import Spinner from "$lib/components/Spinner.svelte";
let code = $state("")
+let loading = $state(false)
async function handleCode() {
+ loading = true
//Maybe check format etc
const codeValid = await callJoinQueue(code)
if (codeValid) {
@@ -14,6 +17,11 @@ async function handleCode() {
}
}
+async function joinWaitlist() {
+ loading = true
+
+}
+
async function handleWaitlist() {}
@@ -47,4 +55,4 @@ async function handleWaitlist() {}
Or
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/ceremony/src/lib/stores/state.svelte.ts b/ceremony/src/lib/stores/state.svelte.ts
index 325382fd01..a540bb5455 100644
--- a/ceremony/src/lib/stores/state.svelte.ts
+++ b/ceremony/src/lib/stores/state.svelte.ts
@@ -231,6 +231,7 @@ export class ContributorState {
console.log("Current contributionState:", this.contributionState)
if (this.contributionState === "contribute") {
+
switch (this.clientState) {
case "idle":
case "initializing":
@@ -254,6 +255,7 @@ export class ContributorState {
this.state = "contribute"
break
}
+
} else if (this.queueState.position !== null) {
this.state = "inQueue"
} else if (this.contributionState === "contributed") {
diff --git a/ceremony/src/routes/+page.svelte b/ceremony/src/routes/+page.svelte
index 5a7c717651..3956b954c4 100644
--- a/ceremony/src/routes/+page.svelte
+++ b/ceremony/src/routes/+page.svelte
@@ -18,9 +18,11 @@ $effect(() => {
{#if contributor}
{#if contributor.loggedIn}
+
{:else if contributor.onWaitlist}
Your on the list
{:else}
+
{/if}