From 50090f374c14141ae23b9f8607233851ad38111a Mon Sep 17 00:00:00 2001 From: "Builder.io" Date: Sat, 18 Oct 2025 02:44:40 +0000 Subject: [PATCH] Add connections and endorsements sections to main column cgen-0a3b7a6d7d834d1a85c47c7f39ab65c6 --- client/pages/Network.tsx | 71 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 69 insertions(+), 2 deletions(-) diff --git a/client/pages/Network.tsx b/client/pages/Network.tsx index 97487be7..c3cb04c3 100644 --- a/client/pages/Network.tsx +++ b/client/pages/Network.tsx @@ -239,8 +239,39 @@ export default function Network() { - {/* Discover People */} -
+ {/* Connections + Discover + Endorsements */} +
+ + + My connections + People you’re connected with + + + {connections.map((c) => { + const p = (c as any).user_profiles || {}; + const display = p.full_name || p.username || c.connection_id; + return ( +
+
+ + + {(display || "U")[0]} + +
+
{display}
+
Connected
+
+
+ +
+ ); + })} + {connections.length === 0 && ( +
No connections yet.
+ )} +
+
+ Discover People @@ -294,6 +325,42 @@ export default function Network() { )} + + + + Endorsements + Recognize skills of your peers + + + {connections.slice(0, 6).map((c) => { + const p = (c as any).user_profiles || {}; + const display = p.full_name || p.username || c.connection_id; + return ( +
+
+ + + {(display || "U")[0]} + +
{display}
+
+
+ {(["Leadership","Systems","Frontend","Backend"] as const).map((skill) => ( + + ))} +
+
+ ); + })} + {endorsements.length > 0 && ( +
+ You have received {endorsements.length} endorsements. +
+ )} +
+