From faaad5bd6dd7a8b868b7bd8cdb4b45a4c315a393 Mon Sep 17 00:00:00 2001 From: Andrey Sobolev Date: Mon, 27 Jun 2022 13:36:27 +0700 Subject: [PATCH] Fix release issues (#2146) Signed-off-by: Andrey Sobolev --- changelog.md | 8 +- models/contact/src/plugin.ts | 1 - models/recruit/src/index.ts | 9 +- packages/theme/styles/_layouts.scss | 4 + .../src/components/ChannelsDropdown.svelte | 3 +- .../src/components/ChannelsPresenter.svelte | 2 +- plugins/contact/src/index.ts | 3 +- .../src/components/KanbanCard.svelte | 30 ++++- .../src/components/AssigneePresenter.svelte | 107 ++++++++++++++++++ plugins/task-resources/src/index.ts | 2 + plugins/view-resources/src/actionImpl.ts | 18 +-- 11 files changed, 159 insertions(+), 28 deletions(-) create mode 100644 plugins/task-resources/src/components/AssigneePresenter.svelte diff --git a/changelog.md b/changelog.md index 0e02204f31..bb876c3477 100644 --- a/changelog.md +++ b/changelog.md @@ -1,6 +1,12 @@ # Changelog -## 0.6.29 (upcoming) +## 0.6.30 (upcoming) + +HR: + +- Allow to change assignee in Kanban + +## 0.6.29 Platform: diff --git a/models/contact/src/plugin.ts b/models/contact/src/plugin.ts index 94ff921815..70b8ddb35b 100644 --- a/models/contact/src/plugin.ts +++ b/models/contact/src/plugin.ts @@ -25,7 +25,6 @@ export default mergeIds(contactId, contact, { component: { PersonPresenter: '' as AnyComponent, ContactPresenter: '' as AnyComponent, - ChannelsPresenter: '' as AnyComponent, EditPerson: '' as AnyComponent, EditOrganization: '' as AnyComponent, CreatePersons: '' as AnyComponent, diff --git a/models/recruit/src/index.ts b/models/recruit/src/index.ts index 2e9c61448f..7debd9e597 100644 --- a/models/recruit/src/index.ts +++ b/models/recruit/src/index.ts @@ -334,7 +334,14 @@ export function createModel (builder: Builder): void { ) const applicantKanbanLookup: Lookup = { - attachedTo: recruit.mixin.Candidate, + attachedTo: [ + recruit.mixin.Candidate, + { + _id: { + channels: contact.class.Channel + } + } + ], assignee: contact.class.Employee, _id: { todoItems: task.class.TodoItem diff --git a/packages/theme/styles/_layouts.scss b/packages/theme/styles/_layouts.scss index 27b0883f55..55e4c2615c 100644 --- a/packages/theme/styles/_layouts.scss +++ b/packages/theme/styles/_layouts.scss @@ -294,6 +294,10 @@ input.search { grid-template-columns: repeat(4, min-content); grid-auto-flow: row; } + &.tiny { + grid-template-columns: repeat(2, min-content); + grid-auto-flow: row; + } } .buttons-divider { min-width: 1px; diff --git a/plugins/contact-resources/src/components/ChannelsDropdown.svelte b/plugins/contact-resources/src/components/ChannelsDropdown.svelte index cda962efeb..79b2be1e83 100644 --- a/plugins/contact-resources/src/components/ChannelsDropdown.svelte +++ b/plugins/contact-resources/src/components/ChannelsDropdown.svelte @@ -42,7 +42,7 @@ export let editable: boolean | undefined = undefined export let kind: ButtonKind = 'no-border' export let size: ButtonSize = 'small' - export let length: 'short' | 'full' = 'full' + export let length: 'tiny' | 'short' | 'full' = 'full' export let shape: 'circle' | undefined = undefined export let integrations: Set> = new Set>() export let focusIndex = -1 @@ -221,6 +221,7 @@ ? 'xsmall-gap' : 'xxsmall-gap'}" class:short={displayItems.length > 4 && length === 'short'} + class:tiny={displayItems.length > 2 && length === 'tiny'} > {#each displayItems as item, i}