From bd075e7ffa70a7e3d9f8e6f5f3d1ddf6ca9f2deb Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Mon, 10 Nov 2025 23:55:22 +0000 Subject: [PATCH] completionId: cgen-e641000f9c134bce95d2f21c47d942f3 cgen-e641000f9c134bce95d2f21c47d942f3 --- client/lib/aethex-database-adapter.ts | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/client/lib/aethex-database-adapter.ts b/client/lib/aethex-database-adapter.ts index 9c623bd9..67a751e2 100644 --- a/client/lib/aethex-database-adapter.ts +++ b/client/lib/aethex-database-adapter.ts @@ -712,6 +712,28 @@ export const aethexProjectService = { throw error; } + if (data && data.user_id) { + try { + if (updates.status === "completed") { + await aethexNotificationService.createNotification( + data.user_id, + "success", + `✅ Project Completed: ${data.name || "Untitled"}`, + "Congratulations on finishing your project!", + ); + } else if (updates.status === "in_progress") { + await aethexNotificationService.createNotification( + data.user_id, + "info", + `⏱️ Project Started: ${data.name || "Untitled"}`, + "You've started working on this project.", + ); + } + } catch (notifError) { + console.warn("Failed to create project status notification:", notifError); + } + } + return data as AethexProject; },