From 55db43a036483d7a84143e4899bc2004ba7a19da Mon Sep 17 00:00:00 2001 From: cstns Date: Wed, 15 Oct 2025 13:23:07 +0300 Subject: [PATCH 1/3] Send team trial suspension notification to team owners on housekeeper trial task --- forge/ee/lib/billing/trialTask.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/forge/ee/lib/billing/trialTask.js b/forge/ee/lib/billing/trialTask.js index 6c0e1791ab..93e7ae7a19 100644 --- a/forge/ee/lib/billing/trialTask.js +++ b/forge/ee/lib/billing/trialTask.js @@ -33,6 +33,7 @@ module.exports.init = function (app) { await sendTrialEmail(subscription.Team, 'TrialTeamSuspended', { teamSettingsURL: `${app.config.base_url}/team/${subscription.Team.slug}/billing` }) + await sendTrialSuspendedNotification(subscription.Team, 'TrialTeamEnded') } // We have dealt with this team @@ -113,6 +114,16 @@ module.exports.init = function (app) { } } + async function sendTrialSuspendedNotification (team) { + const owners = await team.getOwners() + for (const user of owners) { + const { id, TeamTypeId, ...teamPayload } = team.toJSON() + app.notifications.send(user, 'team-trial-suspended', { + team: teamPayload + }) + } + } + async function suspendAllProjects (team) { const projects = await team.getProjects() for (const project of projects) { From 3e90478f3b49dd456a5963c1e575470478208046 Mon Sep 17 00:00:00 2001 From: cstns Date: Wed, 15 Oct 2025 13:31:41 +0300 Subject: [PATCH 2/3] quick fixes padding for the notifications drawer --- frontend/src/stylesheets/components/notifications.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/stylesheets/components/notifications.scss b/frontend/src/stylesheets/components/notifications.scss index 43d46228ba..dae532e2a5 100644 --- a/frontend/src/stylesheets/components/notifications.scss +++ b/frontend/src/stylesheets/components/notifications.scss @@ -43,6 +43,7 @@ $ff-notifications-drawer-side-padding: 6px; align-items: center; height: 100%; width: 100%; + padding: 0 !important; > .header { border-bottom: 1px solid $ff-grey-300; From a08972bea76702a161b3709fa4986cb9128b1459 Mon Sep 17 00:00:00 2001 From: cstns Date: Wed, 15 Oct 2025 13:31:53 +0300 Subject: [PATCH 3/3] Add "team-trial-suspended" notification type and improve icon component handling --- frontend/src/components/notifications/Generic.vue | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/notifications/Generic.vue b/frontend/src/components/notifications/Generic.vue index 4756d47da6..c1baef3c48 100644 --- a/frontend/src/components/notifications/Generic.vue +++ b/frontend/src/components/notifications/Generic.vue @@ -20,7 +20,7 @@