Skip to content

Conversation

@kien-ngo
Copy link
Contributor

@kien-ngo kien-ngo commented Oct 29, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on enhancing the functionality of the Faucet feature in the dashboard application. It introduces new environment variables, updates modal components to allow closing, and modifies API routes to ensure email verification for faucet claims.

Detailed summary

  • Added REDIS_URL to .env.example.
  • Modified turbo.json to include new environment variables.
  • Updated OnboardingModal to accept onOpenChange prop.
  • Enhanced FaucetButton to handle email verification.
  • Updated API routes to check for verified email before allowing claims.
  • Introduced caching for account claims based on IP and account ID.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel
Copy link

vercel bot commented Oct 29, 2024

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

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 8:29pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 8:29pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 8:29pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 5, 2024 8:29pm

@vercel vercel bot temporarily deployed to Preview – wallet-ui October 29, 2024 23:21 Inactive
@changeset-bot
Copy link

changeset-bot bot commented Oct 29, 2024

⚠️ No Changeset found

Latest commit: 43b7c27

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 29, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@vercel vercel bot temporarily deployed to Preview – docs-v2 October 29, 2024 23:21 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 29, 2024 23:21 Inactive
Copy link
Contributor Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @kien-ngo and the rest of your teammates on Graphite Graphite

@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Oct 29, 2024
@kien-ngo kien-ngo marked this pull request as ready for review October 29, 2024 23:21
@codecov
Copy link

codecov bot commented Oct 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.59%. Comparing base (6469fd5) to head (43b7c27).
Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5226   +/-   ##
=======================================
  Coverage   45.59%   45.59%           
=======================================
  Files        1069     1069           
  Lines       55584    55584           
  Branches     4045     4045           
=======================================
  Hits        25342    25342           
  Misses      29552    29552           
  Partials      690      690           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 6469fd5
packages 40.70% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 29, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 43 KB (0%) 861 ms (0%) 350 ms (+80.38% 🔺) 1.3 s
thirdweb (cjs) 103 KB (0%) 2.1 s (0%) 707 ms (+14.62% 🔺) 2.8 s
thirdweb (minimal + tree-shaking) 4.85 KB (0%) 97 ms (0%) 48 ms (+255.16% 🔺) 145 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 182 ms (+4051.15% 🔺) 192 ms
thirdweb/react (minimal + tree-shaking) 17.51 KB (0%) 351 ms (0%) 104 ms (+98.14% 🔺) 455 ms

@kien-ngo kien-ngo force-pushed the kien/improve-faucet-claim branch from 89a6e1c to a172405 Compare October 30, 2024 23:55
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 30, 2024 23:55 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 30, 2024 23:55 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 30, 2024 23:55 Inactive
@kien-ngo kien-ngo force-pushed the kien/improve-faucet-claim branch from a172405 to 462db2a Compare October 30, 2024 23:57
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 30, 2024 23:57 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 30, 2024 23:57 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 30, 2024 23:57 Inactive
@kien-ngo kien-ngo force-pushed the kien/improve-faucet-claim branch from 462db2a to d08e0d0 Compare October 31, 2024 14:44
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 31, 2024 14:45 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 31, 2024 14:45 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 31, 2024 14:45 Inactive
@kien-ngo kien-ngo force-pushed the kien/improve-faucet-claim branch from 225ed27 to c21c7e6 Compare November 5, 2024 07:19
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 5, 2024 07:19 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 5, 2024 07:19 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 5, 2024 07:19 Inactive
@kien-ngo kien-ngo force-pushed the kien/improve-faucet-claim branch from c21c7e6 to 46f31b0 Compare November 5, 2024 07:21
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 5, 2024 07:21 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 5, 2024 07:21 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 5, 2024 07:21 Inactive
@kien-ngo kien-ngo requested a review from gregfromstl November 5, 2024 12:49
@MananTank MananTank force-pushed the kien/improve-faucet-claim branch from 46f31b0 to 0d68199 Compare November 5, 2024 18:01
@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 5, 2024

Merge activity

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the functionality of the `Faucet` feature in the dashboard application. It introduces new environment variables, updates modal components to allow for state management, and improves API endpoints for better user authentication and request handling.

### Detailed summary
- Added `REDIS_URL` and updated `TURNSTILE_SECRET_KEY` in `.env.example`.
- Updated `turbo.json` to include new environment variables.
- Modified `OnboardingModal` to accept `onOpenChange` prop for state management.
- Enhanced API routes to check for email verification before allowing faucet claims.
- Improved error handling for wallet connections and request limits.
- Updated `FaucetButton` to show onboarding modal for email verification.
- Added caching logic for user requests to prevent abuse.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants