Skip to content

Appv2 faucet #4189

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

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft

Appv2 faucet #4189

wants to merge 11 commits into from

Conversation

Caglankaan
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Apr 7, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
site ⬜️ Ignored (Inspect) Visit Preview Apr 10, 2025 9:59am

Copy link

github-actions bot commented Apr 7, 2025

App 2 🤌

✨ Deployment complete! Take a peek over at https://b63ffa4f.app2-9yo.pages.dev
✨ Deployment alias URL: https://head.app2-9yo.pages.dev


Idle: {}
Verifying: {}
Verified: { token: string }
Submitting: { token: string }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specify what the type of schema is of token by using one of the types from schema/

type FaucetProcessState = Data.TaggedEnum<{
Idle: {}
Verifying: {}
Verified: { token: string }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what does this mean?

Comment on lines +57 to +61
const handleTurnstileError = (e: CustomEvent<{ code: string }>) => {
faucetProcess.set(FaucetProcess.Failure({ error: `Verification error: ${e.detail.code}` }))
showTurnstile = false
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we only get a code and no other data? best to always propagate all error data all the way upwards, so that we get full context in the app if there is any error

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants