Strip manager user cards
This commit is contained in:
@@ -849,7 +849,7 @@ export type ManagerOrdersQuery = { __typename?: 'Query', managerOrders: Array<{
|
|||||||
export type ManagerUsersQueryVariables = Exact<{ [key: string]: never; }>;
|
export type ManagerUsersQueryVariables = Exact<{ [key: string]: never; }>;
|
||||||
|
|
||||||
|
|
||||||
export type ManagerUsersQuery = { __typename?: 'Query', managerUsers: Array<{ __typename?: 'ManagerUser', id: string, email: string, fullName: string, companyName?: string | null }> };
|
export type ManagerUsersQuery = { __typename?: 'Query', managerUsers: Array<{ __typename?: 'ManagerUser', id: string, fullName: string }> };
|
||||||
|
|
||||||
export type ManagerWithdrawalRequestsQueryVariables = Exact<{
|
export type ManagerWithdrawalRequestsQueryVariables = Exact<{
|
||||||
status?: InputMaybe<WithdrawalStatus>;
|
status?: InputMaybe<WithdrawalStatus>;
|
||||||
@@ -1736,9 +1736,7 @@ export const ManagerUsersDocument = gql`
|
|||||||
query ManagerUsers {
|
query ManagerUsers {
|
||||||
managerUsers {
|
managerUsers {
|
||||||
id
|
id
|
||||||
email
|
|
||||||
fullName
|
fullName
|
||||||
companyName
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -45,15 +45,7 @@ const filteredUsers = computed(() => {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
return [
|
return item.fullName.toLowerCase().includes(query);
|
||||||
item.fullName,
|
|
||||||
item.email,
|
|
||||||
item.companyName || '',
|
|
||||||
item.inn || '',
|
|
||||||
]
|
|
||||||
.join(' ')
|
|
||||||
.toLowerCase()
|
|
||||||
.includes(query);
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -118,7 +110,7 @@ function userInitials(fullName: string) {
|
|||||||
<UiSectionSearchHero
|
<UiSectionSearchHero
|
||||||
v-model="search"
|
v-model="search"
|
||||||
title="Пользователи"
|
title="Пользователи"
|
||||||
:search-placeholder="activeTab === 'users' ? 'Имя, email, компания или ИНН' : 'Компания, контакт, email или ИНН'"
|
:search-placeholder="activeTab === 'users' ? 'Имя пользователя' : 'Компания, контакт, email или ИНН'"
|
||||||
>
|
>
|
||||||
<template #controls>
|
<template #controls>
|
||||||
<NuxtLink to="/clients/invite" class="btn btn-primary border-0">
|
<NuxtLink to="/clients/invite" class="btn btn-primary border-0">
|
||||||
@@ -155,19 +147,18 @@ function userInitials(fullName: string) {
|
|||||||
<article
|
<article
|
||||||
v-for="user in filteredUsers"
|
v-for="user in filteredUsers"
|
||||||
:key="user.id"
|
:key="user.id"
|
||||||
class="surface-card flex min-h-[260px] flex-col rounded-[32px] p-5"
|
class="surface-card flex min-h-[280px] flex-col rounded-[32px] p-6"
|
||||||
>
|
>
|
||||||
<div class="mb-5 flex justify-center">
|
<div class="flex justify-center">
|
||||||
<div class="flex h-20 w-20 items-center justify-center rounded-[28px] bg-[linear-gradient(135deg,#dff7e9_0%,#c2ead3_100%)] text-2xl font-black text-[#123824] shadow-[inset_0_1px_0_rgba(255,255,255,0.65)]">
|
<div class="flex h-24 w-24 items-center justify-center rounded-[32px] bg-[linear-gradient(135deg,#dff7e9_0%,#c2ead3_100%)] text-3xl font-black text-[#123824] shadow-[inset_0_1px_0_rgba(255,255,255,0.65)]">
|
||||||
{{ userInitials(user.fullName) }}
|
{{ userInitials(user.fullName) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="mt-auto space-y-2 text-center">
|
<div class="flex-1" />
|
||||||
|
|
||||||
|
<div class="pt-8 text-center">
|
||||||
<h2 class="text-lg font-bold leading-tight text-[#123824]">{{ user.fullName }}</h2>
|
<h2 class="text-lg font-bold leading-tight text-[#123824]">{{ user.fullName }}</h2>
|
||||||
<p class="text-sm text-[#466653] break-all">{{ user.email }}</p>
|
|
||||||
<p v-if="user.companyName" class="text-sm text-[#5c7b69]">{{ user.companyName }}</p>
|
|
||||||
<p v-else class="text-sm text-[#8ca896]">Компания не указана</p>
|
|
||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,8 +1,6 @@
|
|||||||
query ManagerUsers {
|
query ManagerUsers {
|
||||||
managerUsers {
|
managerUsers {
|
||||||
id
|
id
|
||||||
email
|
|
||||||
fullName
|
fullName
|
||||||
companyName
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user