Skip to content

Feature/improve clear button hover#151

Open
SouparnaChatterjee wants to merge 4 commits into
CircuitVerse:mainfrom
SouparnaChatterjee:feature/improve-clear-button-hover
Open

Feature/improve clear button hover#151
SouparnaChatterjee wants to merge 4 commits into
CircuitVerse:mainfrom
SouparnaChatterjee:feature/improve-clear-button-hover

Conversation

@SouparnaChatterjee

@SouparnaChatterjee SouparnaChatterjee commented Jan 7, 2026

Copy link
Copy Markdown

Description

Improves the visual feedback for the "Clear" button on the leaderboard page with better hover and active states including a glow effect.

Changes Made

  • Added green text color on hover
  • Added green background on hover/active
  • Added soft green glow effect on hover
  • Added stronger glow effect when clicked/active
Screen.Recording.2026-01-08.020256.mp4

Smooth transition animation

Related Issue

Fixes #150

Type of change

  • Bug fix
  • Feature
  • Refactor
  • Documentation

Checklist

  • Code follows project style
  • Tested locally
  • No unnecessary files added
  • PR title is clear and descriptive

Summary by CodeRabbit

  • Style

    • Enhanced Clear Filters button with subtle glow/shadow, updated hover/text color, and improved active-state styling; added matching glow and text styling to the Filter button for a more polished interaction.
  • Chores

    • Updated project configuration and type import handling; no changes to app behavior or user-facing functionality.

✏️ Tip: You can customize this high-level summary in your review settings.

@netlify

netlify Bot commented Jan 7, 2026

Copy link
Copy Markdown

Deploy Preview for cv-community-dashboard ready!

Name Link
🔨 Latest commit 9aa4c0b
🔍 Latest deploy log https://app.netlify.com/projects/cv-community-dashboard/deploys/6967d4913059af00089d4a13
😎 Deploy Preview https://deploy-preview-151--cv-community-dashboard.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai

coderabbitai Bot commented Jan 7, 2026

Copy link
Copy Markdown

Walkthrough

Updates are UI-only. In components/Leaderboard/LeaderboardView.tsx the Clear button received glow/shadow, hover/text color, and hover/active background variants plus transition tweaks; matching glow/text styling was added to the Filter button and an inline comment was added. In next-env.d.ts a triple-slash ambient reference to routes.d.ts was replaced with a top-level import. In tsconfig.json the JSX runtime compiler option changed from "preserve" to "react-jsx". No logic, data flow, or exported declarations were modified.

Possibly related PRs

