Development to prod (fix referral system, clean code, optimize and make more fluid and smoothly UX)#18
Merged
josegomez-dev merged 9 commits intomainfrom Nov 26, 2025
Merged
Conversation
…e errores críticos
- Fix badge extraction to use badgesEarned field (array of badge IDs) instead of badges field - Add fallback to extract badge IDs from badges array for UserAccount type compatibility - Fix badge count display showing 0 badges issue - Ensure badge SVG icons display correctly in all layout styles - Add conditional spacing for Classic layout
…cking - Make Apply Referral Code tab available for all users (not just new users) - Add new 'My Referrals' tab showing invitation history with detailed table - Create referral invitation service to manage email invitations - Store referral invitations in both collection and user account documents - Implement automatic invitation activation when referral codes are applied - Add comprehensive error handling with graceful fallbacks for missing Firestore indexes - Improve empty state with helpful instructions for users - Add Firestore composite index for referralInvitations queries - Track referral data: username, wallet, dates, status, and points earned - Support multiple users invited with same referral code
…ling - Add resend email functionality in My Referrals tab for pending invitations - Hide Apply Code tab for users who already applied a referral code - Fix toast notifications to use proper format with title and message - Add URL parameter handling for ?ref= referral code on account creation - Create referral invitation records when codes are applied (even without email invite) - Improve EmailJS error handling with detailed messages and timeout - Add better error categorization (network, config, timeout) - Update toast notification to guide users to My Referrals for resending - Pass referral context (code, link, name) to MyReferralsView component - Add comprehensive error logging for debugging EmailJS issues
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.