fix: Remove debug logs & fix favicon for production
- Remove all debug logs (127.0.0.1:7242) that cause errors in production - Fix site.webmanifest to use existing SVG icons instead of missing PNG files - Build erfolgreich
This commit is contained in:
@@ -4,14 +4,14 @@
|
|||||||
"description": "AI-powered email sorting for maximum productivity",
|
"description": "AI-powered email sorting for maximum productivity",
|
||||||
"icons": [
|
"icons": [
|
||||||
{
|
{
|
||||||
"src": "/favicon-192x192.png",
|
"src": "/favicon.svg",
|
||||||
"sizes": "192x192",
|
"sizes": "any",
|
||||||
"type": "image/png"
|
"type": "image/svg+xml"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"src": "/favicon-512x512.png",
|
"src": "/apple-touch-icon.svg",
|
||||||
"sizes": "512x512",
|
"sizes": "180x180",
|
||||||
"type": "image/png"
|
"type": "image/svg+xml"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"theme_color": "#22c55e",
|
"theme_color": "#22c55e",
|
||||||
|
|||||||
@@ -18,12 +18,6 @@ import { Imprint } from '@/pages/Imprint'
|
|||||||
// Initialize analytics on app startup
|
// Initialize analytics on app startup
|
||||||
initAnalytics()
|
initAnalytics()
|
||||||
|
|
||||||
// #region agent log
|
|
||||||
try {
|
|
||||||
fetch('http://127.0.0.1:7242/ingest/4fa7412d-6f79-4871-8728-29c37c9e5772',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'App.tsx:18',message:'App.tsx loaded, importing Settings',data:{},timestamp:Date.now(),sessionId:'debug-session',runId:'run1',hypothesisId:'B'})}).catch(()=>{});
|
|
||||||
} catch(e) {}
|
|
||||||
// #endregion
|
|
||||||
|
|
||||||
// Loading spinner component
|
// Loading spinner component
|
||||||
function LoadingSpinner() {
|
function LoadingSpinner() {
|
||||||
return (
|
return (
|
||||||
@@ -70,12 +64,6 @@ function AppRoutes() {
|
|||||||
// Track page views on route changes
|
// Track page views on route changes
|
||||||
usePageTracking()
|
usePageTracking()
|
||||||
|
|
||||||
// #region agent log
|
|
||||||
try {
|
|
||||||
fetch('http://127.0.0.1:7242/ingest/4fa7412d-6f79-4871-8728-29c37c9e5772',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'App.tsx:64',message:'AppRoutes rendering',data:{pathname:window.location.pathname},timestamp:Date.now(),sessionId:'debug-session',runId:'run1',hypothesisId:'D'})}).catch(()=>{});
|
|
||||||
} catch(e) {}
|
|
||||||
// #endregion
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Routes>
|
<Routes>
|
||||||
{/* Public pages */}
|
{/* Public pages */}
|
||||||
|
|||||||
@@ -3,12 +3,6 @@ import { createRoot } from 'react-dom/client'
|
|||||||
import './index.css'
|
import './index.css'
|
||||||
import App from './App.tsx'
|
import App from './App.tsx'
|
||||||
|
|
||||||
// #region agent log
|
|
||||||
try {
|
|
||||||
fetch('http://127.0.0.1:7242/ingest/4fa7412d-6f79-4871-8728-29c37c9e5772',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'main.tsx:8',message:'App starting',data:{rootExists:!!document.getElementById('root')},timestamp:Date.now(),sessionId:'debug-session',runId:'run1',hypothesisId:'C'})}).catch(()=>{});
|
|
||||||
} catch(e) {}
|
|
||||||
// #endregion
|
|
||||||
|
|
||||||
createRoot(document.getElementById('root')!).render(
|
createRoot(document.getElementById('root')!).render(
|
||||||
<StrictMode>
|
<StrictMode>
|
||||||
<App />
|
<App />
|
||||||
|
|||||||
@@ -80,23 +80,11 @@ interface Subscription {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export function Settings() {
|
export function Settings() {
|
||||||
// #region agent log
|
|
||||||
try {
|
|
||||||
fetch('http://127.0.0.1:7242/ingest/4fa7412d-6f79-4871-8728-29c37c9e5772',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'Settings.tsx:52',message:'Settings component rendering',data:{},timestamp:Date.now(),sessionId:'debug-session',runId:'run1',hypothesisId:'A'})}).catch(()=>{});
|
|
||||||
} catch(e) {}
|
|
||||||
// #endregion
|
|
||||||
|
|
||||||
const { user } = useAuth()
|
const { user } = useAuth()
|
||||||
const navigate = useNavigate()
|
const navigate = useNavigate()
|
||||||
const [searchParams, setSearchParams] = useSearchParams()
|
const [searchParams, setSearchParams] = useSearchParams()
|
||||||
|
|
||||||
const activeTab = (searchParams.get('tab') as TabType) || 'profile'
|
const activeTab = (searchParams.get('tab') as TabType) || 'profile'
|
||||||
|
|
||||||
// #region agent log
|
|
||||||
try {
|
|
||||||
fetch('http://127.0.0.1:7242/ingest/4fa7412d-6f79-4871-8728-29c37c9e5772',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'Settings.tsx:60',message:'Settings state initialized',data:{hasUser:!!user,activeTab},timestamp:Date.now(),sessionId:'debug-session',runId:'run1',hypothesisId:'A'})}).catch(()=>{});
|
|
||||||
} catch(e) {}
|
|
||||||
// #endregion
|
|
||||||
const [loading, setLoading] = useState(false)
|
const [loading, setLoading] = useState(false)
|
||||||
const [saving, setSaving] = useState(false)
|
const [saving, setSaving] = useState(false)
|
||||||
const [message, setMessage] = useState<{ type: 'success' | 'error'; text: string } | null>(null)
|
const [message, setMessage] = useState<{ type: 'success' | 'error'; text: string } | null>(null)
|
||||||
@@ -192,11 +180,6 @@ export function Settings() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const loadData = async () => {
|
const loadData = async () => {
|
||||||
// #region agent log
|
|
||||||
try {
|
|
||||||
fetch('http://127.0.0.1:7242/ingest/4fa7412d-6f79-4871-8728-29c37c9e5772',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'Settings.tsx:84',message:'loadData called',data:{hasUser:!!user,userId:user?.$id},timestamp:Date.now(),sessionId:'debug-session',runId:'run1',hypothesisId:'E'})}).catch(()=>{});
|
|
||||||
} catch(e) {}
|
|
||||||
// #endregion
|
|
||||||
|
|
||||||
if (!user?.$id) return
|
if (!user?.$id) return
|
||||||
setLoading(true)
|
setLoading(true)
|
||||||
@@ -265,18 +248,7 @@ export function Settings() {
|
|||||||
enabled: enabledCategories.includes(cat.key),
|
enabled: enabledCategories.includes(cat.key),
|
||||||
}))
|
}))
|
||||||
setCategories(updatedCategories)
|
setCategories(updatedCategories)
|
||||||
|
|
||||||
// #region agent log
|
|
||||||
try {
|
|
||||||
fetch('http://127.0.0.1:7242/ingest/4fa7412d-6f79-4871-8728-29c37c9e5772',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'Settings.tsx:122',message:'loadData success',data:{accountsCount:accountsRes.data?.length||0,categoriesCount:updatedCategories.length},timestamp:Date.now(),sessionId:'debug-session',runId:'run1',hypothesisId:'E'})}).catch(()=>{});
|
|
||||||
} catch(e) {}
|
|
||||||
// #endregion
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
// #region agent log
|
|
||||||
try {
|
|
||||||
fetch('http://127.0.0.1:7242/ingest/4fa7412d-6f79-4871-8728-29c37c9e5772',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'Settings.tsx:123',message:'loadData error',data:{errorMessage:error instanceof Error?error.message:String(error),errorStack:error instanceof Error?error.stack:undefined},timestamp:Date.now(),sessionId:'debug-session',runId:'run1',hypothesisId:'E'})}).catch(()=>{});
|
|
||||||
} catch(e) {}
|
|
||||||
// #endregion
|
|
||||||
console.error('Failed to load settings data:', error)
|
console.error('Failed to load settings data:', error)
|
||||||
} finally {
|
} finally {
|
||||||
setLoading(false)
|
setLoading(false)
|
||||||
@@ -570,12 +542,6 @@ export function Settings() {
|
|||||||
{ id: 'privacy' as TabType, label: 'Privacy & Security', icon: Lock },
|
{ id: 'privacy' as TabType, label: 'Privacy & Security', icon: Lock },
|
||||||
]
|
]
|
||||||
|
|
||||||
// #region agent log
|
|
||||||
try {
|
|
||||||
fetch('http://127.0.0.1:7242/ingest/4fa7412d-6f79-4871-8728-29c37c9e5772',{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify({location:'Settings.tsx:243',message:'Settings render starting',data:{loading,activeTab,hasUser:!!user},timestamp:Date.now(),sessionId:'debug-session',runId:'run1',hypothesisId:'A'})}).catch(()=>{});
|
|
||||||
} catch(e) {}
|
|
||||||
// #endregion
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="min-h-screen bg-slate-50 dark:bg-slate-900">
|
<div className="min-h-screen bg-slate-50 dark:bg-slate-900">
|
||||||
<header className="bg-white dark:bg-slate-900 border-b border-slate-200 dark:border-slate-700 sticky top-0 z-40">
|
<header className="bg-white dark:bg-slate-900 border-b border-slate-200 dark:border-slate-700 sticky top-0 z-40">
|
||||||
|
|||||||
Reference in New Issue
Block a user