diff --git a/plugins/notification-resources/src/components/DocNotifyContextCard.svelte b/plugins/notification-resources/src/components/DocNotifyContextCard.svelte index 80b6bdb9f9..66d2b3fe75 100644 --- a/plugins/notification-resources/src/components/DocNotifyContextCard.svelte +++ b/plugins/notification-resources/src/components/DocNotifyContextCard.svelte @@ -13,20 +13,30 @@ // limitations under the License. --> @@ -152,16 +228,24 @@
- {#each notifications.slice(0, maxNotifications) as notification} -
+ {#each groupedNotifications.slice(0, maxNotifications) as group (getKey(group))} +
{ e.preventDefault() e.stopPropagation() - dispatch('click', { context: value, notification }) + dispatch('click', { context: value, notification: group[0] }) }} />
diff --git a/plugins/notification-resources/src/components/MessagePopup.svelte b/plugins/notification-resources/src/components/MessagePopup.svelte new file mode 100644 index 0000000000..fc9fc3a1d0 --- /dev/null +++ b/plugins/notification-resources/src/components/MessagePopup.svelte @@ -0,0 +1,110 @@ + + + +
+
+ {#if loading} +
+ +
+ {:else} + {#each messages as message, index} + {@const canGroup = canGroupMessages(message, messages[index - 1])} +
+ + + +
+ {/each} + {/if} +
+
+ + diff --git a/plugins/notification-resources/src/components/NotificationCollaboratorsChanged.svelte b/plugins/notification-resources/src/components/NotificationCollaboratorsChanged.svelte index 7895f45024..a532a9748e 100644 --- a/plugins/notification-resources/src/components/NotificationCollaboratorsChanged.svelte +++ b/plugins/notification-resources/src/components/NotificationCollaboratorsChanged.svelte @@ -39,7 +39,7 @@ } - +