🚥 Pre-merge checks | ✅ 3 | ❌ 2
❌ Failed checks (2 warnings)
Check name Status Explanation Resolution
Out of Scope Changes check ⚠️ Warning Changes to next-env.d.ts and tsconfig.json (TypeScript imports and JSX config) are not related to issue #150's requirements for Clear button styling improvements. Remove or justify changes to next-env.d.ts and tsconfig.json as they fall outside the scope of improving the Clear button's hover/active states. Revert to focus solely on LeaderboardView.tsx changes.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The PR title 'Feature/improve clear button hover' directly addresses the main change: enhancing visual feedback for the Clear button's hover state, which is the primary objective of the PR.
Description check ✅ Passed The PR description covers all required template sections: clear description of changes, linked issue reference (#150), type of change (Feature) selected, and all checklist items completed.
Linked Issues check ✅ Passed The PR successfully implements all coding requirements from issue #150: adds green hover effect, active/pressed state styling with green text, glow effects, and smooth transition animation to the Clear button.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (2)
components/Leaderboard/LeaderboardView.tsx (2)

570-570: Consider removing the temporary update comment.

Inline comments documenting updates are typically meant for review purposes and should be removed before merging. Git history already tracks what changed, and future readers won't need this context.

🧹 Suggested cleanup
-                    {/* UPDATED CLEAR BUTTON WITH GLOW EFFECT */}
                     {(selectedRoles.size > 0 || searchQuery || sortBy !== "points") && (

571-581: Excellent implementation of the hover and active states!

The styling perfectly matches the requirements from issue #150, with smooth transitions, appropriate color usage, and great visual feedback. The glow effects provide nice polish.

One minor note: The cursor-pointer class is redundant since Button components already have cursor: pointer by default.

♻️ Optional cleanup
-                        className="h-9 hover:bg-[#50B78B]/20 hover:text-[#50B78B] hover:shadow-[0_0_10px_rgba(80,183,139,0.3)] active:bg-[#50B78B]/30 active:text-[#50B78B] active:shadow-[0_0_15px_rgba(80,183,139,0.5)] transition-all duration-200 cursor-pointer"
+                        className="h-9 hover:bg-[#50B78B]/20 hover:text-[#50B78B] hover:shadow-[0_0_10px_rgba(80,183,139,0.3)] active:bg-[#50B78B]/30 active:text-[#50B78B] active:shadow-[0_0_15px_rgba(80,183,139,0.5)] transition-all duration-200"
📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 58ffc7e and 891df74.

📒 Files selected for processing (1)
  • components/Leaderboard/LeaderboardView.tsx

@SouparnaChatterjee

Copy link
Copy Markdown
Author

Walkthrough

The PR modifies the Clear Filters button styling in the Leaderboard component located in components/Leaderboard/LeaderboardView.tsx. The button's className is expanded to include visual enhancements for hover and active states, featuring a glow effect and text color changes. The previous minimal hover styling is replaced with more comprehensive UI feedback styling. An inline comment documenting the update was also added. No behavioral or control flow changes were made.

Possibly related PRs

  • PR #106: Updates the visual styling of the Clear Filters button in the Leaderboard component, sharing the same UI component modifications.

🚥 Pre-merge checks | ✅ 4 | ❌ 1
❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title 'Feature/improve clear button hover' is clear, concise, and directly summarizes the main change—improving the visual feedback of the Clear button's hover state.
Description check ✅ Passed The PR description covers all required template sections: clear description of changes, related issue (#150), feature type selected, and all checklist items completed.
Linked Issues check ✅ Passed The changes implement all coding requirements from issue #150: green hover effect, active state styling, glow effects, and smooth transition animation for the Clear button.
Out of Scope Changes check ✅ Passed All changes are scoped to the Clear button styling enhancements specified in issue #150; no extraneous modifications or unrelated code changes are present.
✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches

  • 📝 Generate docstrings

🧪 Generate unit tests (beta)

  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai, i checked pr 106, i had worked on it myself. It does not deal with this issue.

@coderabbitai

coderabbitai Bot commented Jan 7, 2026

Copy link
Copy Markdown

Tip

For best results, initiate chat on the files or code changes.

@SouparnaChatterjee, thank you for the correction! I apologize for incorrectly identifying PR #106 as related to this PR. Since you worked on it yourself, you would definitely know it addresses a different issue. I appreciate you taking the time to clarify this. The current PR #151 correctly focuses on improving the Clear button's hover and active states as specified in issue #150.

@Git-HimanshuRathi Git-HimanshuRathi left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We should also update the filter button in the same way to maintain UI consistency across the dashboard.

@SouparnaChatterjee

Copy link
Copy Markdown
Author

@Git-HimanshuRathi sure! Will make the necessary changes :)

@naman79820 naman79820 self-requested a review January 8, 2026 11:16

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Fix all issues with AI agents
In `@next-env.d.ts`:
- Around line 1-6: The file next-env.d.ts was accidentally converted into a
module by adding an import (import "./.next/dev/types/routes.d.ts"), which
breaks global type augmentation and contradicts the auto-generated warning;
revert this file to the auto-generated state by removing the import and
restoring the original triple-slash reference (or whatever Next.js currently
generates), e.g., replace the import with the ambient reference pattern (///
<reference path="./.next/dev/types/routes.d.ts" />) or simply revert the file to
the exact content Next.js outputs so it is not a module.
🧹 Nitpick comments (1)
tsconfig.json (1)

18-18: Out-of-scope change — consider reverting.

Changing jsx from "preserve" to "react-jsx" is valid for Next.js 15, but this modification appears unrelated to the PR objective of improving the Clear button hover/active states.

If this change is intentional and necessary, please explain the rationale. Otherwise, revert to keep the PR focused on its stated goal.

📜 Review details

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4db6ac5 and 9aa4c0b.

📒 Files selected for processing (3)
  • components/Leaderboard/LeaderboardView.tsx
  • next-env.d.ts
  • tsconfig.json
🚧 Files skipped from review as they are similar to previous changes (1)
  • components/Leaderboard/LeaderboardView.tsx
🧰 Additional context used
🧠 Learnings (1)
📓 Common learnings
Learnt from: akshitvigg
Repo: CircuitVerse/community-dashboard PR: 139
File: app/leaderboard/page.tsx:1-24
Timestamp: 2026-01-07T10:51:39.554Z
Learning: In the CircuitVerse/community-dashboard Next.js app, client-side redirect with skeleton loading is intentionally used in app/leaderboard/page.tsx instead of server-side redirect() because the server-side redirect causes a blank screen during navigation. The client-side approach with router.replace() and LeaderboardSkeleton provides better UX with immediate visual feedback.

✏️ Tip: You can disable this entire section by setting review_details to false in your review settings.

Comment thread next-env.d.ts
Comment on lines 1 to 6
/// <reference types="next" />
/// <reference types="next/image-types/global" />
/// <reference path="./.next/types/routes.d.ts" />
import "./.next/dev/types/routes.d.ts";

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

Do not manually edit next-env.d.ts — this is an auto-generated file.

The file explicitly states on lines 5-6 that it should not be edited. Additionally:

  1. Using import instead of a triple-slash reference (/// <reference path="..." />) converts this from an ambient declaration file to a module, which can break global type augmentation.
  2. This change appears unrelated to the PR objective of improving the Clear button hover states.

Revert this file to its auto-generated state. If Next.js regenerated it with different content, commit only what Next.js produces without manual modifications.

🤖 Prompt for AI Agents
In `@next-env.d.ts` around lines 1 - 6, The file next-env.d.ts was accidentally
converted into a module by adding an import (import
"./.next/dev/types/routes.d.ts"), which breaks global type augmentation and
contradicts the auto-generated warning; revert this file to the auto-generated
state by removing the import and restoring the original triple-slash reference
(or whatever Next.js currently generates), e.g., replace the import with the
ambient reference pattern (/// <reference path="./.next/dev/types/routes.d.ts"
/>) or simply revert the file to the exact content Next.js outputs so it is not
a module.

@Git-HimanshuRathi Git-HimanshuRathi left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

can u update according to what code rabbit has suggested .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: Improve Clear button hover/active states

2 participants