From f3288b9639725f8d7065081d7d8cc1dfca9a9431 Mon Sep 17 00:00:00 2001 From: killer-cf Date: Mon, 15 Dec 2025 11:33:51 -0300 Subject: [PATCH 01/13] feat: enhance notification bell component by refactoring notification fetching logic, improving type safety, and updating UI elements for better user experience --- .../components/chat/NotificationBell.svelte | 215 ++++----- .../routes/(dashboard)/compras/+page.svelte | 153 +++---- .../(dashboard)/compras/atas/+page.svelte | 430 ++++++++++-------- .../(dashboard)/compras/objetos/+page.svelte | 350 +++++++------- .../funcionarios/excluir/+page.svelte | 16 +- 5 files changed, 589 insertions(+), 575 deletions(-) diff --git a/apps/web/src/lib/components/chat/NotificationBell.svelte b/apps/web/src/lib/components/chat/NotificationBell.svelte index d270e47..c777eb5 100644 --- a/apps/web/src/lib/components/chat/NotificationBell.svelte +++ b/apps/web/src/lib/components/chat/NotificationBell.svelte @@ -1,6 +1,8 @@
- - + +
{#if modalOpen}
@@ -310,7 +269,7 @@ Limpar todas {/if} -
@@ -439,17 +398,17 @@ {#if notificacoesFerias.length > 0}
-

Férias

+

Férias

{#each notificacoesFerias as notificacao (notificacao._id)} @@ -475,17 +434,17 @@ {#if notificacoesAusencias.length > 0}
-

Ausências

+

Ausências

{#each notificacoesAusencias as notificacao (notificacao._id)}