From 23a64cf28091842cc560f0f5669200d7167b6a36 Mon Sep 17 00:00:00 2001 From: michelleyeoh Date: Sun, 1 Mar 2026 10:27:04 -0800 Subject: [PATCH 1/3] hackers choice done --- app/(api)/_utils/mongodb/mongoClient.mjs | 14 ++- .../HomeJudging/HackersChoiceAwards.tsx | 31 ++++- .../hackers-choice/hackers_choice_mascots.svg | 110 ++++++++++++++++++ 3 files changed, 153 insertions(+), 2 deletions(-) create mode 100644 public/hackers/hackers-choice/hackers_choice_mascots.svg diff --git a/app/(api)/_utils/mongodb/mongoClient.mjs b/app/(api)/_utils/mongodb/mongoClient.mjs index 615b4bca..d24cf7ad 100644 --- a/app/(api)/_utils/mongodb/mongoClient.mjs +++ b/app/(api)/_utils/mongodb/mongoClient.mjs @@ -14,7 +14,19 @@ export async function getClient() { } if (!cachedPromise) { - const client = new MongoClient(uri); + const client = new MongoClient(uri, { + // Connection pooling + maxPoolSize: 5, + minPoolSize: 1, + maxIdleTimeMS: 30000, + waitQueueTimeoutMS: 5000, + + // Prevent connection overhead + retryWrites: true, + serverSelectionTimeoutMS: 5000, + socketTimeoutMS: 45000, + }); + cachedPromise = client .connect() .then((connectedClient) => { diff --git a/app/(pages)/(hackers)/_components/HomeJudging/HackersChoiceAwards.tsx b/app/(pages)/(hackers)/_components/HomeJudging/HackersChoiceAwards.tsx index 34a3edad..c5a78647 100644 --- a/app/(pages)/(hackers)/_components/HomeJudging/HackersChoiceAwards.tsx +++ b/app/(pages)/(hackers)/_components/HomeJudging/HackersChoiceAwards.tsx @@ -1,3 +1,32 @@ +import Image from 'next/image'; +import hackers_choice_mascots from 'public/hackers/hackers-choice/hackers_choice_mascots.svg'; +import TextCard from '../HomeHacking/_components/TextCard'; + export default function HackerChoiceAward() { - return
Hacker Choice Award
; + return ( +
+
+
+ cow and frog hackdavis mascots cheering +
+
+ +
+
+
+ ); } diff --git a/public/hackers/hackers-choice/hackers_choice_mascots.svg b/public/hackers/hackers-choice/hackers_choice_mascots.svg new file mode 100644 index 00000000..f2ff5325 --- /dev/null +++ b/public/hackers/hackers-choice/hackers_choice_mascots.svg @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + From 827b266f2448c2aa31f5ff2707ef6224c68e64ed Mon Sep 17 00:00:00 2001 From: michelleyeoh Date: Sun, 1 Mar 2026 10:28:15 -0800 Subject: [PATCH 2/3] removed mongo client change --- app/(api)/_utils/mongodb/mongoClient.mjs | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/app/(api)/_utils/mongodb/mongoClient.mjs b/app/(api)/_utils/mongodb/mongoClient.mjs index d24cf7ad..8b380837 100644 --- a/app/(api)/_utils/mongodb/mongoClient.mjs +++ b/app/(api)/_utils/mongodb/mongoClient.mjs @@ -14,18 +14,7 @@ export async function getClient() { } if (!cachedPromise) { - const client = new MongoClient(uri, { - // Connection pooling - maxPoolSize: 5, - minPoolSize: 1, - maxIdleTimeMS: 30000, - waitQueueTimeoutMS: 5000, - - // Prevent connection overhead - retryWrites: true, - serverSelectionTimeoutMS: 5000, - socketTimeoutMS: 45000, - }); + const client = new MongoClient(uri); cachedPromise = client .connect() From 92179891c54835a7100efb70e7c2fff40e468b6b Mon Sep 17 00:00:00 2001 From: michelleyeoh Date: Sun, 1 Mar 2026 10:28:32 -0800 Subject: [PATCH 3/3] removed space --- app/(api)/_utils/mongodb/mongoClient.mjs | 1 - 1 file changed, 1 deletion(-) diff --git a/app/(api)/_utils/mongodb/mongoClient.mjs b/app/(api)/_utils/mongodb/mongoClient.mjs index 8b380837..615b4bca 100644 --- a/app/(api)/_utils/mongodb/mongoClient.mjs +++ b/app/(api)/_utils/mongodb/mongoClient.mjs @@ -15,7 +15,6 @@ export async function getClient() { if (!cachedPromise) { const client = new MongoClient(uri); - cachedPromise = client .connect() .then((connectedClient) => {