feat(#153): notification history page (/notifications) #155

Merged
marcel merged 17 commits from feature/153-notification-history into main 2026-03-29 19:12:16 +02:00
Showing only changes of commit 3c09833591 - Show all commits

View File

@@ -24,26 +24,28 @@ let { mentions }: Props = $props();
<h2 class="mb-4 font-sans text-xs font-bold tracking-widest text-gray-400 uppercase"> <h2 class="mb-4 font-sans text-xs font-bold tracking-widest text-gray-400 uppercase">
{m.dashboard_notifications_heading()} {m.dashboard_notifications_heading()}
</h2> </h2>
{#each mentions as mention (mention.id)} <div>
<div class="flex items-center gap-3 border-b border-line py-2 last:border-0"> {#each mentions as mention (mention.id)}
{#if mention.documentId} <div class="flex items-center gap-3 border-b border-line py-2 last:border-0">
<a {#if mention.documentId}
href={mention.annotationId <a
? `/documents/${mention.documentId}?commentId=${mention.referenceId}&annotationId=${mention.annotationId}` href={mention.annotationId
: `/documents/${mention.documentId}?commentId=${mention.referenceId}`} ? `/documents/${mention.documentId}?commentId=${mention.referenceId}&annotationId=${mention.annotationId}`
class="font-serif text-lg text-ink hover:text-ink-2 hover:underline" : `/documents/${mention.documentId}?commentId=${mention.referenceId}`}
>{mention.actorName ?? ''}</a class="font-serif text-lg text-ink hover:text-ink-2 hover:underline"
> >{mention.actorName ?? ''}</a
<span class="font-sans text-xs text-gray-400"> >
{mention.type === 'MENTION' <span class="font-sans text-xs text-gray-400">
? m.dashboard_notification_mentioned() {mention.type === 'MENTION'
: m.dashboard_notification_replied()} ? m.dashboard_notification_mentioned()
</span> : m.dashboard_notification_replied()}
{:else} </span>
<span class="font-serif text-lg text-ink">{mention.actorName ?? ''}</span> {:else}
{/if} <span class="font-serif text-lg text-ink">{mention.actorName ?? ''}</span>
</div> {/if}
{/each} </div>
{/each}
</div>
<div class="mt-4 border-t border-line pt-4"> <div class="mt-4 border-t border-line pt-4">
<a <a
href="/notifications" href="/notifications"