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
|
|
@ -5,13 +5,13 @@ export default defineEventHandler(async (event) => {
|
|||
|
||||
const hasProfileTags =
|
||||
member.craftTags.length > 0 &&
|
||||
(member.communityEcology?.topics || []).length > 0
|
||||
(member.board?.topics || []).length > 0
|
||||
|
||||
const hasVisitedEvent = !!member.onboarding?.eventPageVisited
|
||||
|
||||
const topics = member.communityEcology?.topics || []
|
||||
const topics = member.board?.topics || []
|
||||
const hasEngagedEcology =
|
||||
!!member.onboarding?.ecologyPageVisited &&
|
||||
!!member.onboarding?.boardPageVisited &&
|
||||
topics.some((t) => ['help', 'interested', 'seeking'].includes(t.state))
|
||||
|
||||
const hasClickedWiki = !!member.onboarding?.wikiClicked
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue