From 4e16848a6274ff64a19cfe90409fa2999b4ad503 Mon Sep 17 00:00:00 2001 From: MohitBareja16 Date: Mon, 1 Jun 2026 23:29:59 +0530 Subject: [PATCH 1/2] Refactor: Enforce strict Problem typings in problems/page.tsx --- frontend/src/app/problems/page.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/problems/page.tsx b/frontend/src/app/problems/page.tsx index dd816c9..2a3a083 100644 --- a/frontend/src/app/problems/page.tsx +++ b/frontend/src/app/problems/page.tsx @@ -1,6 +1,14 @@ import Link from "next/link" import { Search, Filter, Code2, Sparkles, ChevronRight } from "lucide-react" +interface Problem { + _id: string + slug: string + title: string + difficulty: "Easy" | "Medium" | "Hard" + category: string +} + // SSR fetching of problems async function fetchProblems() { const apiUrl = process.env.NEXT_PUBLIC_API_URL || "http://localhost:8080" @@ -91,7 +99,7 @@ export default async function ProblemsPage() {

) : ( - problems.map((problem: any) => ( + problems.map((problem: Problem) => ( Date: Mon, 1 Jun 2026 23:35:29 +0530 Subject: [PATCH 2/2] ci: fix frontend npm install by adding --legacy-peer-deps --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7d67663..7277b0e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: - name: Install Frontend Dependencies working-directory: ./frontend - run: npm install + run: npm install --legacy-peer-deps - name: Install Playwright Browsers working-directory: ./frontend