diff --git a/models/core/src/index.ts b/models/core/src/index.ts index 64ff9b648b..f98436830c 100644 --- a/models/core/src/index.ts +++ b/models/core/src/index.ts @@ -141,10 +141,18 @@ export function createModel (builder: Builder): void { 'tx._class', 'tx.objectClass', 'tx.operations.attachedTo', + 'space', 'objectSpace', { + _class: 1, objectSpace: 1, - _id: 1 + _id: 1, + modifiedOn: 1 + }, + { + _class: 1, + _id: 1, + modifiedOn: 1 } ] } diff --git a/packages/core/src/client.ts b/packages/core/src/client.ts index 90b3da54d0..26d37ddc9a 100644 --- a/packages/core/src/client.ts +++ b/packages/core/src/client.ts @@ -198,7 +198,7 @@ export async function createClient ( const atxes = await conn.findAll( core.class.Tx, { modifiedOn: { $gt: lastTx } }, - { sort: { _id: SortingOrder.Ascending }, limit: transactionThreshold } + { sort: { modifiedOn: SortingOrder.Ascending, _id: SortingOrder.Ascending }, limit: transactionThreshold } ) if (atxes.total < transactionThreshold) { console.log('applying input transactions', atxes.length) @@ -226,7 +226,7 @@ async function loadModel ( const atxes = await conn.findAll( core.class.Tx, { objectSpace: core.space.Model, _id: { $nin: Array.from(processedTx.values()) } }, - { sort: { _id: SortingOrder.Ascending } } + { sort: { modifiedOn: SortingOrder.Ascending, _id: SortingOrder.Ascending } } ) let systemTx: Tx[] = [] diff --git a/packages/presentation/src/components/message/Nodes.svelte b/packages/presentation/src/components/message/Nodes.svelte index b069b543be..5a6434468f 100644 --- a/packages/presentation/src/components/message/Nodes.svelte +++ b/packages/presentation/src/components/message/Nodes.svelte @@ -29,7 +29,11 @@ {:else if node.nodeName === 'STRONG'} {:else if node.nodeName === 'P'} -

+ {#if node.childNodes.length > 0} +

+ +

+ {/if} {:else if node.nodeName === 'BLOCKQUOTE'}
{:else if node.nodeName === 'CODE'} diff --git a/plugins/attachment-resources/src/components/AttachmentPopup.svelte b/plugins/attachment-resources/src/components/AttachmentPopup.svelte index 6fce7539d7..fb49b1b9ca 100644 --- a/plugins/attachment-resources/src/components/AttachmentPopup.svelte +++ b/plugins/attachment-resources/src/components/AttachmentPopup.svelte @@ -14,16 +14,26 @@ // limitations under the License. --> +
+
+
+ + + +
import type { Doc } from '@hcengineering/core' import { IconAttachment, tooltip } from '@hcengineering/ui' - import attachment from '../plugin' + import { DocNavLink } from '@hcengineering/view-resources' import AttachmentPopup from './AttachmentPopup.svelte' export let value: number | undefined @@ -27,18 +27,18 @@ {#if value && value > 0} -
{}} - class="sm-tool-icon ml-1 mr-1" - > - - {#if showCounter} -  {value} - {/if} -
+ +
+ + {#if showCounter} +  {value} + {/if} +
+
{/if} diff --git a/plugins/chunter-resources/src/components/CommentPopup.svelte b/plugins/chunter-resources/src/components/CommentPopup.svelte index 65e0499123..3a3b03574e 100644 --- a/plugins/chunter-resources/src/components/CommentPopup.svelte +++ b/plugins/chunter-resources/src/components/CommentPopup.svelte @@ -14,13 +14,16 @@ // limitations under the License. --> -{#each comments as comment} -
- +
+
+
-{/each} + + + +
+
+ {#each comments as comment} +
+ +
+ {/each} +
diff --git a/plugins/chunter-resources/src/components/CommentPresenter.svelte b/plugins/chunter-resources/src/components/CommentPresenter.svelte index a090e46d5a..822afb5a21 100644 --- a/plugins/chunter-resources/src/components/CommentPresenter.svelte +++ b/plugins/chunter-resources/src/components/CommentPresenter.svelte @@ -18,10 +18,9 @@ import type { Comment } from '@hcengineering/chunter' import chunter from '@hcengineering/chunter' import contact, { Employee, EmployeeAccount, getName } from '@hcengineering/contact' - import { employeeByIdStore } from '@hcengineering/contact-resources' + import { Avatar, employeeByIdStore } from '@hcengineering/contact-resources' import { Ref } from '@hcengineering/core' import { getClient, MessageViewer } from '@hcengineering/presentation' - import { Avatar } from '@hcengineering/contact-resources' import { Icon, ShowMore, TimeSince } from '@hcengineering/ui' export let value: Comment @@ -64,7 +63,7 @@
- + diff --git a/plugins/chunter-resources/src/components/CommentsPresenter.svelte b/plugins/chunter-resources/src/components/CommentsPresenter.svelte index 8ff7d33817..264bf89b1b 100644 --- a/plugins/chunter-resources/src/components/CommentsPresenter.svelte +++ b/plugins/chunter-resources/src/components/CommentsPresenter.svelte @@ -14,9 +14,9 @@ // limitations under the License. --> +
+
+
+ + + +
import type { Candidate } from '@hcengineering/recruit' import { Icon, tooltip } from '@hcengineering/ui' + import { DocNavLink } from '@hcengineering/view-resources' import recruit from '../plugin' import ApplicationsPopup from './ApplicationsPopup.svelte' @@ -24,14 +25,15 @@ {#if value && value > 0} -
-  {value} -
+ +
+  {value} +
+
{/if} diff --git a/plugins/tracker-resources/src/components/issues/IssuePreview.svelte b/plugins/tracker-resources/src/components/issues/IssuePreview.svelte index 6a7a43b61c..5ce6f3ad9e 100644 --- a/plugins/tracker-resources/src/components/issues/IssuePreview.svelte +++ b/plugins/tracker-resources/src/components/issues/IssuePreview.svelte @@ -114,7 +114,7 @@