Skip to content

Conversation

@Ayaanshaikh12243
Copy link
Contributor

Copilot AI review requested due to automatic review settings January 26, 2026 20:46
@vercel
Copy link

vercel bot commented Jan 26, 2026

@Ayaanshaikh12243 is attempting to deploy a commit to the Darshan Rajput's projects Team on Vercel.

A member of the Team first needs to authorize it.

@Ayaanshaikh12243
Copy link
Contributor Author

@Darshan3690 done sir i have also added the direct link for leetcode for the users it will help them at the same time it will attrct them i thought please check and merge thank you sir

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Implements Issue #269 by adding a new “Coding Practice Hub” page and wiring it into the primary navigation.

Changes:

  • Added /practice-hub page with daily challenge, curated problems list, filters, and basic progress stats UI.
  • Added “Practice Hub” entry to the global navbar.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 5 comments.

File Description
app/practice-hub/page.tsx Introduces the new Practice Hub page UI, data, filtering, and stats rendering.
app/components/Navbar.tsx Adds navigation link to the new Practice Hub route.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines 346 to 351
<h2 className="text-2xl font-bold">Today&apos;s Coding Challenge</h2>
</div>
<div className="bg-white/10 backdrop-blur rounded-xl p-6">
<h3 className="text-xl font-semibold mb-2">{dailyChallenges[0].problem.title}</h3>
<p className="text-white/90 mb-4">{dailyChallenges[0].problem.description}</p>
<div className="flex flex-wrap gap-3 items-center">
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This section is labeled "Today’s Coding Challenge" but always renders dailyChallenges[0]. That will show the wrong challenge once the list changes or the date advances. Select the entry based on the current date (with a sensible fallback when none matches).

Copilot uses AI. Check for mistakes.
Comment on lines 3 to 6
import React, { useState, useMemo } from "react";
import Link from "next/link";
import { motion } from "framer-motion";
import { useUser } from "@clerk/nextjs";
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Both the default React import and Link are unused in this file, which will fail the current Next/TypeScript ESLint config (no-unused-vars). Remove the unused imports (e.g., import only the hooks from react) or switch relevant internal navigation to use Link.

Suggested change
import React, { useState, useMemo } from "react";
import Link from "next/link";
import { motion } from "framer-motion";
import { useUser } from "@clerk/nextjs";
import { useState, useMemo } from "react";
import { motion } from "framer-motion";

Copilot uses AI. Check for mistakes.
Comment on lines 271 to 273
export default function PracticeHubPage() {
const { user } = useUser();
const [selectedDifficulty, setSelectedDifficulty] = useState<"all" | "easy" | "medium" | "hard">("all");
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

const { user } = useUser(); declares user but it isn't used anywhere, which will fail lint/build under the current ESLint rules. Either remove the hook or use the user data (e.g., to load per-user progress).

Copilot uses AI. Check for mistakes.
onClick={() => setSelectedDifficulty(level as "all" | "easy" | "medium" | "hard")}
className={`px-4 py-2 rounded-lg font-semibold transition-all ${
selectedDifficulty === level
? `${difficultyColors[level as keyof typeof difficultyColors]} scale-105`
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The difficulty button styling indexes difficultyColors[level], but level can be "all". At runtime this yields undefined classes, so the selected "All" state won’t be styled correctly. Handle the "all" case explicitly (e.g., separate styles or a dedicated entry in the map).

Suggested change
? `${difficultyColors[level as keyof typeof difficultyColors]} scale-105`
? `${level === "all" ? "bg-blue-500 text-white" : difficultyColors[level as keyof typeof difficultyColors]} scale-105`

Copilot uses AI. Check for mistakes.
<div className="relative">
<input
type="text"
placeholder="Search problems by title or topic..."
Copy link

Copilot AI Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The search placeholder says "Search problems by title or topic...", but the filter only checks title and description (not topics). Either update the placeholder text or include problem.topics in the search match.

Suggested change
placeholder="Search problems by title or topic..."
placeholder="Search problems by title or description..."

Copilot uses AI. Check for mistakes.
@Darshan3690 Darshan3690 added the ECWoC26 contributors start submitting pull requests label Jan 27, 2026
@vercel
Copy link

vercel bot commented Jan 27, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
the-dev-pocket-961a Error Error Jan 27, 2026 1:57pm

@Darshan3690
Copy link
Owner

resolve the conflicts

@Ayaanshaikh12243
Copy link
Contributor Author

@Darshan3690 please check sir

@Darshan3690 Darshan3690 merged commit 8479275 into Darshan3690:main Jan 27, 2026
2 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ECWoC26-INVALID ECWoC26 contributors start submitting pull requests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants