rename communityEcology → board across backend
Model, schemas, API routes, activity log, and all server handlers updated. Old ecology/ and community-ecology routes removed, new board/ routes added. Tests updated and new board-suggestions tests written (10 cases).
This commit is contained in:
parent
59d6e97787
commit
091ec58073
20 changed files with 405 additions and 80 deletions
|
|
@ -17,7 +17,7 @@ export const ACTIVITY_TYPES = {
|
|||
SLACK_INVITED: 'slack_invited',
|
||||
EMAIL_SENT: 'email_sent',
|
||||
COMMUNITY_CONNECTIONS_UPDATED: 'community_connections_updated',
|
||||
COMMUNITY_ECOLOGY_UPDATED: 'community_ecology_updated',
|
||||
BOARD_UPDATED: 'board_updated',
|
||||
CONNECTION_REQUESTED: 'connection_requested',
|
||||
CONNECTION_CONFIRMED: 'connection_confirmed',
|
||||
TAG_SUGGESTED: 'tag_suggested'
|
||||
|
|
@ -40,7 +40,7 @@ export const ACTIVITY_TYPE_DEFAULTS = {
|
|||
slack_invited: 'admin',
|
||||
email_sent: 'member',
|
||||
community_connections_updated: 'member',
|
||||
community_ecology_updated: 'member',
|
||||
board_updated: 'member',
|
||||
connection_requested: 'member',
|
||||
connection_confirmed: 'member',
|
||||
tag_suggested: 'member'
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ export const memberProfileUpdateSchema = z.object({
|
|||
socialLinksPrivacy: privacyEnum.optional(),
|
||||
craftTags: z.array(z.string().max(100)).max(16).optional(),
|
||||
craftTagsPrivacy: privacyEnum.optional(),
|
||||
communityEcologyPrivacy: privacyEnum.optional()
|
||||
boardPrivacy: privacyEnum.optional()
|
||||
})
|
||||
|
||||
export const eventRegistrationSchema = z.object({
|
||||
|
|
@ -367,7 +367,7 @@ export const inviteAcceptSchema = z.object({
|
|||
// --- Onboarding schemas ---
|
||||
|
||||
export const onboardingTrackSchema = z.object({
|
||||
goal: z.enum(['eventPageVisited', 'ecologyPageVisited', 'wikiClicked'])
|
||||
goal: z.enum(['eventPageVisited', 'boardPageVisited', 'wikiClicked'])
|
||||
})
|
||||
|
||||
// --- Tag schemas ---
|
||||
|
|
@ -377,7 +377,7 @@ export const tagSuggestionSchema = z.object({
|
|||
pool: z.enum(['craft', 'cooperative'])
|
||||
})
|
||||
|
||||
export const communityEcologyUpdateSchema = z.object({
|
||||
export const boardUpdateSchema = z.object({
|
||||
topics: z.array(z.object({
|
||||
tagSlug: z.string().min(1).max(100),
|
||||
state: z.enum(['help', 'interested', 'seeking'])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue