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
|
|
@ -17,7 +17,7 @@ const ACTIVITY_TYPES = [
|
|||
'slack_invited',
|
||||
'email_sent',
|
||||
'community_connections_updated',
|
||||
'community_ecology_updated',
|
||||
'board_updated',
|
||||
'connection_requested',
|
||||
'connection_confirmed',
|
||||
'tag_suggested'
|
||||
|
|
|
|||
|
|
@ -72,7 +72,7 @@ const memberSchema = new mongoose.Schema({
|
|||
showInDirectory: { type: Boolean, default: true },
|
||||
|
||||
craftTags: [String],
|
||||
communityEcology: {
|
||||
board: {
|
||||
topics: [
|
||||
{
|
||||
tagSlug: String,
|
||||
|
|
@ -128,7 +128,7 @@ const memberSchema = new mongoose.Schema({
|
|||
enum: ["public", "members", "private"],
|
||||
default: "members",
|
||||
},
|
||||
communityEcology: {
|
||||
board: {
|
||||
type: String,
|
||||
enum: ["public", "members", "private"],
|
||||
default: "members",
|
||||
|
|
@ -155,7 +155,7 @@ const memberSchema = new mongoose.Schema({
|
|||
onboarding: {
|
||||
completedAt: { type: Date, default: null },
|
||||
eventPageVisited: { type: Boolean, default: false },
|
||||
ecologyPageVisited: { type: Boolean, default: false },
|
||||
boardPageVisited: { type: Boolean, default: false },
|
||||
wikiClicked: { type: Boolean, default: false },
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue