feat: Added org username to admin users view (#20254)
* feat : Added org username to admin users view * styling tweaks (#20215) * minor-changes --------- Co-authored-by: Tushar Bhatt <[email protected]> Co-authored-by: Tushar <[email protected]>
This commit is contained in:
2 files changed
+21
-5
No files matched your search
@@ -186,14 +186,16 @@ function UsersTableBare() {
|
||||
/>
|
||||
|
||||
<div className="text-subtle ml-4 font-medium">
|
||||
<div className="flex flex-row">
|
||||
<div className="flex gap-3">
|
||||
<span className="text-default">{user.name}</span>
|
||||
<span className="ml-3">/{user.username}</span>
|
||||
{user.locked && (
|
||||
<span className="ml-3">
|
||||
<Icon name="lock" />
|
||||
<span>/{user.username}</span>
|
||||
{user.profiles[0]?.username && (
|
||||
<span className="flex items-center gap-1">
|
||||
<Icon name="building" className="text-subtle size-5" />
|
||||
<span>{user.profiles[0]?.username}</span>
|
||||
</span>
|
||||
)}
|
||||
{user.locked && <Icon name="lock" />}
|
||||
<br />
|
||||
</div>
|
||||
<span className="break-all">{user.email}</span>
|
||||
|
||||
@@ -34,6 +34,15 @@ const listPaginatedHandler = async ({ input }: GetOptions) => {
|
||||
contains: searchTerm.toLocaleLowerCase(),
|
||||
},
|
||||
},
|
||||
{
|
||||
profiles: {
|
||||
some: {
|
||||
username: {
|
||||
contains: searchTerm.toLowerCase(),
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
||||
} else {
|
||||
@@ -58,6 +67,11 @@ const listPaginatedHandler = async ({ input }: GetOptions) => {
|
||||
name: true,
|
||||
timeZone: true,
|
||||
role: true,
|
||||
profiles: {
|
||||
select: {
|
||||
username: true,
|
||||
},
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user