Skip to content

Commit

Permalink
feat(ceremony): text changes and new log type (#3180)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swepool authored Oct 31, 2024
2 parents 4d9a1ca + 33aaabf commit cb75d58
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
4 changes: 3 additions & 1 deletion ceremony/src/lib/components/Terminal/Activity.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ function formatTimestamp(timestamp: string): string {
{:else if type === "contribution_submitted"}
{user} has submitted their contribution
{:else if type === "contribution_verified"}
{user}'s contribution has just been verified
{user} contribution has just been verified
{:else if type === "contribution_expired"}
{user} contribution has expired
{/if}
</Print>
{/each}
Expand Down
14 changes: 9 additions & 5 deletions ceremony/src/lib/components/Terminal/Queue.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ let averages = $state<TimeResult>()
onMount(async () => {
terminal.setStep(8)
terminal.updateHistory({ text: "YOU ARE IN QUEUE" })
terminal.updateHistory({ lineBreak: true, text: "" })
terminal.updateHistory({
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.",
type: "warning"
})
axiom.ingest("monitor", [{ user: user.session?.user.id, type: "mount_queue" }])
averages = await getAverageTimes()
await contributor.checkUserWallet(contributor.userId)
Expand All @@ -39,6 +34,15 @@ $effect(() => {
})
</script>

{#if contributor.queueState.position}
<Print class="text-red-500">
{contributor.queueState.position < 50 ?
"Do not close this tab or your Terminal. Ensure you have a reliable internet connection and that your computer does not go to sleep." :
"Your contribution slot is far in the future. You can turn your device off and return 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."
}
</Print>
{/if}
<Print><br></Print>
<Print>Your place in line: <span
class="text-union-accent-500">{contributor.queueState.position ?? "LOADING"}{getNumberSuffix(contributor.queueState.position)}</span>
</Print>
Expand Down

0 comments on commit cb75d58

Please sign in to comment.