diff --git a/app/api/admin/stats/route.ts b/app/api/admin/stats/route.ts index b001598..e3ee248 100644 --- a/app/api/admin/stats/route.ts +++ b/app/api/admin/stats/route.ts @@ -24,7 +24,15 @@ export async function GET() { user_id: true, total_seconds: true, categories: true, - user: { select: { email: true } }, + user: { + select: { + email: true, + name: true, + role: true, + email_verified: true, + wakatime_api_key: true, + }, + }, }, }), prisma.conversation.count(), @@ -36,6 +44,10 @@ export async function GET() { const users = topUserStats.map((row) => ({ user_id: row.user_id, email: row.user.email, + name: row.user.name, + role: row.user.role, + email_verified: row.user.email_verified ? "Yes" : "No", + wakatime_api_key: row.user.wakatime_api_key ? "Yes" : "No", total_seconds: Number(row.total_seconds), categories: row.categories, })); diff --git a/app/components/Chat.tsx b/app/components/Chat.tsx index 7024f45..61444e1 100644 --- a/app/components/Chat.tsx +++ b/app/components/Chat.tsx @@ -596,9 +596,9 @@ export default function Chat({ user }: { user: ChatUserShape }) { isDraggingOver ? "border-blue-500/60 bg-blue-50 shadow-lg shadow-blue-500/10" : "border-gray-200 bg-gray-50 hover:border-gray-300 focus-within:border-blue-500/50 focus-within:bg-white focus-within:shadow-[0_0_15px_rgba(99,102,241,0.1)]" - } transition-all duration-300 rounded-xl border flex items-end gap-2 p-2`} + } transition-all duration-300 rounded-xl border flex items-end gap-2`} > - + */} @@ -632,7 +632,7 @@ export default function Chat({ user }: { user: ChatUserShape }) {