feat: add community connections activity log types
Adds COMMUNITY_CONNECTIONS_UPDATED, CONNECTION_REQUESTED, CONNECTION_CONFIRMED, and TAG_SUGGESTED to ACTIVITY_TYPES, ACTIVITY_TYPE_DEFAULTS, the Mongoose enum, and activityText formatters. All four default to member visibility.
This commit is contained in:
parent
79d038c724
commit
06ee77592f
3 changed files with 31 additions and 3 deletions
|
|
@ -81,6 +81,22 @@ const formatters = {
|
|||
text: m.subject ? `Email: ${m.subject}` : 'Email sent',
|
||||
icon: 'i-lucide-mail',
|
||||
emailBody: m.body || null
|
||||
}),
|
||||
community_connections_updated: () => ({
|
||||
text: 'Updated community connections',
|
||||
icon: 'i-lucide-users'
|
||||
}),
|
||||
connection_requested: (m) => ({
|
||||
text: `Sent connection request to ${m.memberName || 'a member'}`,
|
||||
icon: 'i-lucide-user-plus'
|
||||
}),
|
||||
connection_confirmed: (m) => ({
|
||||
text: `Connected with ${m.memberName || 'a member'}`,
|
||||
icon: 'i-lucide-handshake'
|
||||
}),
|
||||
tag_suggested: (m) => ({
|
||||
text: `Suggested tag: ${m.label || 'unknown'}`,
|
||||
icon: 'i-lucide-tag'
|
||||
})
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue