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:
Jennie Robinson Faber 2026-04-05 16:17:25 +01:00
parent 79d038c724
commit 06ee77592f
3 changed files with 31 additions and 3 deletions

View file

@ -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'
})
}