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
|
|
@ -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,
|
||||
},
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue