Skip to content

Development to prod (fix referral system, clean code, optimize and make more fluid and smoothly UX)#18

Merged
josegomez-dev merged 9 commits intomainfrom
development
Nov 26, 2025
Merged

Development to prod (fix referral system, clean code, optimize and make more fluid and smoothly UX)#18
josegomez-dev merged 9 commits intomainfrom
development

Conversation

@josegomez-dev
Copy link
Collaborator

No description provided.

barran33 and others added 9 commits November 21, 2025 22:02
- 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
@vercel
Copy link

vercel bot commented Nov 26, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
stellar-nexus-experience Ready Ready Preview Comment Nov 26, 2025 3:55pm

@josegomez-dev josegomez-dev merged commit 3f70837 into main Nov 26, 2025
4 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.

2 participants