feat: Implement read cursor activity tracking and recent activity dashboard with context

This commit is contained in:
Daan Meijer
2026-06-15 23:37:44 +02:00
parent e32fbc10e0
commit f12639fb59
13 changed files with 721 additions and 28 deletions
+28
View File
@@ -238,6 +238,34 @@ const rightNavItems: NavItem[] = [
</div>
</div>
<div
v-if="page.props.unreadNotificationsCount > 0"
class="relative"
>
<Link
:href="route('dashboard')"
class="relative flex h-9 w-9 items-center justify-center rounded-full hover:bg-neutral-100 dark:hover:bg-neutral-800"
>
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5 opacity-80"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"
/>
</svg>
<span class="absolute -top-1 -right-1 flex h-4 w-4 items-center justify-center rounded-full bg-red-600 text-[10px] font-bold text-white">
{{ page.props.unreadNotificationsCount }}
</span>
</Link>
</div>
<DropdownMenu>
<DropdownMenuTrigger :as-child="true">
<Button