feat: update tests + seed script, add ecology→board migration
- useOnboarding.test.js: hasEngagedEcology→hasEngagedBoard, /api/ecology/suggestions→/api/board/suggestions, ecology key/route→board in test assertions - onboarding-status.test.js: stale description strings updated - seed-welcome-tester.cjs: communityEcology→board, ecologyPageVisited→boardPageVisited - migrate-ecology-to-board.cjs: one-time migration renames three member fields and activity log action values
This commit is contained in:
parent
49c54764c6
commit
74b2287d48
4 changed files with 95 additions and 26 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/**
|
||||
* Seed a fresh member in the right state to test the Welcome Workflow.
|
||||
* All onboarding flags default to false/null, no craft tags, no ecology topics.
|
||||
* All onboarding flags default to false/null, no craft tags, no board topics.
|
||||
*
|
||||
* Usage: node scripts/seed-welcome-tester.js
|
||||
* Then pick "Welcome Tester" from the dev login dropdown.
|
||||
|
|
@ -29,11 +29,11 @@ async function main() {
|
|||
role: "member",
|
||||
status: "active",
|
||||
craftTags: [],
|
||||
communityEcology: { topics: [], offerPeerSupport: false },
|
||||
board: { topics: [], offerPeerSupport: false },
|
||||
onboarding: {
|
||||
completedAt: null,
|
||||
eventPageVisited: false,
|
||||
ecologyPageVisited: false,
|
||||
boardPageVisited: false,
|
||||
wikiClicked: false,
|
||||
},
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue