mirror of
https://github.com/supabase/supabase.git
synced 2026-10-09 19:35:06 +03:00
* feat: optimized users page * Update UI * Reinstate footer with count if mode is freeform * Simplify disabled sort in performance mode * Clean * Small fix * Final fixes * Shift users SQL query to packages/pg-meta * Nit unrelated: Clear query params from useLogsUrlState when going to logs tab of a selected user * Shift user count SQL and get count estimate SQL into packages/pg-meta * Fix * Nit * Nit * Minor nits * Refactor UX for searching --------- Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
49 lines
1.3 KiB
TypeScript
49 lines
1.3 KiB
TypeScript
export const authKeys = {
|
|
users: (
|
|
projectRef: string | undefined,
|
|
params?: {
|
|
page: number | undefined
|
|
keywords: string | undefined
|
|
filter: string | undefined
|
|
}
|
|
) => ['projects', projectRef, 'users', ...(params ? [params] : [])] as const,
|
|
|
|
usersQuery: (
|
|
projectRef: string | undefined,
|
|
params?: {
|
|
query: string
|
|
startAt: string
|
|
}
|
|
) => ['projects', projectRef, 'users-query', ...(params ? [params] : [])] as const,
|
|
|
|
usersInfinite: (
|
|
projectRef: string | undefined,
|
|
params?: {
|
|
keywords: string | undefined
|
|
filter: string | undefined
|
|
providers: string[] | undefined
|
|
sort: string | undefined
|
|
order: string | undefined
|
|
}
|
|
) =>
|
|
[
|
|
'projects',
|
|
projectRef,
|
|
'users-infinite',
|
|
...(params ? [params].filter(Boolean) : []),
|
|
] as const,
|
|
usersCount: (
|
|
projectRef: string | undefined,
|
|
params?: {
|
|
keywords: string | undefined
|
|
filter: string | undefined
|
|
providers: string[] | undefined
|
|
forceExactCount?: boolean
|
|
}
|
|
) =>
|
|
['projects', projectRef, 'users-count', ...(params ? [params].filter(Boolean) : [])] as const,
|
|
|
|
authConfig: (projectRef: string | undefined) => ['projects', projectRef, 'auth-config'] as const,
|
|
accessToken: () => ['access-token'] as const,
|
|
}
|