[UBER-334] Add categories to the assignee popup (#3324)

This commit is contained in:
Sergei Ogorelkov
2023-06-01 23:38:53 +07:00
committed by GitHub
parent eee6e69114
commit 8ce6d005df
25 changed files with 112 additions and 210 deletions
@@ -176,10 +176,9 @@
on:change={({ detail }) => (object.priority = detail)}
/>
<AssigneeEditor
value={object}
object={{ ...object, space }}
kind={'secondary'}
size={'large'}
width={'min-content'}
on:change={({ detail }) => (object.assignee = detail)}
/>
<Component
@@ -210,7 +210,7 @@
<div id="sub-issue-assignee-editor">
{#key object.assignee}
<AssigneeEditor
value={object}
{object}
size="small"
kind="no-border"
on:change={({ detail }) => (object.assignee = detail)}
@@ -163,7 +163,7 @@
}}
/>
<AssigneeEditor
value={issue}
object={issue}
on:change={(evt) => {
dispatch('update-issue', { id: issue._id, assignee: evt.detail })
issue.assignee = evt.detail
@@ -17,7 +17,13 @@
import presentation, { createQuery, getClient, KeyedAttribute } from '@hcengineering/presentation'
import tags, { TagElement, TagReference } from '@hcengineering/tags'
import { StyledTextArea } from '@hcengineering/text-editor'
import { IssuePriority, IssueTemplateChild, Component as ComponentType, Milestone } from '@hcengineering/tracker'
import {
IssuePriority,
IssueTemplateChild,
Component as ComponentType,
Milestone,
Project
} from '@hcengineering/tracker'
import { Button, Component, EditBox } from '@hcengineering/ui'
import { createEventDispatcher } from 'svelte'
import tracker from '../../plugin'
@@ -25,6 +31,7 @@
import PriorityEditor from '../issues/PriorityEditor.svelte'
import EstimationEditor from './EstimationEditor.svelte'
export let projectId: Ref<Project>
export let milestone: Ref<Milestone> | null = null
export let component: Ref<ComponentType> | null = null
export let childIssue: IssueTemplateChild | undefined = undefined
@@ -142,7 +149,7 @@
/>
{#key newIssue.assignee}
<AssigneeEditor
value={newIssue}
object={{ ...newIssue, space: projectId }}
size="small"
kind="no-border"
width="auto"
@@ -158,7 +158,7 @@
}}
/>
<AssigneeEditor
value={issue}
object={{ ...issue, space: project }}
on:change={(evt) => {
dispatch('update-issue', { id: issue.id, assignee: evt.detail })
issue.assignee = evt.detail
@@ -105,6 +105,7 @@
{#if isCreating}
<ExpandCollapse isExpanded={!isCollapsed} on:changeContent>
<IssueTemplateChildEditor
projectId={project}
{component}
{milestone}
{isScrollable}
@@ -73,7 +73,7 @@
<span class="label">
<Label label={tracker.string.Assignee} />
</span>
<AssigneeEditor value={issue} size={'medium'} />
<AssigneeEditor object={issue} size={'medium'} width="100%" />
<span class="labelTop">
<Label label={tracker.string.Labels} />