diff --git a/app/components/AppNavigation.vue b/app/components/AppNavigation.vue index 3095f8b..69fd95c 100644 --- a/app/components/AppNavigation.vue +++ b/app/components/AppNavigation.vue @@ -34,13 +34,8 @@ :to="item.path" :class="{ active: isActive(item.path) }" @click="handleNavigate" + >{{ item.label }} - {{ item.label }} - - @@ -134,21 +129,7 @@ const emit = defineEmits(["navigate"]); const route = useRoute(); const { isAuthenticated, logout } = useAuth(); -const { getPendingCount } = useConnections(); const isDev = import.meta.dev; -const pendingCount = ref(0); - -// Fetch pending connection count for authenticated users -onMounted(async () => { - if (isAuthenticated.value) { - try { - const data = await getPendingCount(); - pendingCount.value = data.count || 0; - } catch { - // Silently ignore — badge is non-critical - } - } -}); const handleNavigate = () => { if (props.isMobile) { @@ -192,7 +173,7 @@ const youItems = [ const exploreItems = [ { label: "Events", path: "/events" }, { label: "Members", path: "/members" }, - { label: "Connections", path: "/connections" }, + { label: "Ecology", path: "/ecology" }, { label: "Wiki", path: "https://wiki.ghostguild.org" }, { label: "About", path: "/about" }, ]; @@ -298,19 +279,4 @@ const exploreItems = [ .sidebar-meta a { color: var(--candle-dim); } - -.nav-badge { - display: inline-flex; - align-items: center; - justify-content: center; - min-width: 16px; - height: 16px; - padding: 0 4px; - margin-left: 6px; - font-size: 10px; - line-height: 1; - color: var(--bg); - background: var(--candle); - border-radius: 0; -} diff --git a/app/components/TagInput.vue b/app/components/TagInput.vue deleted file mode 100644 index ab77fcb..0000000 --- a/app/components/TagInput.vue +++ /dev/null @@ -1,104 +0,0 @@ - - - - - - - diff --git a/app/composables/useConnections.js b/app/composables/useConnections.js deleted file mode 100644 index 6bf3833..0000000 --- a/app/composables/useConnections.js +++ /dev/null @@ -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, - } -} diff --git a/app/composables/useEcology.js b/app/composables/useEcology.js new file mode 100644 index 0000000..ab7eec6 --- /dev/null +++ b/app/composables/useEcology.js @@ -0,0 +1,6 @@ +export const useEcology = () => { + const getSuggestions = (params = {}) => + $fetch('/api/ecology/suggestions', { params }) + + return { getSuggestions } +} diff --git a/app/pages/admin/members/[id].vue b/app/pages/admin/members/[id].vue index cd27787..ff3777b 100644 --- a/app/pages/admin/members/[id].vue +++ b/app/pages/admin/members/[id].vue @@ -143,12 +143,6 @@ {{ member.notifications?.updates !== false ? "On" : "Off" }} -
diff --git a/app/pages/connections.vue b/app/pages/connections.vue index b8ee40d..0b5f879 100644 --- a/app/pages/connections.vue +++ b/app/pages/connections.vue @@ -1,821 +1,4 @@ - -Loading connections...
-No suggestions right now
-
- Add cooperative topics to your
-
- You don't have any connections yet. Use the suggestions above to get started. -
-Loading connections...
-Loading ecology...
+No matches yet
+
+ Add cooperative topics to your
+
Loading ecology...
+Loading your profile...
Please sign in to access your profile settings.
@@ -32,263 +30,227 @@
subtitle="How you appear to other members"
>
Loading your profile...