feat: Complete app-wide error coverage

This commit is contained in:
gpt-engineer-app[bot]
2025-11-04 19:58:20 +00:00
parent d9bd7c1616
commit a649906b61
22 changed files with 111 additions and 57 deletions

View File

@@ -1,5 +1,5 @@
import { supabase } from '@/lib/supabaseClient';
import { logger } from './logger';
import { handleNonCriticalError } from './errorHandler';
// Generate anonymous session hash (no PII)
function getSessionHash(): string {
@@ -41,6 +41,9 @@ export async function trackPageView(
});
} catch (error: unknown) {
// Fail silently - don't break the page if tracking fails
logger.error('Failed to track page view', { entityType, entityId });
handleNonCriticalError(error, {
action: 'Track page view',
metadata: { entityType, entityId }
});
}
}