Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(ceremony): text changes and new log type #3180

Merged
merged 3 commits into from
Oct 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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