diff --git a/plugins/card-resources/src/components/CardPathPresenter.svelte b/plugins/card-resources/src/components/CardPathPresenter.svelte
index e69556828bb..1b718dd65b9 100644
--- a/plugins/card-resources/src/components/CardPathPresenter.svelte
+++ b/plugins/card-resources/src/components/CardPathPresenter.svelte
@@ -36,16 +36,16 @@
{/if}
- {#if card.parent != null}
+ {#if card.parentInfo?.length > 0}
{#if displaySpace && card.$lookup?.space !== undefined}
{/if}
- {@const info = card.parentInfo?.find((it) => it._id === card.parent)}
+ {@const info = card.parent != null ? card.parentInfo?.find((it) => it._id === card.parent) : card.parentInfo?.[0]}
{#if info}
openCardInSidebar(info._id)}
>
@@ -63,23 +63,18 @@
display: flex;
justify-content: center;
align-items: center;
- padding: 0 0.5rem;
min-width: 2rem;
max-width: 25rem;
min-height: 1.5rem;
max-height: 1.5rem;
font-size: 0.75rem;
font-weight: 500;
- border-radius: var(--extra-small-BorderRadius);
white-space: nowrap;
gap: 0.25rem;
- background-color: var(--global-ui-BackgroundColor);
- border: var(--global-subtle-ui-BorderColor);
color: var(--global-secondary-TextColor);
- cursor: pointer;
- &:hover {
- background: var(--global-ui-active-BackgroundColor);
+ &.clickable {
+ cursor: pointer;
}
}
diff --git a/plugins/card-resources/src/components/CardSection.svelte b/plugins/card-resources/src/components/CardSection.svelte
new file mode 100644
index 00000000000..d9fb0e2ddfd
--- /dev/null
+++ b/plugins/card-resources/src/components/CardSection.svelte
@@ -0,0 +1,44 @@
+
+
+
+
+
+
+
+
+
diff --git a/plugins/card-resources/src/components/ColoredCardIcon.svelte b/plugins/card-resources/src/components/ColoredCardIcon.svelte
index a2f8cc3d83f..88def1302f0 100644
--- a/plugins/card-resources/src/components/ColoredCardIcon.svelte
+++ b/plugins/card-resources/src/components/ColoredCardIcon.svelte
@@ -35,10 +35,7 @@
function getIconStyle (platformColor: any): string {
return `
- background: ${platformColor.color + '1a'};
- border: 1px solid ${platformColor.color + '33'};
- color: ${platformColor.color};
- fill: ${platformColor.color};
+ box-shadow: 0 2px 3px 0 ${platformColor.color};
`
}
diff --git a/plugins/card-resources/src/components/FeedCardPresenter.svelte b/plugins/card-resources/src/components/FeedCardPresenter.svelte
index 2a37688bc2c..26a7953dcd3 100644
--- a/plugins/card-resources/src/components/FeedCardPresenter.svelte
+++ b/plugins/card-resources/src/components/FeedCardPresenter.svelte
@@ -18,7 +18,7 @@
import { createMessagesQuery } from '@hcengineering/presentation'
import chat from '@hcengineering/chat'
- import { MessagePresenter, labelsStore } from '@hcengineering/communication-resources'
+ import { ExtendedMessagePreview, labelsStore } from '@hcengineering/communication-resources'
import { getEmbeddedLabel } from '@hcengineering/platform'
import { Button, IconDetailsFilled, IconMoreH, tooltip } from '@hcengineering/ui'
import { DocNavLink, showMenu } from '@hcengineering/view-resources'
@@ -32,6 +32,7 @@
import ColoredCardIcon from './ColoredCardIcon.svelte'
import ContentPreview from './ContentPreview.svelte'
import TagDivider from './TagDivider.svelte'
+ import CardSection from './CardSection.svelte'
export let card: WithLookup
export let isCompact = false
@@ -39,7 +40,6 @@
const messagesQuery = createMessagesQuery()
- let message: Message | undefined = undefined
let messages: Message[] = []
// Check if the card is a thread type
@@ -48,10 +48,12 @@
// Only query messages if this is a thread card
$: if (isThreadCard) {
messagesQuery.query(
- { cardId: card._id, limit: 3, order: SortingOrder.Ascending },
+ { cardId: card._id, limit: 3, order: SortingOrder.Descending },
(res) => {
- messages = res.getResult().reverse()
- message = messages.findLast((msg) => msg.type === MessageType.Text)
+ messages = res
+ .getResult()
+ .filter((msg) => msg.type === MessageType.Text)
+ .reverse()
},
{
attachments: true,
@@ -61,7 +63,6 @@
} else {
// Clear message data for non-thread cards
messages = []
- message = undefined
}
function hasNewMessages (labels: CardLabel[], cardId: CardID): boolean {
@@ -76,100 +77,97 @@