diff --git a/models/chunter/src/actions.ts b/models/chunter/src/actions.ts index a7b7ab219f..4b33c7182f 100644 --- a/models/chunter/src/actions.ts +++ b/models/chunter/src/actions.ts @@ -19,6 +19,7 @@ import notification, { notificationActionTemplates } from '@hcengineering/model- import activity from '@hcengineering/activity' import workbench from '@hcengineering/model-workbench' import core from '@hcengineering/model-core' +import contact from '@hcengineering/contact' import chunter from './plugin' @@ -43,6 +44,18 @@ export function defineActions (builder: Builder): void { chunter.category.Chunter ) + createAction(builder, { + action: chunter.actionImpl.StartConversation, + label: chunter.string.StartConversation, + icon: chunter.icon.Thread, + input: 'focus', + category: chunter.category.Chunter, + target: contact.mixin.Employee, + context: { + mode: 'context', + group: 'associate' + } + }) defineMessageActions(builder) defineChannelActions(builder) } diff --git a/models/chunter/src/plugin.ts b/models/chunter/src/plugin.ts index c0fbc87557..8116ad3290 100644 --- a/models/chunter/src/plugin.ts +++ b/models/chunter/src/plugin.ts @@ -53,7 +53,8 @@ export default mergeIds(chunterId, chunter, { ReplyToThread: '' as ViewAction, OpenInSidebar: '' as ViewAction, TranslateMessage: '' as ViewAction, - ShowOriginalMessage: '' as ViewAction + ShowOriginalMessage: '' as ViewAction, + StartConversation: '' as ViewAction }, category: { Chunter: '' as Ref diff --git a/packages/ui/src/components/ModernTab.svelte b/packages/ui/src/components/ModernTab.svelte index 90b552fbf1..c9fb9e2a7f 100644 --- a/packages/ui/src/components/ModernTab.svelte +++ b/packages/ui/src/components/ModernTab.svelte @@ -148,6 +148,8 @@ } .icon { + writing-mode: initial; + text-orientation: initial; &.vertical { transform: rotate(90deg); text-orientation: upright; diff --git a/plugins/chunter-assets/lang/en.json b/plugins/chunter-assets/lang/en.json index 7d61091832..8412b7ca32 100644 --- a/plugins/chunter-assets/lang/en.json +++ b/plugins/chunter-assets/lang/en.json @@ -126,6 +126,7 @@ "TranslateMessage": "Translate message", "Translate": "Translate", "ShowOriginal": "Show original", - "Translating": "Translating..." + "Translating": "Translating...", + "StartConversation": "Start conversation" } } \ No newline at end of file diff --git a/plugins/chunter-assets/lang/es.json b/plugins/chunter-assets/lang/es.json index 1fef286c8a..027a3e2c10 100644 --- a/plugins/chunter-assets/lang/es.json +++ b/plugins/chunter-assets/lang/es.json @@ -126,6 +126,7 @@ "TranslateMessage": "Traducir mensaje", "Translate": "Traducir", "ShowOriginal": "Mostrar original", - "Translating": "Traduciendo..." + "Translating": "Traduciendo...", + "StartConversation": "Iniciar conversación" } } \ No newline at end of file diff --git a/plugins/chunter-assets/lang/fr.json b/plugins/chunter-assets/lang/fr.json index e5415a0cd1..f50055ed47 100644 --- a/plugins/chunter-assets/lang/fr.json +++ b/plugins/chunter-assets/lang/fr.json @@ -126,6 +126,7 @@ "TranslateMessage": "Traduire le message", "Translate": "Traduire", "ShowOriginal": "Afficher l'original", - "Translating": "Traduction en cours..." + "Translating": "Traduction en cours...", + "StartConversation": "Démarrer la conversation" } } \ No newline at end of file diff --git a/plugins/chunter-assets/lang/pt.json b/plugins/chunter-assets/lang/pt.json index 0b2c5a6425..fbfe71a7f0 100644 --- a/plugins/chunter-assets/lang/pt.json +++ b/plugins/chunter-assets/lang/pt.json @@ -126,6 +126,7 @@ "TranslateMessage": "Traduzir mensagem", "Translate": "Traduzir", "ShowOriginal": "Mostrar original", - "Translating": "A traduzir..." + "Translating": "A traduzir...", + "StartConversation": "Iniciar conversa" } } \ No newline at end of file diff --git a/plugins/chunter-assets/lang/ru.json b/plugins/chunter-assets/lang/ru.json index 0d62dcce64..febe44f00e 100644 --- a/plugins/chunter-assets/lang/ru.json +++ b/plugins/chunter-assets/lang/ru.json @@ -126,6 +126,7 @@ "TranslateMessage": "Перевести сообщение", "Translate": "Перевести", "ShowOriginal": "Показать оригинал", - "Translating": "Перевод..." + "Translating": "Перевод...", + "StartConversation": "Начать диалог" } } \ No newline at end of file diff --git a/plugins/chunter-assets/lang/zh.json b/plugins/chunter-assets/lang/zh.json index 84b7dbf3f8..80bfc8c339 100644 --- a/plugins/chunter-assets/lang/zh.json +++ b/plugins/chunter-assets/lang/zh.json @@ -126,6 +126,7 @@ "TranslateMessage": "翻译消息", "Translate": "翻译", "ShowOriginal": "显示原文", - "Translating": "翻译中..." + "Translating": "翻译中...", + "StartConversation": "开始对话" } } diff --git a/plugins/chunter-resources/src/components/chat/create/CreateDirectChat.svelte b/plugins/chunter-resources/src/components/chat/create/CreateDirectChat.svelte index 964c5cc822..0b5eeb277f 100644 --- a/plugins/chunter-resources/src/components/chat/create/CreateDirectChat.svelte +++ b/plugins/chunter-resources/src/components/chat/create/CreateDirectChat.svelte @@ -14,24 +14,20 @@ --> - + diff --git a/plugins/workbench-resources/src/components/sidebar/widgets/WidgetsBar.svelte b/plugins/workbench-resources/src/components/sidebar/widgets/WidgetsBar.svelte index 5f5717b4db..fbdb5d4b41 100644 --- a/plugins/workbench-resources/src/components/sidebar/widgets/WidgetsBar.svelte +++ b/plugins/workbench-resources/src/components/sidebar/widgets/WidgetsBar.svelte @@ -24,6 +24,7 @@ export let widgets: Widget[] = [] export let preferences: WidgetPreference[] = [] export let selected: Ref | undefined = undefined + export let roundBorder = false function handleAddWidget (): void { showPopup(AddWidgetsPopup, { widgets }) @@ -48,7 +49,7 @@ .filter((widget): widget is Widget => widget !== undefined && widget.type === WidgetType.Configurable) -
+
{#each fixedWidgets as widget}