Skip to content

Commit e720a12

Browse files
committed
fix: better user selection widget
1 parent 0649b5a commit e720a12

3 files changed

Lines changed: 20 additions & 2 deletions

File tree

plugins/plugin-better-auth-dashboard/admin/src/components/UserCombobox.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,18 @@ export function UserCombobox({
3030
queryFn: async () => {
3131
const whereClause = search
3232
? JSON.stringify([
33-
{ field: "email", operator: "contains", value: search },
33+
{
34+
field: "email",
35+
operator: "contains",
36+
value: search,
37+
connector: "OR",
38+
},
39+
{
40+
field: "name",
41+
operator: "contains",
42+
value: search,
43+
connector: "OR",
44+
},
3445
])
3546
: undefined;
3647

plugins/plugin-better-auth-dashboard/admin/src/hooks/useUsers.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ export function useUsers(options: UseUsersOptions = {}) {
2222
field: "email",
2323
operator: "contains",
2424
value: search,
25+
connector: "OR",
26+
},
27+
{
28+
field: "name",
29+
operator: "contains",
30+
value: search,
31+
connector: "OR",
2532
},
2633
])
2734
: undefined;

plugins/plugin-better-auth-dashboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@strapi-community/plugin-better-auth-dashboard",
3-
"version": "1.0.0-alpha.7",
3+
"version": "1.0.0-alpha.8",
44
"description": "Better Auth dashboard for the Strapi admin panel",
55
"keywords": [
66
"strapi",

0 commit comments

Comments
 (0)