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. +
+ )} +
+