refactor(community): rename Community Connections → Community Ecology
Simplify the feature to pure discovery (filter by topic, see matching members, copy Slack handle). Drop the connection request/confirm flow entirely — Connection model, 7 API endpoints, useConnections composable, and TagInput component deleted. - Rename communityConnections → communityEcology in schema, API, pages - Delete legacy fields: offering, lookingFor, peerSupport - New /ecology page, /api/ecology/suggestions, community-ecology.patch - Nav: "Connections" → "Ecology", remove pending-count badge - Fix auth/member.get.js missing craftTags + communityEcology - Add community_ecology_updated activity log type - Expose slackHandle conditionally when offerPeerSupport is true - Add migration script at scripts/migrate-to-ecology.js (run before deploy)
This commit is contained in:
parent
9577929e0d
commit
0b3896d984
33 changed files with 1002 additions and 2635 deletions
|
|
@ -1,32 +0,0 @@
|
|||
export const useConnections = () => {
|
||||
const getSuggestions = (params = {}) =>
|
||||
$fetch('/api/connections/suggestions', { params })
|
||||
|
||||
const getMyConnections = () =>
|
||||
$fetch('/api/connections')
|
||||
|
||||
const requestConnection = (recipientId) =>
|
||||
$fetch('/api/connections', { method: 'POST', body: { recipientId } })
|
||||
|
||||
const confirmConnection = (id) =>
|
||||
$fetch(`/api/connections/${id}/confirm`, { method: 'POST' })
|
||||
|
||||
const hideConnection = (id) =>
|
||||
$fetch(`/api/connections/${id}/hide`, { method: 'POST' })
|
||||
|
||||
const withdrawConnection = (id) =>
|
||||
$fetch(`/api/connections/${id}/withdraw`, { method: 'POST' })
|
||||
|
||||
const getPendingCount = () =>
|
||||
$fetch('/api/connections/pending-count')
|
||||
|
||||
return {
|
||||
getSuggestions,
|
||||
getMyConnections,
|
||||
requestConnection,
|
||||
confirmConnection,
|
||||
hideConnection,
|
||||
withdrawConnection,
|
||||
getPendingCount,
|
||||
}
|
||||
}
|
||||
6
app/composables/useEcology.js
Normal file
6
app/composables/useEcology.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
export const useEcology = () => {
|
||||
const getSuggestions = (params = {}) =>
|
||||
$fetch('/api/ecology/suggestions', { params })
|
||||
|
||||
return { getSuggestions }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue