Skip to content

chore(js/frontend): migrate faucet verification to Cloudflare Turnstile#815

Merged
nikitayutanov merged 2 commits intomainfrom
ny-turnstile
Feb 27, 2026
Merged

chore(js/frontend): migrate faucet verification to Cloudflare Turnstile#815
nikitayutanov merged 2 commits intomainfrom
ny-turnstile

Conversation

@nikitayutanov
Copy link
Member

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the faucet verification system from hCaptcha to Cloudflare Turnstile. The change involves replacing the captcha library, updating environment variables across the deployment pipeline, and redesigning the verification UI to use an overlay modal approach instead of an invisible widget.

Changes:

  • Replaced @hcaptcha/react-hcaptcha package with @marsidev/react-turnstile library
  • Refactored the verification flow to use manual execution with visual feedback via an overlay
  • Updated environment variable names from VITE_HCAPTCHA_SITEKEY to VITE_TURNSTILE_SITEKEY across Dockerfile and GitHub workflow

Reviewed changes

Copilot reviewed 6 out of 7 changed files in this pull request and generated 6 comments.

Show a summary per file
File Description
yarn.lock Removed hCaptcha packages and dependencies, added @marsidev/react-turnstile package
js/frontend/src/features/faucet/consts.ts Updated constant name from HCAPTCHA_SITEKEY to TURNSTILE_SITEKEY
js/frontend/src/features/faucet/components/get-balance-button/get-balance-button.tsx Replaced hCaptcha implementation with Turnstile, added overlay modal and state management for verification visibility
js/frontend/src/features/faucet/components/get-balance-button/get-balance-button.module.scss Added overlay styles with backdrop blur for verification widget
js/frontend/package.json Updated package dependency from @hcaptcha/react-hcaptcha to @marsidev/react-turnstile
js/frontend/Dockerfile Updated environment variable from VITE_HCAPTCHA_SITEKEY to VITE_TURNSTILE_SITEKEY
.github/workflows/deploy-frontend.yml Updated environment variable from VITE_HCAPTCHA_SITEKEY to VITE_TURNSTILE_SITEKEY

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nikitayutanov nikitayutanov merged commit cd4c650 into main Feb 27, 2026
10 checks passed
@nikitayutanov nikitayutanov deleted the ny-turnstile branch February 27, 2026 19:11
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.

3 participants