diff --git a/src/app/admin/page.tsx b/src/app/admin/page.tsx index 29989d0..5e8d8af 100644 --- a/src/app/admin/page.tsx +++ b/src/app/admin/page.tsx @@ -185,53 +185,65 @@ export default async function AdminPage() { - {/* Recent Activity */} + {/* Recent API Calls */}
| Time | -User | -API Type | -Status | -Error | -
|---|---|---|---|---|
| - {new Date(item.created_at).toLocaleString('de-DE')} - | -- {(item.profiles as any)?.username || 'Unknown'} - | -- - {item.api_type === 'google_search' ? 'Search' : 'AI'} - - | -- - {item.success ? 'Success' : 'Failed'} - - | -- {item.error_message || '-'} - | -
No API calls recorded yet
+ {recentError && ( +Error: {recentError.message}
+ )} +| Time | +User | +API Type | +Endpoint | +Status | +
|---|---|---|---|---|
| + {new Date(call.created_at).toLocaleString('de-DE')} + | ++ {call.profiles?.username || 'Unknown'} + | ++ + {call.api_type === 'google_search' ? 'Google Search' : 'Gemini AI'} + + | ++ {call.endpoint} + | ++ {call.success ? ( + ✓ + ) : ( + ✗ + )} + | +