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:
Jennie Robinson Faber 2026-04-14 12:15:51 +01:00
parent 3e5cedb1a6
commit cdef868256
9 changed files with 75 additions and 76 deletions

View file

@ -108,9 +108,9 @@
<div class="profile-bio" v-html="renderMarkdown(member.bio)"></div>
</div>
<!-- Two-column: Craft Tags + Community Ecology -->
<!-- Two-column: Craft Tags + Board -->
<div
v-if="craftTagsDisplay.length > 0 || ecologyTopics.length > 0 || member.communityEcology?.details"
v-if="craftTagsDisplay.length > 0 || ecologyTopics.length > 0 || member.board?.details"
class="profile-two-col"
>
<!-- Left: What I Do -->
@ -125,9 +125,9 @@
</div>
</div>
<!-- Right: Community Ecology -->
<!-- Right: Board -->
<div class="profile-section">
<div class="section-label">Community Ecology</div>
<div class="section-label">Board</div>
<div v-if="ecologyTopics.length > 0" class="tag-list">
<span
v-for="topic in ecologyTopics"
@ -138,24 +138,24 @@
{{ tagLabel('cooperative', topic.tagSlug) }}
</span>
</div>
<p v-if="member.communityEcology?.details" class="profile-detail connection-details">
{{ member.communityEcology.details }}
<p v-if="member.board?.details" class="profile-detail connection-details">
{{ member.board.details }}
</p>
</div>
</div>
<!-- Peer Support -->
<div v-if="member.communityEcology?.offerPeerSupport" class="profile-section">
<div v-if="member.board?.offerPeerSupport" class="profile-section">
<div class="section-label">Peer Support</div>
<div class="dashed-box no-hover">
<p v-if="member.communityEcology?.personalMessage" class="profile-detail">
{{ member.communityEcology.personalMessage }}
<p v-if="member.board?.personalMessage" class="profile-detail">
{{ member.board.personalMessage }}
</p>
<p v-if="member.communityEcology?.availability" class="profile-detail peer-availability">
{{ member.communityEcology.availability }}
<p v-if="member.board?.availability" class="profile-detail peer-availability">
{{ member.board.availability }}
</p>
<p v-if="member.communityEcology?.slackHandle" class="profile-detail peer-availability">
Reach out on Slack: <span class="slack-handle">@{{ member.communityEcology.slackHandle }}</span>
<p v-if="member.board?.slackHandle" class="profile-detail peer-availability">
Reach out on Slack: <span class="slack-handle">@{{ member.board.slackHandle }}</span>
</p>
</div>
</div>
@ -275,7 +275,7 @@ const tagLabel = (pool, slug) => {
const craftTagsDisplay = computed(() => member.value?.craftTags || []);
const ecologyTopics = computed(
() => member.value?.communityEcology?.topics || [],
() => member.value?.board?.topics || [],
);
// Whether the member has any social links (for hero layout)