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
|
|
@ -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