From a07f88033fca75df3a0cdf9b72bb9100f7448afa Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Wed, 20 Sep 2023 20:01:09 +0300 Subject: [PATCH] UBER-486: updated people avatars. (#3720) Signed-off-by: Alexander Platov --- packages/theme/styles/_layouts.scss | 1 + packages/theme/styles/button.scss | 13 +- .../src/components/DropdownLabelsIntl.svelte | 5 +- .../src/components/TxView.svelte | 5 +- .../src/components/PersonsPresenter.svelte | 2 +- .../src/components/Comment.svelte | 2 +- .../src/components/CommentPresenter.svelte | 2 +- .../src/components/Message.svelte | 4 +- .../src/components/PinnedMessagesPopup.svelte | 2 +- .../src/components/Replies.svelte | 2 +- .../src/components/Avatar.svelte | 122 ++++++++++++++++-- .../src/components/CombineAvatars.svelte | 2 +- .../src/components/CreateEmployee.svelte | 8 +- .../src/components/CreatePerson.svelte | 7 +- .../src/components/EditEmployee.svelte | 4 +- .../src/components/EditPerson.svelte | 6 +- .../src/components/EditableAvatar.svelte | 41 +++++- .../components/EmployeePreviewPopup.svelte | 3 +- .../src/components/MergePersons.svelte | 2 +- .../src/components/PersonCard.svelte | 2 +- .../src/components/PersonContent.svelte | 2 +- .../src/components/SelectAvatarPopup.svelte | 70 +++++++--- .../src/components/UserInfo.svelte | 2 +- .../src/components/icons/Avatar.svelte | 36 +++--- plugins/contact/src/types.ts | 28 ++-- plugins/contact/src/utils.ts | 21 ++- .../src/components/DepartmentCard.svelte | 2 +- .../src/components/EditDepartment.svelte | 1 - .../components/schedule/StaffPresenter.svelte | 2 +- .../src/components/CreateCustomer.svelte | 2 +- .../src/components/EmployeeInbox.svelte | 2 +- .../components/PeopleNotificationsView.svelte | 2 +- .../src/components/TxView.svelte | 2 +- .../src/components/CandidateCard.svelte | 2 +- .../src/components/CreateCandidate.svelte | 2 +- .../src/components/KanbanCard.svelte | 2 +- .../components/review/PersonsPresenter.svelte | 3 +- .../src/components/Profile.svelte | 2 +- .../src/components/Chat.svelte | 2 +- .../components/components/LeadPopup.svelte | 2 +- .../components/list/SortableListItem.svelte | 1 - .../src/components/AccountPopup.svelte | 5 +- .../src/components/Workbench.svelte | 5 +- 43 files changed, 322 insertions(+), 111 deletions(-) diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index 9b0aec9c63..739c368117 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -947,6 +947,7 @@ a.no-line { .content-color { color: var(--theme-content-color); } .caption-color { color: var(--theme-caption-color); } +.content-accented-color { color: var(--accented-button-color); } .red-color { color: var(--highlight-red); } .error-color { color: var(--theme-error-color); } diff --git a/packages/theme/styles/button.scss b/packages/theme/styles/button.scss index e68b365f88..395d8770c7 100644 --- a/packages/theme/styles/button.scss +++ b/packages/theme/styles/button.scss @@ -194,7 +194,9 @@ &.accented, &.brand, &.positive, &.negative { &:hover, &:active, &:focus { color: var(--accented-button-color); - .btn-icon { color: var(--accented-button-color); } + + .btn-icon, + .btn-right-icon { color: var(--accented-button-color); } } } &.regular, &.ghost { @@ -208,7 +210,8 @@ color: var(--accented-button-content-color); border-color: var(--accented-button-border); - .btn-icon { color: var(--accented-button-content-color); } + .btn-icon, + .btn-right-icon { color: var(--accented-button-content-color); } } &.accented { background-color: var(--accented-button-default); @@ -257,7 +260,8 @@ background-color: var(--theme-button-contrast-enabled); border-color: var(--theme-button-contrast-border); - .btn-icon { color: var(--theme-button-contrast-color); } + .btn-icon, + .btn-right-icon { color: var(--theme-button-contrast-color); } &:hover { background-color: var(--theme-button-contrast-hovered); } &:active { background-color: var(--theme-button-contrast-pressed); } @@ -298,7 +302,8 @@ border-color: transparent; cursor: not-allowed; - .btn-icon { opacity: .5; } + .btn-icon, + .btn-right-icon { opacity: .5; } } .resetIconSize { font-size: 16px; } diff --git a/packages/ui/src/components/DropdownLabelsIntl.svelte b/packages/ui/src/components/DropdownLabelsIntl.svelte index 1ade305013..68d8e4a64f 100644 --- a/packages/ui/src/components/DropdownLabelsIntl.svelte +++ b/packages/ui/src/components/DropdownLabelsIntl.svelte @@ -93,7 +93,10 @@ /> - + diff --git a/plugins/activity-resources/src/components/TxView.svelte b/plugins/activity-resources/src/components/TxView.svelte index f73a344ba5..43a533c426 100644 --- a/plugins/activity-resources/src/components/TxView.svelte +++ b/plugins/activity-resources/src/components/TxView.svelte @@ -191,7 +191,10 @@ {#if showIcon} {#if withAvatar}
- +
{:else}
diff --git a/plugins/calendar-resources/src/components/PersonsPresenter.svelte b/plugins/calendar-resources/src/components/PersonsPresenter.svelte index a5b3bb407c..1a2bec37b8 100644 --- a/plugins/calendar-resources/src/components/PersonsPresenter.svelte +++ b/plugins/calendar-resources/src/components/PersonsPresenter.svelte @@ -45,7 +45,7 @@ on:click={() => onClick(p)} >
- +
{/each} diff --git a/plugins/chunter-resources/src/components/Comment.svelte b/plugins/chunter-resources/src/components/Comment.svelte index 22741a695a..798419c379 100644 --- a/plugins/chunter-resources/src/components/Comment.svelte +++ b/plugins/chunter-resources/src/components/Comment.svelte @@ -28,7 +28,7 @@
-
+
{getName(client.getHierarchy(), user)}{message.createDate}
{message.text}
diff --git a/plugins/chunter-resources/src/components/CommentPresenter.svelte b/plugins/chunter-resources/src/components/CommentPresenter.svelte index fb18bef7f3..adf9ebff1f 100644 --- a/plugins/chunter-resources/src/components/CommentPresenter.svelte +++ b/plugins/chunter-resources/src/components/CommentPresenter.svelte @@ -74,7 +74,7 @@
{#await getEmployee(value, $personByIdStore, $personAccountByIdStore) then employee}
- +
diff --git a/plugins/chunter-resources/src/components/Message.svelte b/plugins/chunter-resources/src/components/Message.svelte index e2e79aaee3..1b206da9c8 100644 --- a/plugins/chunter-resources/src/components/Message.svelte +++ b/plugins/chunter-resources/src/components/Message.svelte @@ -204,7 +204,9 @@
-
+
+ +
{#if employee} diff --git a/plugins/chunter-resources/src/components/PinnedMessagesPopup.svelte b/plugins/chunter-resources/src/components/PinnedMessagesPopup.svelte index 5bfddf5107..7dbf5f4844 100644 --- a/plugins/chunter-resources/src/components/PinnedMessagesPopup.svelte +++ b/plugins/chunter-resources/src/components/PinnedMessagesPopup.svelte @@ -52,7 +52,7 @@
- +
{employee ? getName(client.getHierarchy(), employee) : ''} diff --git a/plugins/chunter-resources/src/components/Replies.svelte b/plugins/chunter-resources/src/components/Replies.svelte index ec31e933a6..0b80a44548 100644 --- a/plugins/chunter-resources/src/components/Replies.svelte +++ b/plugins/chunter-resources/src/components/Replies.svelte @@ -59,7 +59,7 @@
{#each showReplies as reply} -
+
{/each} {#if employees.size > shown}
+{employees.size - shown}
diff --git a/plugins/contact-resources/src/components/Avatar.svelte b/plugins/contact-resources/src/components/Avatar.svelte index 693cecbcfd..137748bd42 100644 --- a/plugins/contact-resources/src/components/Avatar.svelte +++ b/plugins/contact-resources/src/components/Avatar.svelte @@ -27,7 +27,13 @@ -
+
{#if url} {#if size === 'large' || size === 'x-large' || size === '2x-large'} {''} {/if} {''} + {:else if name && displayName && displayName !== ''} +
{:else} - +
+ +
{/if}
@@ -89,60 +116,139 @@ flex-shrink: 0; position: relative; overflow: hidden; - background-color: var(--avatar-bg-color); + background-color: var(--theme-button-default); border-radius: 50%; pointer-events: none; + &.no-img { + color: var(--accented-button-color); + border-color: transparent; + } + &.bordered { + color: var(--theme-dark-color); + border: 1px solid var(--theme-button-border); + } img { object-fit: cover; border: 1px solid var(--avatar-border-color); } - &.no-img { - border-color: transparent; + .icon, + .ava-text::after { + position: absolute; + top: 50%; + left: 50%; + } + .icon { + width: 100%; + height: 100%; + color: inherit; + transform-origin: center; + transform: translate(-50%, -50%) scale(0.6); + } + .ava-text::after { + content: attr(data-name); + transform: translate(-50%, -50%); } } .ava-inline { width: 0.875rem; // 24 height: 0.875rem; + + .ava-text { + font-weight: 500; + font-size: 0.525rem; + letter-spacing: -0.05em; + } } .ava-tiny { width: 1.13rem; // ~18 height: 1.13rem; + + .ava-text { + font-weight: 500; + font-size: 0.625rem; + letter-spacing: -0.05em; + } } .ava-card { width: 1.25rem; // 20 height: 1.25rem; + + .ava-text { + font-weight: 500; + font-size: 0.625rem; + letter-spacing: -0.05em; + } } .ava-x-small { width: 1.5rem; // 24 height: 1.5rem; + + .ava-text { + font-weight: 500; + font-size: 0.75rem; + letter-spacing: -0.05em; + } } .ava-smaller { width: 1.75rem; // 28 height: 1.75rem; + + .ava-text { + font-weight: 500; + font-size: 0.8125rem; + letter-spacing: -0.05em; + } } .ava-small { width: 2rem; // 32 height: 2rem; + + .ava-text { + font-weight: 500; + font-size: 0.875rem; + letter-spacing: -0.05em; + } } .ava-medium { width: 2.25rem; // 36 height: 2.25rem; + + .ava-text { + font-weight: 500; + font-size: 0.875rem; + letter-spacing: -0.05em; + } } .ava-large { width: 4.5rem; // 72 height: 4.5rem; + + .ava-text { + font-weight: 500; + font-size: 2rem; + } } .ava-x-large { width: 7.5rem; // 120 height: 7.5rem; + + .ava-text { + font-weight: 500; + font-size: 3.5rem; + } } .ava-2x-large { width: 10rem; // 120 height: 10rem; + + .ava-text { + font-weight: 500; + font-size: 4.75rem; + } } .ava-blur { diff --git a/plugins/contact-resources/src/components/CombineAvatars.svelte b/plugins/contact-resources/src/components/CombineAvatars.svelte index 5c99050b6e..4706e0c4c9 100644 --- a/plugins/contact-resources/src/components/CombineAvatars.svelte +++ b/plugins/contact-resources/src/components/CombineAvatars.svelte @@ -56,7 +56,7 @@ {/if} {#each persons as person, i}
- +
{/each}
diff --git a/plugins/contact-resources/src/components/CreateEmployee.svelte b/plugins/contact-resources/src/components/CreateEmployee.svelte index 8729abf5a0..94feda8cd4 100644 --- a/plugins/contact-resources/src/components/CreateEmployee.svelte +++ b/plugins/contact-resources/src/components/CreateEmployee.svelte @@ -169,7 +169,13 @@
- +
diff --git a/plugins/contact-resources/src/components/CreatePerson.svelte b/plugins/contact-resources/src/components/CreatePerson.svelte index ac934540a4..252b83401b 100644 --- a/plugins/contact-resources/src/components/CreatePerson.svelte +++ b/plugins/contact-resources/src/components/CreatePerson.svelte @@ -115,7 +115,12 @@
- +
diff --git a/plugins/contact-resources/src/components/EditEmployee.svelte b/plugins/contact-resources/src/components/EditEmployee.svelte index 27b33d9cda..8420830dcc 100644 --- a/plugins/contact-resources/src/components/EditEmployee.svelte +++ b/plugins/contact-resources/src/components/EditEmployee.svelte @@ -110,13 +110,13 @@ {:else} - + {/if} {/key}
diff --git a/plugins/contact-resources/src/components/EditPerson.svelte b/plugins/contact-resources/src/components/EditPerson.svelte index 4c2d6f8f26..8ae13104b6 100644 --- a/plugins/contact-resources/src/components/EditPerson.svelte +++ b/plugins/contact-resources/src/components/EditPerson.svelte @@ -85,8 +85,8 @@ {#key object} @@ -131,7 +131,7 @@ .name { font-weight: 500; font-size: 1.25rem; - color: var(--caption-color); + color: var(--theme-caption-color); } .location { margin-top: 0.25rem; @@ -141,6 +141,6 @@ .separator { margin: 1rem 0; height: 1px; - background-color: var(--divider-color); + background-color: var(--theme-divider-color); } diff --git a/plugins/contact-resources/src/components/EditableAvatar.svelte b/plugins/contact-resources/src/components/EditableAvatar.svelte index 5fb0986be3..d601ef8cf0 100644 --- a/plugins/contact-resources/src/components/EditableAvatar.svelte +++ b/plugins/contact-resources/src/components/EditableAvatar.svelte @@ -16,24 +16,33 @@ import { createEventDispatcher } from 'svelte' import attachment from '@hcengineering/attachment' import { AnySvelteComponent, IconSize, showPopup } from '@hcengineering/ui' - import { AvatarType } from '@hcengineering/contact' + import { AvatarType, getAvatarColorForId } from '@hcengineering/contact' import { Asset, getResource } from '@hcengineering/platform' import AvatarComponent from './Avatar.svelte' import SelectAvatarPopup from './SelectAvatarPopup.svelte' export let avatar: string | null | undefined + export let name: string | null | undefined = undefined export let email: string | undefined = undefined - export let id: string export let size: IconSize export let direct: Blob | undefined = undefined export let icon: Asset | AnySvelteComponent | undefined = undefined export let disabled: boolean = false - const [schema, uri] = avatar?.split('://') || [] + $: [schema, uri] = avatar?.split('://') || [] - let selectedAvatarType: AvatarType | undefined = avatar?.includes('://') ? (schema as AvatarType) : AvatarType.IMAGE - let selectedAvatar: string | null | undefined = selectedAvatarType === AvatarType.IMAGE ? avatar : uri + let selectedAvatarType: AvatarType | undefined + let selectedAvatar: string | null | undefined + $: selectedAvatarType = avatar?.includes('://') + ? (schema as AvatarType) + : avatar === undefined + ? AvatarType.COLOR + : AvatarType.IMAGE + $: selectedAvatar = selectedAvatarType === AvatarType.IMAGE ? avatar : uri + $: if (selectedAvatar === undefined && selectedAvatarType === AvatarType.COLOR) { + selectedAvatar = getAvatarColorForId(name) + } export async function createAvatar (): Promise { if (selectedAvatarType === AvatarType.IMAGE && direct !== undefined) { @@ -58,13 +67,26 @@ selectedAvatarType = submittedAvatarType selectedAvatar = submittedAvatar direct = submittedDirect + avatar = selectedAvatarType === AvatarType.IMAGE ? selectedAvatar : `${selectedAvatarType}://${selectedAvatar}` dispatch('done') } const dispatch = createEventDispatcher() async function showSelectionPopup (e: MouseEvent) { if (!disabled) { - showPopup(SelectAvatarPopup, { avatar, email, id, file: direct, icon, onSubmit: handlePopupSubmit }) + showPopup(SelectAvatarPopup, { + avatar: + selectedAvatarType === AvatarType.IMAGE + ? selectedAvatar + : selectedAvatarType === AvatarType.COLOR && avatar == null + ? undefined + : `${selectedAvatarType}://${selectedAvatar}`, + email, + name, + file: direct, + icon, + onSubmit: handlePopupSubmit + }) } } @@ -72,9 +94,14 @@
diff --git a/plugins/contact-resources/src/components/EmployeePreviewPopup.svelte b/plugins/contact-resources/src/components/EmployeePreviewPopup.svelte index 317a55bb15..d3822bb5bf 100644 --- a/plugins/contact-resources/src/components/EmployeePreviewPopup.svelte +++ b/plugins/contact-resources/src/components/EmployeePreviewPopup.svelte @@ -58,7 +58,7 @@ > {#if employee}
- +
{getName(client.getHierarchy(), employee)}
@@ -79,6 +79,7 @@
{:else if editable} +
diff --git a/plugins/contact-resources/src/components/MergePersons.svelte b/plugins/contact-resources/src/components/MergePersons.svelte index e12378c2e5..29f5d872e2 100644 --- a/plugins/contact-resources/src/components/MergePersons.svelte +++ b/plugins/contact-resources/src/components/MergePersons.svelte @@ -359,7 +359,7 @@ selected={update.avatar !== undefined} > - +
{#if object} diff --git a/plugins/contact-resources/src/components/PersonContent.svelte b/plugins/contact-resources/src/components/PersonContent.svelte index 6da30c0af9..3cb0139301 100644 --- a/plugins/contact-resources/src/components/PersonContent.svelte +++ b/plugins/contact-resources/src/components/PersonContent.svelte @@ -87,7 +87,7 @@ class:mr-2={shouldShowName && !enlargedText} class:mr-3={shouldShowName && enlargedText} > - + {/if} {#if shouldShowName} diff --git a/plugins/contact-resources/src/components/SelectAvatarPopup.svelte b/plugins/contact-resources/src/components/SelectAvatarPopup.svelte index 1b2e569fd3..aa5db937b0 100644 --- a/plugins/contact-resources/src/components/SelectAvatarPopup.svelte +++ b/plugins/contact-resources/src/components/SelectAvatarPopup.svelte @@ -15,24 +15,33 @@
- {#if selectedAvatarType === AvatarType.IMAGE} - -
- -
- {:else} - - {/if} + +
{ + if (selectedAvatarType === AvatarType.IMAGE) handleImageAvatarClick() + else if (selectedAvatarType === AvatarType.COLOR) showColorPopup(e) + }} + > + +
- +
{#if subtitle}
{subtitle}
{/if}
{getName(client.getHierarchy(), value)}
diff --git a/plugins/contact-resources/src/components/icons/Avatar.svelte b/plugins/contact-resources/src/components/icons/Avatar.svelte index 9963075513..0e1025eb2d 100644 --- a/plugins/contact-resources/src/components/icons/Avatar.svelte +++ b/plugins/contact-resources/src/components/icons/Avatar.svelte @@ -18,33 +18,29 @@ export let size: IconSize - export let fill: string = 'var(--caption-color)' + export let fill: string = 'var(--theme-caption-color)' - - + diff --git a/plugins/contact/src/types.ts b/plugins/contact/src/types.ts index a8e99fb763..98f76df870 100644 --- a/plugins/contact/src/types.ts +++ b/plugins/contact/src/types.ts @@ -13,6 +13,8 @@ // limitations under the License. // +import { ColorDefinition } from '@hcengineering/ui' + /** * @public */ @@ -29,17 +31,17 @@ export type GravatarPlaceholderType = /** * @public */ -export const AVATAR_COLORS = [ - '#4674ca', // blue - '#315cac', // blue_dark - '#57be8c', // green - '#3fa372', // green_dark - '#f9a66d', // yellow_orange - '#ec5e44', // red - '#e63717', // red_dark - '#f868bc', // pink - '#6c5fc7', // purple - '#4e3fb4', // purple_dark - '#57b1be', // teal - '#847a8c' // gray +export const AVATAR_COLORS: ColorDefinition[] = [ + { name: 'blue', color: '#4674ca' }, // blue + { name: 'blue_dark', color: '#315cac' }, // blue_dark + { name: 'green', color: '#57be8c' }, // green + { name: 'green_dark', color: '#3fa372' }, // green_dark + { name: 'yellow_orange', color: '#f9a66d' }, // yellow_orange + { name: 'red', color: '#ec5e44' }, // red + { name: 'red_dark', color: '#e63717' }, // red_dark + { name: 'pink', color: '#f868bc' }, // pink + { name: 'purple', color: '#6c5fc7' }, // purple + { name: 'purple_dark', color: '#4e3fb4' }, // purple_dark + { name: 'teal', color: '#57b1be' }, // teal + { name: 'gray', color: '#847a8c' } // gray ] diff --git a/plugins/contact/src/utils.ts b/plugins/contact/src/utils.ts index a05edf1fa0..b49b83b1f5 100644 --- a/plugins/contact/src/utils.ts +++ b/plugins/contact/src/utils.ts @@ -14,7 +14,7 @@ // import { AttachedData, Class, Client, Doc, FindResult, Ref, Hierarchy } from '@hcengineering/core' -import { IconSize } from '@hcengineering/ui' +import { IconSize, ColorDefinition } from '@hcengineering/ui' import { MD5 } from 'crypto-js' import { Channel, Contact, contactPlugin, Person } from '.' import { AVATAR_COLORS, GravatarPlaceholderType } from './types' @@ -22,14 +22,29 @@ import { AVATAR_COLORS, GravatarPlaceholderType } from './types' /** * @public */ -export function getAvatarColorForId (id: string): string { +export function getAvatarColorForId (id: string | null | undefined): string { + if (id == null) return AVATAR_COLORS[0].color let hash = 0 for (let i = 0; i < id.length; i++) { hash += id.charCodeAt(i) } - return AVATAR_COLORS[hash % AVATAR_COLORS.length] + return AVATAR_COLORS[hash % AVATAR_COLORS.length].color +} + +/** + * @public + */ +export function getAvatarColors (): readonly ColorDefinition[] { + return AVATAR_COLORS +} + +/** + * @public + */ +export function getAvatarColorName (color: string): string { + return AVATAR_COLORS.find((col) => col.color === color)?.name ?? AVATAR_COLORS[0].name } /** diff --git a/plugins/hr-resources/src/components/DepartmentCard.svelte b/plugins/hr-resources/src/components/DepartmentCard.svelte index 248b24e2ef..30b95b274c 100644 --- a/plugins/hr-resources/src/components/DepartmentCard.svelte +++ b/plugins/hr-resources/src/components/DepartmentCard.svelte @@ -126,7 +126,7 @@
- +
{value.name} diff --git a/plugins/hr-resources/src/components/EditDepartment.svelte b/plugins/hr-resources/src/components/EditDepartment.svelte index ebb54be0fd..ecb3738634 100644 --- a/plugins/hr-resources/src/components/EditDepartment.svelte +++ b/plugins/hr-resources/src/components/EditDepartment.svelte @@ -74,7 +74,6 @@ {#key object}
- +
diff --git a/plugins/lead-resources/src/components/CreateCustomer.svelte b/plugins/lead-resources/src/components/CreateCustomer.svelte index 68c898d883..9f09f97803 100644 --- a/plugins/lead-resources/src/components/CreateCustomer.svelte +++ b/plugins/lead-resources/src/components/CreateCustomer.svelte @@ -189,8 +189,8 @@
diff --git a/plugins/notification-resources/src/components/EmployeeInbox.svelte b/plugins/notification-resources/src/components/EmployeeInbox.svelte index db839d4e45..f7969952d3 100644 --- a/plugins/notification-resources/src/components/EmployeeInbox.svelte +++ b/plugins/notification-resources/src/components/EmployeeInbox.svelte @@ -184,7 +184,7 @@
{#if employee} - + {getName(client.getHierarchy(), employee)} {/if} {#if newTxes > 0} diff --git a/plugins/notification-resources/src/components/PeopleNotificationsView.svelte b/plugins/notification-resources/src/components/PeopleNotificationsView.svelte index f0d6085e39..663de50937 100644 --- a/plugins/notification-resources/src/components/PeopleNotificationsView.svelte +++ b/plugins/notification-resources/src/components/PeopleNotificationsView.svelte @@ -88,7 +88,7 @@
- + {#if employee} {getName(client.getHierarchy(), employee)} {:else} diff --git a/plugins/notification-resources/src/components/TxView.svelte b/plugins/notification-resources/src/components/TxView.svelte index f110dec915..05872b3d0a 100644 --- a/plugins/notification-resources/src/components/TxView.svelte +++ b/plugins/notification-resources/src/components/TxView.svelte @@ -118,7 +118,7 @@
{#if withAvatar}
- +
{:else}
diff --git a/plugins/recruit-resources/src/components/CandidateCard.svelte b/plugins/recruit-resources/src/components/CandidateCard.svelte index a1870dbe00..6e72e67243 100644 --- a/plugins/recruit-resources/src/components/CandidateCard.svelte +++ b/plugins/recruit-resources/src/components/CandidateCard.svelte @@ -46,7 +46,7 @@
- + {#if candidate}
diff --git a/plugins/recruit-resources/src/components/CreateCandidate.svelte b/plugins/recruit-resources/src/components/CreateCandidate.svelte index a402bde69d..75bcf08fdf 100644 --- a/plugins/recruit-resources/src/components/CreateCandidate.svelte +++ b/plugins/recruit-resources/src/components/CreateCandidate.svelte @@ -562,8 +562,8 @@ bind:this={avatarEditor} bind:direct={object.avatar} avatar={undefined} - id={object._id} size={'large'} + name={combineName(object?.firstName?.trim() ?? '', object?.lastName?.trim() ?? '')} />
diff --git a/plugins/recruit-resources/src/components/KanbanCard.svelte b/plugins/recruit-resources/src/components/KanbanCard.svelte index 8369969e7c..55ee530c21 100644 --- a/plugins/recruit-resources/src/components/KanbanCard.svelte +++ b/plugins/recruit-resources/src/components/KanbanCard.svelte @@ -61,7 +61,7 @@ {/if}
- +
{object.$lookup?.attachedTo ? getName(client.getHierarchy(), object.$lookup.attachedTo) : ''} diff --git a/plugins/recruit-resources/src/components/review/PersonsPresenter.svelte b/plugins/recruit-resources/src/components/review/PersonsPresenter.svelte index 44833de439..93178c680b 100644 --- a/plugins/recruit-resources/src/components/review/PersonsPresenter.svelte +++ b/plugins/recruit-resources/src/components/review/PersonsPresenter.svelte @@ -37,6 +37,7 @@ {#if value}
{#each persons as p} +
onClick(p)} >
- +
{/each} diff --git a/plugins/setting-resources/src/components/Profile.svelte b/plugins/setting-resources/src/components/Profile.svelte index 2758195cca..02e3c0c3e1 100644 --- a/plugins/setting-resources/src/components/Profile.svelte +++ b/plugins/setting-resources/src/components/Profile.svelte @@ -95,8 +95,8 @@ diff --git a/plugins/telegram-resources/src/components/Chat.svelte b/plugins/telegram-resources/src/components/Chat.svelte index 2edd05c816..cba166b320 100644 --- a/plugins/telegram-resources/src/components/Chat.svelte +++ b/plugins/telegram-resources/src/components/Chat.svelte @@ -233,7 +233,7 @@ class="ml-2" use:tooltip={{ label: getEmbeddedLabel(getContactName(client.getHierarchy(), participant)) }} > - +
{/each}
diff --git a/plugins/tracker-resources/src/components/components/LeadPopup.svelte b/plugins/tracker-resources/src/components/components/LeadPopup.svelte index 9b78d6fc57..84b1d9c301 100644 --- a/plugins/tracker-resources/src/components/components/LeadPopup.svelte +++ b/plugins/tracker-resources/src/components/components/LeadPopup.svelte @@ -23,7 +23,7 @@
- +
diff --git a/plugins/view-resources/src/components/list/SortableListItem.svelte b/plugins/view-resources/src/components/list/SortableListItem.svelte index f893fb5f01..3e35c2c781 100644 --- a/plugins/view-resources/src/components/list/SortableListItem.svelte +++ b/plugins/view-resources/src/components/list/SortableListItem.svelte @@ -38,7 +38,6 @@ >
- !!!
diff --git a/plugins/workbench-resources/src/components/AccountPopup.svelte b/plugins/workbench-resources/src/components/AccountPopup.svelte index 549d240e19..7bafa39139 100644 --- a/plugins/workbench-resources/src/components/AccountPopup.svelte +++ b/plugins/workbench-resources/src/components/AccountPopup.svelte @@ -163,7 +163,10 @@ }} > {#if employee} - + {/if}
{#if account} diff --git a/plugins/workbench-resources/src/components/Workbench.svelte b/plugins/workbench-resources/src/components/Workbench.svelte index 25fc9d13fe..2d86d14a6e 100644 --- a/plugins/workbench-resources/src/components/Workbench.svelte +++ b/plugins/workbench-resources/src/components/Workbench.svelte @@ -707,7 +707,10 @@ class="cursor-pointer" on:click|stopPropagation={() => showPopup(AccountPopup, {}, popupPosition)} > - +