Commit Graph

9 Commits

Author SHA1 Message Date
gpt-engineer-app[bot]
a1280ddd05 Migrate Novu functions to wrapEdgeFunction
Refactor Phase 3 Batch 2–4 Novu-related functions to use the createEdgeFunction wrapper, replacing explicit HTTP servers with edge wrapper, adding standardized logging, tracing, and error handling across subscriber management, topic/notification, and migration/sync functions.
2025-11-11 03:55:02 +00:00
gpt-engineer-app[bot]
bf3da6414a Centralize CORS configuration
Consolidate CORS handling by introducing a shared supabase/functions/_shared/cors.ts and migrate edge functions to import from it. Remove inline cors.ts usage across functions, standardize headers (including traceparent and x-request-id), and prepare for environment-aware origins.
2025-11-10 21:28:46 +00:00
gpt-engineer-app[bot]
6fbaf0c606 Fix edge function logging and types 2025-11-03 19:57:27 +00:00
gpt-engineer-app[bot]
f294020d0b Fix Novu API import error 2025-10-12 15:43:19 +00:00
gpt-engineer-app[bot]
1333a5e8c8 Fix Novu API import path 2025-10-12 15:41:36 +00:00
gpt-engineer-app[bot]
4d96f45e74 feat: Implement Novu package migration 2025-10-12 15:40:37 +00:00
pac7
012f2995fa Improve error handling and input validation for notification preferences
Add input validation for userId and channelPreferences, and enhance error reporting for Novu API calls by returning detailed results for each channel update.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a8c5cf3e-a80e-462f-b090-b081acdcf03a
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 14:05:36 +00:00
pac7
94631fd31b Update user notification preferences in Novu system
Modify the Supabase function to iterate through channel preferences and update each individually using the Novu SDK, including error handling for each channel update.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: a8c5cf3e-a80e-462f-b090-b081acdcf03a
Replit-Commit-Checkpoint-Type: intermediate_checkpoint
2025-10-08 14:02:03 +00:00
gpt-engineer-app[bot]
e2f0df22cc feat: Implement Novu notification system 2025-10-01 12:26:12 +00:00