Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion analytics/components/AccountAnalytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ export const AccountAnalytics: React.FC<AccountAnalyticsProps> = ({ className =
const accountData = await AnalyticsService.getAccountAnalytics();
setAccounts(accountData);
} catch (err) {
console.error('Error loading account analytics:', err);
setError('Failed to load account analytics');
} finally {
setLoading(false);
Expand Down
1 change: 0 additions & 1 deletion analytics/components/FeedbackAnalytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ export const FeedbackAnalytics: React.FC<FeedbackAnalyticsProps> = ({ className
const data = await AnalyticsService.getFeedbackAnalytics();
setFeedbackData(data);
} catch (err) {
console.error('Error loading feedback analytics:', err);
setError('Failed to load feedback analytics');
} finally {
setLoading(false);
Expand Down
1 change: 0 additions & 1 deletion analytics/components/PlatformAnalytics.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export const PlatformAnalytics: React.FC<PlatformAnalyticsProps> = ({ className
setPlatformStats(stats);
setUserEngagement(engagement);
} catch (err) {
console.error('Error loading platform analytics:', err);
setError('Failed to load analytics data');
} finally {
setLoading(false);
Expand Down
8 changes: 0 additions & 8 deletions analytics/services/analyticsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ export class AnalyticsService {
feedbackRate,
};
} catch (error) {
console.error('Error fetching platform stats:', error);
throw error;
}
}
Expand Down Expand Up @@ -178,7 +177,6 @@ export class AnalyticsService {

return accountAnalytics;
} catch (error) {
console.error('Error fetching account analytics:', error);
throw error;
}
}
Expand Down Expand Up @@ -271,7 +269,6 @@ export class AnalyticsService {
feedbackTrends,
};
} catch (error) {
console.error('Error fetching feedback analytics:', error);
throw error;
}
}
Expand Down Expand Up @@ -352,7 +349,6 @@ export class AnalyticsService {

return demoAnalytics;
} catch (error) {
console.error('Error fetching demo analytics:', error);
throw error;
}
}
Expand Down Expand Up @@ -458,7 +454,6 @@ export class AnalyticsService {
topPerformingUsers,
};
} catch (error) {
console.error('Error fetching user engagement metrics:', error);
throw error;
}
}
Expand All @@ -484,7 +479,6 @@ export class AnalyticsService {
recentActivity,
};
} catch (error) {
console.error('Error fetching analytics dashboard:', error);
throw error;
}
}
Expand All @@ -494,7 +488,6 @@ export class AnalyticsService {
try {
return await accountService.getAllAccounts();
} catch (error) {
console.error('Error fetching all accounts:', error);
return [];
}
}
Expand All @@ -503,7 +496,6 @@ export class AnalyticsService {
try {
return await mandatoryFeedbackService.getRecentFeedback(1000); // Get last 1000 feedback entries
} catch (error) {
console.error('Error fetching all feedback:', error);
return [];
}
}
Expand Down
8 changes: 4 additions & 4 deletions app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export const RootProviders = ({ children }: RootProvidersProps) => {
<ToastProvider>
<AccountProvider>
<TransactionProvider>
<FirebaseProvider>
<BadgeAnimationProvider>
<BadgeAnimationProvider>
<FirebaseProvider>
<EscrowProvider>{children}</EscrowProvider>
</BadgeAnimationProvider>
</FirebaseProvider>
</FirebaseProvider>
</BadgeAnimationProvider>
</TransactionProvider>
</AccountProvider>
</ToastProvider>
Expand Down
2 changes: 1 addition & 1 deletion components/demos/MicroTaskMarketplaceDemo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ export const MicroTaskMarketplaceDemo = ({

await hooks.fundEscrow(payload);
} catch (error) {
console.error('Error funding escrow:', error);
// Error funding escrow
}
}

Expand Down
2 changes: 0 additions & 2 deletions components/games/EscrowPuzzleMaster.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,6 @@ export default function EscrowPuzzleMaster() {
duration: 3000,
});
} catch (error) {
console.error('Failed to deduct points:', error);
addToast({
type: 'error',
title: 'Error',
Expand Down Expand Up @@ -374,7 +373,6 @@ export default function EscrowPuzzleMaster() {
});
}
} catch (error) {
console.error('Failed to save score:', error);
addToast({
type: 'error',
title: 'Save Failed',
Expand Down
2 changes: 1 addition & 1 deletion components/games/GameSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ const GameSidebar: React.FC<GameSidebarProps> = ({
const stats = await gameScoresService.getGameStats(gameId);
setGameStats(stats);
} catch (error) {
console.error('Failed to load leaderboard:', error);
// Failed to load leaderboard
}
};

Expand Down
5 changes: 1 addition & 4 deletions components/games/InfiniteRunner.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,6 @@ const InfiniteRunner: React.FC<InfiniteRunnerProps> = ({ gameId, gameTitle, embe
}
);
} catch (scoreError) {
console.error('Failed to submit score to leaderboard:', scoreError);
// Don't fail the entire save if leaderboard submission fails
}

Expand All @@ -232,7 +231,6 @@ const InfiniteRunner: React.FC<InfiniteRunnerProps> = ({ gameId, gameTitle, embe
duration: 5000,
});
} catch (error) {
console.error('Failed to save game progress:', error);
addToast({
type: 'error',
title: 'Save Failed',
Expand Down Expand Up @@ -365,7 +363,7 @@ const InfiniteRunner: React.FC<InfiniteRunnerProps> = ({ gameId, gameTitle, embe
'achievement'
);
} catch (error) {
console.error('Failed to complete challenge:', error);
// Failed to complete challenge
}
}
});
Expand Down Expand Up @@ -528,7 +526,6 @@ const InfiniteRunner: React.FC<InfiniteRunnerProps> = ({ gameId, gameTitle, embe
duration: 3000,
});
} catch (error) {
console.error('Failed to deduct points:', error);
addToast({
type: 'error',
title: 'Error',
Expand Down
4 changes: 2 additions & 2 deletions components/ui/NotificationBell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const NotificationBell: React.FC = () => {
try {
await notificationService.markAsRead(notificationId);
} catch (error) {
console.error('Error marking notification as read:', error);
// Error marking notification as read
}
};

Expand All @@ -67,7 +67,7 @@ export const NotificationBell: React.FC = () => {
try {
await notificationService.markAllAsRead(account.id);
} catch (error) {
console.error('Error marking all as read:', error);
// Error marking all as read
}
};

Expand Down
2 changes: 1 addition & 1 deletion components/ui/RewardsSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ export const RewardsSidebar: React.FC<RewardsDropdownProps> = ({ isOpen, onClose
animation: 'pulse 2s ease-in-out infinite',
}}
onError={e => {
console.warn('Image failed to load:', currentPhase.image);
// Image failed to load
}}
/>
)}
Expand Down
2 changes: 1 addition & 1 deletion components/ui/auth/AuthModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ export const AuthModal: React.FC<AuthModalProps> = ({ isOpen, onClose, mode }) =
onClose();
}
} catch (err) {
console.error('Error in signIn:', err);
// Error in signIn
} finally {
setIsSubmitting(false);
}
Expand Down
2 changes: 1 addition & 1 deletion components/ui/modals/DemoFeedbackModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const DemoFeedbackModal: React.FC<DemoFeedbackModalProps> = ({

onClose();
} catch (err) {
console.error('Error in demo feedback:', err);
// Error in demo feedback
} finally {
setIsSubmitting(false);
}
Expand Down
3 changes: 0 additions & 3 deletions components/ui/modals/ImmersiveDemoModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1041,9 +1041,6 @@ export const ImmersiveDemoModal = ({
// 🚩 CORRECCIÓN CRÍTICA: Usa ?? '' para manejar null/undefined como string vacío
const finalUrl = transaction.stellarExpertUrl ?? '';

console.log('HASH en el Modal:', transaction.hash);
console.log('URL EXPERT en el Modal:', finalUrl); // Mostrará '' si está vacío

// 1. Verificar si la URL REAL está presente (si no es una cadena vacía)
if (finalUrl) {
window.open(finalUrl, '_blank', 'noopener,noreferrer');
Expand Down
2 changes: 1 addition & 1 deletion components/ui/navigation/UserAvatar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const UserAvatar = ({ onClick, size = 'md', showStatus = true }: UserAvat
return parsed.avatarSeed || walletData.publicKey;
}
} catch (error) {
console.error('Error loading avatar:', error);
// Error loading avatar
}
return walletData.publicKey;
}
Expand Down
1 change: 0 additions & 1 deletion components/ui/navigation/UserDropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,6 @@ export const UserDropdown = () => {
setIsEditingName(false);
setTempName('');
} catch (error) {
console.error('Error saving display name:', error);
addToast({
type: 'error',
title: '❌ Save Failed',
Expand Down
2 changes: 1 addition & 1 deletion components/ui/quest/QuestSystem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export const QuestSystem: React.FC<QuestSystemProps> = ({
}
}
} catch (error) {
console.error('Error completing quest:', error);
// Error completing quest
}
};

Expand Down
2 changes: 0 additions & 2 deletions components/ui/referral/MyReferralsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export const MyReferralsView: React.FC<MyReferralsViewProps> = ({
username: account?.profile?.displayName || account?.displayName || 'Anonymous User',
};
} catch (err) {
console.warn('Failed to fetch account for referral:', err);
return {
...referral,
username: null,
Expand All @@ -64,7 +63,6 @@ export const MyReferralsView: React.FC<MyReferralsViewProps> = ({

setReferrals(enrichedData);
} catch (err: any) {
console.error('Error loading referrals:', err);
let errorMessage = 'Failed to load referrals. Please try again.';
if (err?.code === 'failed-precondition' || err?.message?.includes('index')) {
errorMessage =
Expand Down
3 changes: 1 addition & 2 deletions components/ui/referral/PokemonReferralCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export const PokemonReferralCard: React.FC<PokemonReferralCardProps> = ({
const rank = await leaderboardService.getUserRank(account.walletAddress);
setUserRanking(rank);
} catch (error) {
console.error('Error fetching user ranking:', error);
// Error fetching user ranking
}
}
};
Expand Down Expand Up @@ -214,7 +214,6 @@ export const PokemonReferralCard: React.FC<PokemonReferralCardProps> = ({
break;
}
} catch (error) {
console.error('Error sharing:', error);
addToast({
type: 'error',
title: '❌ Share Failed',
Expand Down
1 change: 0 additions & 1 deletion components/ui/referral/ReferralInvitationModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ const ApplyCodeView: React.FC<ApplyCodeViewProps> = ({
}
} catch (error) {
setStatusMessage('Network or internal error.');
console.error(error);
} finally {
setLoading(false);
}
Expand Down
2 changes: 1 addition & 1 deletion components/ui/wallet/NetworkIndicator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const NetworkIndicator: React.FC<NetworkIndicatorProps> = ({
await switchNetwork(network);
setShowDropdown(false);
} catch (error) {
console.error('Error switching network:', error);
// Error switching network
} finally {
setIsSwitching(false);
}
Expand Down
2 changes: 0 additions & 2 deletions components/ui/wallet/WalletSidebar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,6 @@ export const WalletSidebar = ({
}
}, 1500);
} catch (error) {
console.error('Wallet modal error:', error);
const errorMessage =
error instanceof Error ? error.message : 'Unknown error';

Expand Down Expand Up @@ -870,7 +869,6 @@ export const WalletSidebar = ({
}
}, 1500);
} catch (error) {
console.error('Wallet modal error:', error);
const errorMessage =
error instanceof Error ? error.message : 'Unknown error';

Expand Down
11 changes: 1 addition & 10 deletions contexts/data/FirebaseContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const FirebaseProvider: React.FC<FirebaseProviderProps> = ({ children })
try {
await loadDemoStats();
} catch (error) {
console.error('Error loading demo stats:', error);
// Error loading demo stats
}

if (!walletData?.publicKey) {
Expand Down Expand Up @@ -183,7 +183,6 @@ export const FirebaseProvider: React.FC<FirebaseProviderProps> = ({ children })
const accountData = await accountService.getAccountByWalletAddress(walletData.publicKey);
setAccount(accountData);
} catch (error) {
console.error('Error loading account data:', error);
addToast({
title: 'Error',
message: 'Failed to load account data.',
Expand Down Expand Up @@ -220,7 +219,6 @@ export const FirebaseProvider: React.FC<FirebaseProviderProps> = ({ children })

setDemoStats(stats);
} catch (error) {
console.error('Error loading demo stats:', error);
// Don't show error toast for demo stats as it's not critical
}
};
Expand Down Expand Up @@ -337,7 +335,6 @@ export const FirebaseProvider: React.FC<FirebaseProviderProps> = ({ children })
try {
await demoStatsService.incrementCompletion(demoId, completionTimeMinutes, finalScore);
} catch (statsError) {
console.error('FirebaseContext: Failed to update demo stats:', statsError);
// Don't fail the demo completion if stats tracking fails
}

Expand Down Expand Up @@ -438,7 +435,6 @@ export const FirebaseProvider: React.FC<FirebaseProviderProps> = ({ children })
});
}
} catch (transactionError) {
console.error('FirebaseContext: Failed to add transaction to history:', transactionError);
// Don't fail the demo completion if transaction logging fails
}

Expand Down Expand Up @@ -513,7 +509,6 @@ export const FirebaseProvider: React.FC<FirebaseProviderProps> = ({ children })
duration: 3000,
});
} catch (error) {
console.error('Failed to clap demo:', error);
const errorMessage =
error instanceof Error ? error.message : 'Failed to clap demo. Please try again.';
addToast({
Expand Down Expand Up @@ -547,7 +542,6 @@ export const FirebaseProvider: React.FC<FirebaseProviderProps> = ({ children })

return feedbackId;
} catch (error) {
console.error('Failed to submit mandatory feedback:', error);
const errorMessage =
error instanceof Error ? error.message : 'Failed to submit feedback. Please try again.';
addToast({
Expand All @@ -566,7 +560,6 @@ export const FirebaseProvider: React.FC<FirebaseProviderProps> = ({ children })
try {
return await mandatoryFeedbackService.hasUserSubmittedFeedback(walletData.publicKey, demoId);
} catch (error) {
console.error('Failed to check feedback submission:', error);
return false;
}
};
Expand All @@ -578,7 +571,6 @@ export const FirebaseProvider: React.FC<FirebaseProviderProps> = ({ children })
try {
return await mandatoryFeedbackService.getUserFeedback(walletData.publicKey);
} catch (error) {
console.error('Failed to get user feedback:', error);
return [];
}
};
Expand All @@ -588,7 +580,6 @@ export const FirebaseProvider: React.FC<FirebaseProviderProps> = ({ children })
try {
return await mandatoryFeedbackService.getDemoFeedbackStats(demoId);
} catch (error) {
console.error('Failed to get demo feedback stats:', error);
return {
totalFeedback: 0,
averageRating: 0,
Expand Down
Loading
Loading