feat: implement comprehensive chat system with user presence management, notification handling, and avatar integration; enhance UI components for improved user experience

This commit is contained in:
2025-10-28 11:57:54 -03:00
parent 81e6eb4a42
commit ee2c9c3ae0
47 changed files with 8274 additions and 195 deletions

View File

@@ -7,6 +7,9 @@
import { loginModalStore } from "$lib/stores/loginModal.svelte";
import { useConvexClient } from "convex-svelte";
import { api } from "@sgse-app/backend/convex/_generated/api";
import NotificationBell from "$lib/components/chat/NotificationBell.svelte";
import ChatWidget from "$lib/components/chat/ChatWidget.svelte";
import PresenceManager from "$lib/components/chat/PresenceManager.svelte";
let { children }: { children: Snippet } = $props();
@@ -174,6 +177,9 @@
</div>
<div class="flex-none flex items-center gap-4">
{#if authStore.autenticado}
<!-- Sino de notificações -->
<NotificationBell />
<div class="hidden lg:flex flex-col items-end">
<span class="text-sm font-semibold text-primary">{authStore.usuario?.nome}</span>
<span class="text-xs text-base-content/60">{authStore.usuario?.role.nome}</span>
@@ -529,3 +535,9 @@
</dialog>
{/if}
<!-- Componentes de Chat (apenas se autenticado) -->
{#if authStore.autenticado}
<PresenceManager />
<ChatWidget />
{/if}