Skip to content

Commit 4771978

Browse files
authored
Frontend Changes (#7)
* update * max members and minor changes * update * max members and minor changes * fe changes * :P * conflict * github linkedin addded on team members (evaluators page) * conflict * final
1 parent c2011e5 commit 4771978

6 files changed

Lines changed: 736 additions & 415 deletions

File tree

app/api/evaluator/teams/route.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,9 @@ export async function GET(request: NextRequest) {
133133

134134
const uniqueUids = [...new Set([...teamMemberUids, ...evaluatorUids, ...voterUids])] as string[];
135135

136-
// Fetch users for members, evaluators, and voters
137-
const users = await User.find({ uid: { $in: uniqueUids } }).select('uid name organisation');
136+
// FIXED: Added social media and resume parameters to the model projection selector
137+
const users = await User.find({ uid: { $in: uniqueUids } })
138+
.select('uid name organisation github_link linkedin_link resume_link');
138139

139140
const userMap = new Map(users.map((u: any) => [u.uid, u]));
140141

@@ -154,7 +155,11 @@ export async function GET(request: NextRequest) {
154155
uid: m.uid,
155156
role: m.role,
156157
name: user?.name || "Unknown User",
157-
organisation: user?.organisation || "N/A"
158+
organisation: user?.organisation || "N/A",
159+
160+
github_link: user?.github_link || null,
161+
linkedin_link: user?.linkedin_link || null,
162+
resume_link: user?.resume_link || null,
158163
};
159164
});
160165

@@ -216,4 +221,4 @@ export async function GET(request: NextRequest) {
216221
console.error("Get evaluator teams error:", error);
217222
return createErrorResponse("Failed to retrieve teams", "SERVER_ERROR", 500);
218223
}
219-
}
224+
}

app/api/user/looking-for-team/route.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ export async function GET(request: NextRequest) {
106106
organisation: user.organisation || null,
107107
bio: user.bio || null,
108108
profile_picture: user.profile_picture || null,
109+
github_link: user.github_link || null,
110+
linkedin_link: user.linkedin_link || null,
109111
hasSolvedChallenge: user.hasSolvedChallenge || false,
110112
}));
111113

components/registration/dashboard-container.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1085,6 +1085,9 @@ export function DashboardContainer() {
10851085

10861086
{/* Right Column - 1/3 width */}
10871087
<div className="flex flex-col gap-[24px]">
1088+
1089+
1090+
10881091
{/* Quick Actions Card */}
10891092
{team && teamStatus !== "none" && (
10901093
<QuickActionsCard

0 commit comments

Comments
 (0)