Rename communityEcology → board across frontend, add Board nav, update redirects
- Add Board to exploreItems in AppNavigation - Update ecology.vue + connections.vue redirects to /board - Rename all communityEcology refs to board in member profiles, dashboard, admin, onboarding - Update API path /api/members/me/community-ecology → /api/members/me/board
This commit is contained in:
parent
3e5cedb1a6
commit
cdef868256
9 changed files with 75 additions and 76 deletions
|
|
@ -6,7 +6,7 @@ export function useOnboarding(options = {}) {
|
|||
const goals = useState('onboarding.goals', () => ({
|
||||
hasProfileTags: false,
|
||||
hasVisitedEvent: false,
|
||||
hasEngagedEcology: false,
|
||||
hasEngagedBoard: false,
|
||||
hasClickedWiki: false,
|
||||
}))
|
||||
|
||||
|
|
@ -14,7 +14,7 @@ export function useOnboarding(options = {}) {
|
|||
const loading = useState('onboarding.loading', () => false)
|
||||
const recommendations = useState('onboarding.recommendations', () => ({
|
||||
events: [],
|
||||
ecology: [],
|
||||
board: [],
|
||||
wiki: [],
|
||||
}))
|
||||
|
||||
|
|
@ -25,7 +25,7 @@ export function useOnboarding(options = {}) {
|
|||
!!completedAt.value ||
|
||||
(goals.value.hasProfileTags &&
|
||||
goals.value.hasVisitedEvent &&
|
||||
goals.value.hasEngagedEcology &&
|
||||
goals.value.hasEngagedBoard &&
|
||||
goals.value.hasClickedWiki)
|
||||
)
|
||||
|
||||
|
|
@ -52,12 +52,12 @@ export function useOnboarding(options = {}) {
|
|||
actionText: 'Browse events',
|
||||
}
|
||||
}
|
||||
if (!goals.value.hasEngagedEcology) {
|
||||
if (!goals.value.hasEngagedBoard) {
|
||||
return {
|
||||
key: 'ecology',
|
||||
text: 'Explore the community ecology to find collaborators',
|
||||
action: '/ecology',
|
||||
actionText: 'Explore ecology',
|
||||
key: 'board',
|
||||
text: 'Explore the board to find collaborators',
|
||||
action: '/board',
|
||||
actionText: 'Explore board',
|
||||
}
|
||||
}
|
||||
if (!goals.value.hasClickedWiki) {
|
||||
|
|
@ -72,7 +72,7 @@ export function useOnboarding(options = {}) {
|
|||
}
|
||||
|
||||
// Graduated — suggestion mode
|
||||
const cats = ['events', 'ecology', 'wiki'].filter(
|
||||
const cats = ['events', 'board', 'wiki'].filter(
|
||||
(c) => recommendations.value[c]?.length > 0
|
||||
)
|
||||
|
||||
|
|
@ -99,12 +99,12 @@ export function useOnboarding(options = {}) {
|
|||
actionText: 'View event',
|
||||
}
|
||||
}
|
||||
if (category === 'ecology') {
|
||||
if (category === 'board') {
|
||||
return {
|
||||
key: 'ecology',
|
||||
text: `Connect with ${item.name || 'a member'} in the ecology`,
|
||||
action: '/ecology',
|
||||
actionText: 'Explore ecology',
|
||||
key: 'board',
|
||||
text: `Connect with ${item.name || 'a member'} on the board`,
|
||||
action: '/board',
|
||||
actionText: 'Explore board',
|
||||
}
|
||||
}
|
||||
if (category === 'wiki') {
|
||||
|
|
@ -144,14 +144,14 @@ export function useOnboarding(options = {}) {
|
|||
}
|
||||
|
||||
async function fetchRecommendations() {
|
||||
const [events, ecology, wiki] = await Promise.allSettled([
|
||||
const [events, board, wiki] = await Promise.allSettled([
|
||||
$fetch('/api/events/recommended'),
|
||||
$fetch('/api/ecology/suggestions'),
|
||||
$fetch('/api/board/suggestions'),
|
||||
$fetch('/api/wiki/recommended'),
|
||||
])
|
||||
recommendations.value = {
|
||||
events: events.status === 'fulfilled' ? (events.value || []) : [],
|
||||
ecology: ecology.status === 'fulfilled' ? (ecology.value?.suggestions || []) : [],
|
||||
board: board.status === 'fulfilled' ? (board.value?.suggestions || []) : [],
|
||||
wiki: wiki.status === 'fulfilled' ? (wiki.value || []) : [],
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue