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

Ceremony terminal #3023

Merged
merged 42 commits into from
Sep 27, 2024
Merged
Changes from 1 commit
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
523034c
feat(ceremony): terminal progress
Swepool Sep 25, 2024
2737101
feat(ceremony): save terminal progress
Swepool Sep 25, 2024
bb04935
feat(ceremony): save progress on terminal
Swepool Sep 25, 2024
4b40a54
feat(ceremony): save terminal progress
Swepool Sep 25, 2024
4ef14be
feat(ceremony): save terminal progress
Swepool Sep 25, 2024
8cab55a
feat(ceremony): save progress
Swepool Sep 25, 2024
96ce1b2
feat(ceremony): save progress
Swepool Sep 25, 2024
5046293
feat(ceremony): save terminal progress
Swepool Sep 25, 2024
de496ae
feat(ceremony): save terminal progress
Swepool Sep 25, 2024
e383656
feat(ceremony): save terminal progress
Swepool Sep 26, 2024
16f78d9
feat(ceremony): save terminal progress
Swepool Sep 26, 2024
8806b92
fix(ceremony): remove logs
Swepool Sep 26, 2024
18a1145
fix(ceremony): save progress terminal
Swepool Sep 26, 2024
25611d2
fix(ceremony): install missing package and fix hash
Swepool Sep 26, 2024
3d0d6c2
feat(ceremony): save progress on terminal
Swepool Sep 26, 2024
a115790
feat(ceremony): save terminal progress
Swepool Sep 26, 2024
0174bcf
feat(ceremony): save progress terminal
Swepool Sep 26, 2024
8db460e
fix(ceremony): fix build
Swepool Sep 26, 2024
7ac9881
feat(ceremony): save progress
Swepool Sep 26, 2024
d818d97
feat(ceremony): save progress
Swepool Sep 26, 2024
3cdf48b
feat(ceremony): save progress
Swepool Sep 26, 2024
7ce9e66
feat: video background
o-az Sep 26, 2024
6f938c6
feat(ceremony): save progress
Swepool Sep 26, 2024
8cab7b0
feat: webm format
o-az Sep 26, 2024
12a7cb6
feat: autoplay firefox
o-az Sep 26, 2024
9f7360d
feat: actually autoplay on firefox maybe
o-az Sep 26, 2024
0163e2a
feat(ceremony): save progress
Swepool Sep 26, 2024
06cb3c8
Merge branch 'ceremony-terminal' of ssh://github.com/unionlabs/union …
Swepool Sep 26, 2024
4c6291b
feat: bootloader sequence
o-az Sep 26, 2024
1f9262e
feat: bootloader sequence
o-az Sep 26, 2024
b95010a
feat(ceremony): save progress
Swepool Sep 26, 2024
68c6e1d
Merge branch 'ceremony-terminal' of ssh://github.com/unionlabs/union …
Swepool Sep 26, 2024
7722464
fix: os-specific install instructions
cor Sep 26, 2024
f22e473
chore: fmt/spellcheck
cor Sep 26, 2024
ab1d801
chore: fix biome
cor Sep 26, 2024
ad795a5
feat: outro video
o-az Sep 27, 2024
5799afe
fix: fmt
o-az Sep 27, 2024
5541d95
feat(ceremony): save progress
Swepool Sep 27, 2024
eaae32c
feat(ceremony): fix color
Swepool Sep 27, 2024
3c8caed
chore: revert outro
o-az Sep 27, 2024
3320bdb
feat(ceremony): save progress
Swepool Sep 27, 2024
fbcd654
fix(ceremony): fix link
Swepool Sep 27, 2024
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
Prev Previous commit
Next Next commit
chore: fix biome
  • Loading branch information
cor committed Sep 26, 2024
commit ab1d80139f34d6a71cfa22f9f0d2abd0e9fd2db2
2 changes: 1 addition & 1 deletion .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -26,4 +26,4 @@ jobs:
- name: Lint commit messages
uses: wagoid/commitlint-github-action@v5
with:
failOnWarnings: true
failOnWarnings: false
10 changes: 6 additions & 4 deletions ceremony/src/lib/supabase/index.ts
Original file line number Diff line number Diff line change
@@ -132,11 +132,11 @@ export const getCurrentUserState = async (userId: string | undefined): Promise<A
const { data, error } = await queryCurrentUserState()
if (error || !data) return undefined

return "join"

if (data.has_redeemed) return "hasRedeemed"
if (data.in_queue) return "inQueue"
if (data.in_waitlist) return "inWaitlist"

return "join"
}

export const getContributions = async () => {
@@ -210,8 +210,8 @@ export const getWaitListPosition = async (): Promise<number | undefined> => {
}

export const getAverageTimes = async (): Promise<TimeResult> => {
let contributionResult
let verificationResult
let contributionResult: { data: unknown; error: unknown | null }
let verificationResult: { data: unknown; error: unknown | null }

try {
;[contributionResult, verificationResult] = await Promise.all([
@@ -224,7 +224,9 @@ export const getAverageTimes = async (): Promise<TimeResult> => {
verificationResult = { data: null, error: null }
}

// @ts-ignore
const contribution = contributionResult.data?.contribution_average ?? null
// @ts-ignore
const verification = verificationResult.data?.verification_average ?? null

const contributionMs = timeToMs(contribution)
12 changes: 6 additions & 6 deletions devShell.nix
Original file line number Diff line number Diff line change
@@ -32,12 +32,12 @@ _: {
echo "Applying nix fmt"
nix fmt


echo "Applying biome fmt"
${lib.getExe biome} check . --write --unsafe \
--log-level="info" \
--log-kind="pretty" \
--diagnostic-level="info"
# seems deprecated
# echo "Applying biome fmt"
# ${lib.getExe biome} check . --write --unsafe \
# --log-level="info" \
# --log-kind="pretty" \
# --diagnostic-level="info"

echo "Checking spelling"
nix build .\#checks.${pkgs.system}.spellcheck -L