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:
Jennie Robinson Faber 2026-04-14 12:00:15 +01:00
parent 59d6e97787
commit 091ec58073
20 changed files with 405 additions and 80 deletions

View file

@ -22,11 +22,11 @@ describe('GET /api/onboarding/status', () => {
requireAuth.mockResolvedValue({
_id: 'member-1',
craftTags: [],
communityEcology: { topics: [] },
board: { topics: [] },
onboarding: {
completedAt: null,
eventPageVisited: false,
ecologyPageVisited: false,
boardPageVisited: false,
wikiClicked: false,
},
})
@ -50,13 +50,13 @@ describe('GET /api/onboarding/status', () => {
requireAuth.mockResolvedValue({
_id: 'member-1',
craftTags: ['game-design'],
communityEcology: {
board: {
topics: [{ tagSlug: 'governance', state: 'interested' }],
},
onboarding: {
completedAt: null,
eventPageVisited: false,
ecologyPageVisited: false,
boardPageVisited: false,
wikiClicked: false,
},
})
@ -72,11 +72,11 @@ describe('GET /api/onboarding/status', () => {
requireAuth.mockResolvedValue({
_id: 'member-1',
craftTags: ['game-design'],
communityEcology: { topics: [] },
board: { topics: [] },
onboarding: {
completedAt: null,
eventPageVisited: false,
ecologyPageVisited: false,
boardPageVisited: false,
wikiClicked: false,
},
})
@ -92,13 +92,13 @@ describe('GET /api/onboarding/status', () => {
requireAuth.mockResolvedValue({
_id: 'member-1',
craftTags: [],
communityEcology: {
board: {
topics: [{ tagSlug: 'governance', state: 'help' }],
},
onboarding: {
completedAt: null,
eventPageVisited: false,
ecologyPageVisited: true,
boardPageVisited: true,
wikiClicked: false,
},
})
@ -114,11 +114,11 @@ describe('GET /api/onboarding/status', () => {
requireAuth.mockResolvedValue({
_id: 'member-1',
craftTags: [],
communityEcology: { topics: [] },
board: { topics: [] },
onboarding: {
completedAt: null,
eventPageVisited: false,
ecologyPageVisited: true,
boardPageVisited: true,
wikiClicked: false,
},
})
@ -134,11 +134,11 @@ describe('GET /api/onboarding/status', () => {
requireAuth.mockResolvedValue({
_id: 'member-1',
craftTags: [],
communityEcology: { topics: [] },
board: { topics: [] },
onboarding: {
completedAt: null,
eventPageVisited: true,
ecologyPageVisited: false,
boardPageVisited: false,
wikiClicked: true,
},
})