From 94a71b580cbc6351afcf00bf363591846b5bd218 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:34:22 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/admin.users.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/routes/admin.users.tsx b/src/routes/admin.users.tsx index 4bf357e..c6731fc 100644 --- a/src/routes/admin.users.tsx +++ b/src/routes/admin.users.tsx @@ -66,6 +66,7 @@ interface UserRow { email: string; full_name: string; created_at: string; + hourly_rate: number | null; role: AppRole | null; } @@ -84,16 +85,17 @@ function UsersPage() { const load = async () => { setLoading(true); const [{ data: profiles }, { data: rolesData }] = await Promise.all([ - supabase.from("profiles").select("id, email, full_name, created_at"), + supabase.from("profiles").select("id, email, full_name, created_at, hourly_rate"), supabase.from("user_roles").select("user_id, role"), ]); const roleMap = new Map(); (rolesData ?? []).forEach((r) => roleMap.set(r.user_id, r.role as AppRole)); - const rows: UserRow[] = (profiles ?? []).map((p) => ({ + const rows: UserRow[] = (profiles ?? []).map((p: any) => ({ id: p.id, email: p.email, full_name: p.full_name, created_at: p.created_at, + hourly_rate: p.hourly_rate, role: roleMap.get(p.id) ?? null, })); rows.sort((a, b) => a.email.localeCompare(b.email));