-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #75 from alkem-io/develop
Release: Updated Alkemio Template
- Loading branch information
Showing
20 changed files
with
268 additions
and
73 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -163,6 +163,11 @@ export class ApplicationCreatedNotificationBuilder { | |
eventPayload.hub.challenge?.nameID, | ||
eventPayload.hub.challenge?.opportunity?.nameID | ||
); | ||
const notificationPreferenceURL = | ||
this.alkemioUrlGenerator.createUserNotificationPreferencesURL( | ||
recipient.nameID | ||
); | ||
const hubURL = this.alkemioUrlGenerator.createHubURL(); | ||
return { | ||
emailFrom: '[email protected]', | ||
applicant: { | ||
|
@@ -173,12 +178,16 @@ export class ApplicationCreatedNotificationBuilder { | |
recipient: { | ||
name: recipient.displayName, | ||
email: recipient.email, | ||
notificationPreferences: notificationPreferenceURL, | ||
}, | ||
community: { | ||
name: eventPayload.community.name, | ||
type: eventPayload.community.type, | ||
url: communityURL, | ||
}, | ||
hub: { | ||
url: hubURL, | ||
}, | ||
event: eventPayload, | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,7 +57,8 @@ export class CommunicationDiscussionCreatedNotificationBuilder { | |
eventPayload, | ||
'admin', | ||
EmailTemplate.COMMUNICATION_DISCUSSION_CREATED_ADMIN, | ||
sender | ||
sender, | ||
UserPreferenceType.NotificationCommunicationDiscussionCreatedAdmin | ||
); | ||
|
||
const memberNotificationPromises = await this.buildNotificationsForRole( | ||
|
@@ -178,6 +179,11 @@ export class CommunicationDiscussionCreatedNotificationBuilder { | |
eventPayload.hub.challenge?.opportunity?.nameID | ||
); | ||
const senderProfile = this.alkemioUrlGenerator.createUserURL(sender.nameID); | ||
const notificationPreferenceURL = | ||
this.alkemioUrlGenerator.createUserNotificationPreferencesURL( | ||
recipient.nameID | ||
); | ||
const hubURL = this.alkemioUrlGenerator.createHubURL(); | ||
return { | ||
emailFrom: '[email protected]', | ||
createdBy: { | ||
|
@@ -195,12 +201,16 @@ export class CommunicationDiscussionCreatedNotificationBuilder { | |
name: recipient.displayName, | ||
firstname: recipient.firstName, | ||
email: recipient.email, | ||
notificationPreferences: notificationPreferenceURL, | ||
}, | ||
community: { | ||
name: eventPayload.community.name, | ||
type: eventPayload.community.type, | ||
url: communityURL, | ||
}, | ||
hub: { | ||
url: hubURL, | ||
}, | ||
event: eventPayload, | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,8 @@ export class CommunicationUpdateNotificationBuilder { | |
eventPayload, | ||
'admin', | ||
EmailTemplate.COMMUNICATION_UPDATE_ADMIN, | ||
sender | ||
sender, | ||
UserPreferenceType.NotificationCommunicationUpdateSentAdmin | ||
); | ||
|
||
const memberNotificationPromises = await this.buildNotificationsForRole( | ||
|
@@ -176,6 +177,11 @@ export class CommunicationUpdateNotificationBuilder { | |
eventPayload.hub.challenge?.opportunity?.nameID | ||
); | ||
const senderProfile = this.alkemioUrlGenerator.createUserURL(sender.nameID); | ||
const notificationPreferenceURL = | ||
this.alkemioUrlGenerator.createUserNotificationPreferencesURL( | ||
recipient.nameID | ||
); | ||
const hubURL = this.alkemioUrlGenerator.createHubURL(); | ||
return { | ||
emailFrom: '[email protected]', | ||
sender: { | ||
|
@@ -191,12 +197,16 @@ export class CommunicationUpdateNotificationBuilder { | |
name: recipient.displayName, | ||
firstname: recipient.firstName, | ||
email: recipient.email, | ||
notificationPreferences: notificationPreferenceURL, | ||
}, | ||
community: { | ||
name: eventPayload.community.name, | ||
type: eventPayload.community.type, | ||
url: communityURL, | ||
}, | ||
hub: { | ||
url: hubURL, | ||
}, | ||
event: eventPayload, | ||
}; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -153,6 +153,11 @@ export class UserRegisteredNotificationBuilder { | |
const registrantProfileURL = this.alkemioUrlGenerator.createUserURL( | ||
registrant.nameID | ||
); | ||
const notificationPreferenceURL = | ||
this.alkemioUrlGenerator.createUserNotificationPreferencesURL( | ||
recipient.nameID | ||
); | ||
const hubURL = this.alkemioUrlGenerator.createHubURL(); | ||
return { | ||
emailFrom: '[email protected]', | ||
registrant: { | ||
|
@@ -165,6 +170,10 @@ export class UserRegisteredNotificationBuilder { | |
name: recipient.displayName, | ||
firstname: recipient.firstName, | ||
email: recipient.email, | ||
notificationPreferences: notificationPreferenceURL, | ||
}, | ||
hub: { | ||
url: hubURL, | ||
}, | ||
event: eventPayload, | ||
}; | ||
|
Oops, something went wrong.