From 3d8f907fa5572d619db49dab4fcb5c3b1807e45a Mon Sep 17 00:00:00 2001 From: deyvisonwanderley Date: Mon, 3 Nov 2025 23:11:27 -0300 Subject: [PATCH] feat: implement scheduling for notifications with enhanced validation - Added functionality to schedule notifications for future delivery, including date and time selection in the UI. - Implemented validation to ensure scheduled times are in the future and correctly formatted. - Updated backend email handling to support scheduled sending, with appropriate checks for agendamentos. - Enhanced user feedback for both immediate and scheduled notifications, improving overall user experience. --- .../(dashboard)/ti/notificacoes/+page.svelte | 214 +++++++++++++++--- packages/backend/convex/email.ts | 52 ++++- 2 files changed, 227 insertions(+), 39 deletions(-) diff --git a/apps/web/src/routes/(dashboard)/ti/notificacoes/+page.svelte b/apps/web/src/routes/(dashboard)/ti/notificacoes/+page.svelte index 55b7128..b42d0e6 100644 --- a/apps/web/src/routes/(dashboard)/ti/notificacoes/+page.svelte +++ b/apps/web/src/routes/(dashboard)/ti/notificacoes/+page.svelte @@ -1,6 +1,8 @@