Skip to content

Commit 3218145

Browse files
committed
feat(ceremony): text changes and new log type
1 parent 4d9a1ca commit 3218145

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

ceremony/src/lib/components/Terminal/Activity.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ function formatTimestamp(timestamp: string): string {
4949
{:else if type === "contribution_submitted"}
5050
{user} has submitted their contribution
5151
{:else if type === "contribution_verified"}
52-
{user}'s contribution has just been verified
52+
{user} contribution has just been verified
53+
{:else if type === "contribution_expired"}
54+
{user} contribution has expired
5355
{/if}
5456
</Print>
5557
{/each}

ceremony/src/lib/components/Terminal/Queue.svelte

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ let averages = $state<TimeResult>()
1717
onMount(async () => {
1818
terminal.setStep(8)
1919
terminal.updateHistory({ text: "YOU ARE IN QUEUE" })
20-
terminal.updateHistory({ lineBreak: true, text: "" })
21-
terminal.updateHistory({
22-
text: "Do not close this tab or your Terminal. Ensure you have a reliable internet connection and that your computer does not go to sleep.",
23-
type: "warning"
24-
})
2520
axiom.ingest("monitor", [{ user: user.session?.user.id, type: "mount_queue" }])
2621
averages = await getAverageTimes()
2722
await contributor.checkUserWallet(contributor.userId)
@@ -39,6 +34,15 @@ $effect(() => {
3934
})
4035
</script>
4136

37+
{#if contributor.queueState.position}
38+
<Print class="text-red-500">
39+
{contributor.queueState.position < 78 ?
40+
"Do not close this tab or your Terminal. Ensure you have a reliable internet connection and that your computer does not go to sleep." :
41+
"Your contribution slot is far in the future. You can turn your device off and rejoin later without losing progression. If you are not online when it is your turn, you will lose your slot and not be able to contribute."
42+
}
43+
</Print>
44+
{/if}
45+
<Print><br></Print>
4246
<Print>Your place in line: <span
4347
class="text-union-accent-500">{contributor.queueState.position ?? "LOADING"}{getNumberSuffix(contributor.queueState.position)}</span>
4448
</Print>

0 commit comments

Comments
 (0)