feat: enhance vacation approval process by adding notification system for employees, including email alerts and in-app notifications; improve error handling and user feedback during vacation management

This commit is contained in:
2025-12-10 06:27:25 -03:00
parent 73da995109
commit d27c0b6f91
22 changed files with 1572 additions and 215 deletions

View File

@@ -14,7 +14,6 @@
import ExcelJS from 'exceljs';
import logoGovPE from '$lib/assets/logo_governo_PE.png';
import { toast } from 'svelte-sonner';
import UserAvatar from '$lib/components/chat/UserAvatar.svelte';
const client = useConvexClient();
const currentUser = useQuery(api.auth.getCurrentUser, {});
@@ -673,17 +672,8 @@
<tbody>
{#each ausenciasFiltradas as ausencia}
<tr>
<td>
<div class="flex items-center gap-3">
<UserAvatar
fotoPerfilUrl={ausencia.funcionario?.fotoPerfilUrl}
nome={ausencia.funcionario?.nome || 'N/A'}
size="sm"
/>
<span class="font-semibold">
{ausencia.funcionario?.nome || 'N/A'}
</span>
</div>
<td class="font-semibold">
{ausencia.funcionario?.nome || 'N/A'}
</td>
<td>
{#if ausencia.time}