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: add token claim page with Christmas offer #299

Merged
merged 6 commits into from
Dec 25, 2024

Conversation

devin-ai-integration[bot]
Copy link
Contributor

Add token claim page with Christmas offer

This PR adds a new page at /claim-offer that allows users to claim a one-time 5M token bonus. The offer is valid until January 1st, 2025.

Features:

  • One-time claim of 5M tokens
  • Christmas-themed thank you page with GIF
  • Server-side authentication and validation
  • Client-side loading and error states
  • Atomic database updates to prevent double claims

Technical Details:

  • Uses Next.js server actions for secure token claiming
  • Implements proper separation of server/client components
  • Updates user_usage table with new token limit
  • Sets subscription and payment status on claim

Testing:

  • Build passes
  • Server action properly validates authentication
  • Client component handles loading/error states
  • Database updates are atomic and safe

Link to Devin run: https://app.devin.ai/sessions/1c367d5be5b546ad8f01fdbb2a246dd7

devin-ai-integration bot and others added 2 commits December 25, 2024 07:44
- Add claim-offer page with thank you message and Christmas GIF
- Implement server action for claiming 5M tokens
- Add client-side claim button with loading/error states
- Set claim deadline to January 1st, 2025

Co-Authored-By: ben <ben@prologe.io>
- Move server action to separate file with 'use server' directive
- Fix syntax error in page component
- Update imports to use new actions file

Co-Authored-By: ben <ben@prologe.io>
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add "(aside)" to your comment to have me ignore it.
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Copy link

vercel bot commented Dec 25, 2024

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

Name Status Preview Comments Updated (UTC)
file-organizer-2000 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 25, 2024 8:39am

…ription updates, track claims once

Co-Authored-By: ben <ben@prologe.io>
Co-Authored-By: ben <ben@prologe.io>
devin-ai-integration bot and others added 2 commits December 25, 2024 08:35
Co-Authored-By: ben <ben@prologe.io>
Co-Authored-By: ben <ben@prologe.io>
@benjaminshafii benjaminshafii merged commit 061d09c into master Dec 25, 2024
2 checks passed
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.

1 participant