Skip to content

Commit c459273

Browse files
authored
Changes (#18)
* update * max members and minor changes * update * max members and minor changes * conflict * :P * conflict * github linkedin addded on team members (evaluators page) * final * format * changes
1 parent 955083b commit c459273

10 files changed

Lines changed: 63 additions & 16 deletions

File tree

app/api/evaluator/teams/route.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export async function GET(request: NextRequest) {
133133

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

136-
// FIXED: Added social media and resume parameters to the model projection selector
136+
137137
const users = await User.find({ uid: { $in: uniqueUids } })
138138
.select('uid name organisation github_link linkedin_link resume_link');
139139

@@ -156,7 +156,6 @@ export async function GET(request: NextRequest) {
156156
role: m.role,
157157
name: user?.name || "Unknown User",
158158
organisation: user?.organisation || "N/A",
159-
160159
github_link: user?.github_link || null,
161160
linkedin_link: user?.linkedin_link || null,
162161
resume_link: user?.resume_link || null,

components/registration/dashboard-container.tsx

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

10841084
{/* Right Column - 1/3 width */}
10851085
<div className="flex flex-col gap-[24px]">
1086-
1087-
1088-
10891086
{/* Quick Actions Card */}
10901087
{team && teamStatus !== "none" && (
10911088
<QuickActionsCard

components/registration/discover-container.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -852,11 +852,11 @@ export function DiscoverContainer() {
852852
)}
853853
{!user?.hasSolvedChallenge && (
854854
<span className="px-[8px] py-[2px] bg-red-500/10 border border-red-500/20 rounded-[6px] text-[11px] text-red-400 font-semibold tracking-wide">
855-
🔴 Unverified Noob
855+
🔴 Bro wasn’t able even able to find a damn flag
856856
</span>
857857
)}
858858
</div>
859-
859+
860860
<div className="flex items-center gap-[12px]">
861861
<span className="font-['Google_Sans_Flex',sans-serif] text-[12px] text-white opacity-60">
862862
{team.currentMembers}/{team.maxMembers}{" "}

components/registration/profile-container.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ export function ProfileContainer() {
311311
className="text-[14px] font-semibold text-white cursor-pointer"
312312
style={{ fontFamily: "var(--font-body)" }}
313313
>
314-
Discoverable Profile
314+
Looking For Team
315315
</label>
316316
</div>
317317
<p
@@ -398,7 +398,7 @@ export function ProfileContainer() {
398398
<FormTextarea
399399
label="Bio"
400400
placeholder="Tell us about yourself..."
401-
required
401+
402402
value={profileData.bio}
403403
onChange={(e) =>
404404
setProfileData({ ...profileData, bio: e.target.value })

components/registration/registration-container.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1225,6 +1225,7 @@ export function RegistrationContainer({
12251225
</li>
12261226
<li>Maintain a friendly and inclusive environment</li>
12271227
<li>Professional behavior is expected at all times</li>
1228+
<li>Flag sharing is cheating.</li>
12281229
</ul>
12291230
</div>
12301231

components/registration/team-container.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -556,13 +556,12 @@ export function TeamContainer() {
556556
if (!response.ok) {
557557
throw new Error(data.message || `Failed to ${action} request`);
558558
}
559-
560-
setAlert({
561-
type: action === "accept" ? "success" : "info",
562-
message: data.message || `Request ${action}ed successfully`,
559+
toast({
560+
title: action === "accept" ? "Success" : "Rejected",
561+
description: `Request ${action === "decline" ? "declined" : "accepted"} successfully`,
562+
variant: action === "accept" ? "default" : "destructive",
563563
});
564-
setTimeout(() => setAlert(null), 3000);
565-
564+
566565
// Refresh team data and requests
567566
if (team.code) {
568567
const teamResponse = await fetch(API_ENDPOINTS.getTeam(team.code), {

components/registration/team-detail-view.tsx

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,57 @@ export function TeamDetailView({ team, onBack, onEvaluationSuccess, onVoteSucces
196196
<div className="grid grid-cols-1 lg:grid-cols-3 gap-6 h-full">
197197
{/* Left Column: Voting / Evaluation */}
198198
<div className="lg:col-span-2 flex flex-col gap-6">
199+
{/* Submission Artifacts */}
200+
{/* <FormSection title="Submission Artifacts">
201+
<div className="flex flex-col gap-4">
202+
<div className="flex gap-4 flex-wrap">
203+
{team.videoURL && (
204+
<a
205+
href={team.videoURL}
206+
target="_blank"
207+
rel="noopener noreferrer"
208+
className="flex items-center gap-2 px-4 py-3 bg-red-600/10 text-red-400 border border-red-600/20 rounded-lg hover:bg-red-600/20 transition-colors"
209+
style={{ fontFamily: 'var(--font-body)' }}
210+
>
211+
<Youtube className="w-5 h-5" />
212+
Watch Video Pitch
213+
<ExternalLink className="w-3 h-3 ml-1 opacity-50" />
214+
</a>
215+
)}
216+
{team.submissionPDF ? (
217+
<a
218+
href={team.submissionPDF}
219+
target="_blank"
220+
rel="noopener noreferrer"
221+
className="flex items-center gap-2 px-4 py-3 bg-white/5 text-white border border-white/10 rounded-lg hover:bg-white/10 transition-colors"
222+
style={{ fontFamily: 'var(--font-body)' }}
223+
>
224+
<FileText className="w-5 h-5" />
225+
View Submission PDF
226+
<ExternalLink className="w-3 h-3 ml-1 opacity-50" />
227+
</a>
228+
) : (
229+
<div className="flex items-center gap-2 px-4 py-3 bg-white/5 border border-white/10 rounded-lg text-white/40 cursor-not-allowed">
230+
<FileText className="w-5 h-5 opacity-50" />
231+
No PDF Submission
232+
</div>
233+
)}
234+
{team.anyOtherLink && (
235+
<a
236+
href={team.anyOtherLink}
237+
target="_blank"
238+
rel="noopener noreferrer"
239+
className="flex items-center gap-2 px-4 py-3 bg-blue-600/10 text-blue-400 border border-blue-600/20 rounded-lg hover:bg-blue-600/20 transition-colors"
240+
style={{ fontFamily: 'var(--font-body)' }}
241+
>
242+
<ExternalLink className="w-5 h-5" />
243+
Additional Link
244+
</a>
245+
)}
246+
</div>
247+
</div>
248+
</FormSection> */}
249+
199250
{/* Official Evaluation / Community Vote Form*/}
200251
<FormSection title={isAssigned ? "Official Evaluation" : "Community Vote"}>
201252
<div className="flex flex-col gap-6">

components/registration/user-profile-modal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export function UserProfileModal({
141141
<h3 className="font-['Google_Sans_Flex',sans-serif] text-[20px] text-white">{userDetails.name}</h3>
142142
{!userDetails.hasSolvedChallenge && (
143143
<span className="px-[8px] py-[2px] bg-red-500/10 border border-red-500/20 rounded-[6px] text-[11px] text-red-400 font-semibold tracking-wide">
144-
🔴 Unverified Noob
144+
🔴 Bro wasn’t able even able to find a damn flag
145145
</span>
146146
)}
147147
</div>

public/favicon.ico

5.15 MB
Binary file not shown.

public/favicon2.ico

15 KB
Binary file not shown.

0 commit comments

Comments
 (0)