Skip to content

Dev#7

Open
Vijaybabu9194 wants to merge 4 commits intomainfrom
dev
Open

Dev#7
Vijaybabu9194 wants to merge 4 commits intomainfrom
dev

Conversation

@Vijaybabu9194
Copy link
Collaborator

Pull Request Template

Description

Please include a summary of the change and which issue is fixed.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

Copilot AI review requested due to automatic review settings February 15, 2026 15:54
Copy link

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

This pull request adds a College Distribution section to the admin dashboard with hardcoded college registration counts. The PR also includes a new QR code image file for SRKR college payments.

Changes:

  • Added a new "College Distribution" section displaying participant counts for six colleges
  • Included hardcoded data showing 145 participants from Shri Vishnu Engineering College for Women, 102 from SRKR Engineering College, and smaller numbers from other institutions
  • Added public/srkr-qr.webp image file (referenced in existing payment form)

Reviewed changes

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

File Description
src/admin/Dashboard.tsx Adds College Distribution section with hardcoded college names and participant counts; includes extra blank lines
public/srkr-qr.webp New QR code image file for SRKR college payment processing

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

Comment on lines +81 to +88
{Object.entries({
"Shri Vishnu Engineering College for Women": 145,
"Vishnu Institute of Technology": 1,
"Swarnandhra College of Engineering and Technology": 2,
"SRKR Engineering College": 102,
"Sasi Institute of Technology": 1,
"Adithya Engineering College": 4,
}).map(([college, count]) => (
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

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

Hardcoded college distribution data will become stale and inaccurate as new participants register. Similar to branchDistribution and yearDistribution which are fetched dynamically from the stats API, the college distribution should also be retrieved from the backend. Consider adding a collegeDistribution field to the DashboardStats interface in src/api/admin.ts and fetching this data from the /admin/dashboard/stats endpoint.

Suggested change
{Object.entries({
"Shri Vishnu Engineering College for Women": 145,
"Vishnu Institute of Technology": 1,
"Swarnandhra College of Engineering and Technology": 2,
"SRKR Engineering College": 102,
"Sasi Institute of Technology": 1,
"Adithya Engineering College": 4,
}).map(([college, count]) => (
{Object.entries(stats?.collegeDistribution ?? {}).map(([college, count]) => (

Copilot uses AI. Check for mistakes.
Comment on lines +77 to +102
<div className="mb-8">
<h2 className="text-xl font-semibold mb-4">College Distribution</h2>

<div className="grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-6 gap-4">
{Object.entries({
"Shri Vishnu Engineering College for Women": 145,
"Vishnu Institute of Technology": 1,
"Swarnandhra College of Engineering and Technology": 2,
"SRKR Engineering College": 102,
"Sasi Institute of Technology": 1,
"Adithya Engineering College": 4,
}).map(([college, count]) => (
<div
key={college}
className="bg-pink-100 rounded-lg p-4 flex flex-col items-center shadow hover:scale-105 transition"
>
<span className="text-sm text-pink-600 text-center font-medium">
{college}
</span>
<span className="text-2xl font-bold text-pink-700 mt-2">
{count}
</span>
</div>
))}
</div>
</div>
Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

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

The College Distribution section is not using data from the stats object that's fetched from the API. This means the data shown will be static and won't reflect the actual current state of registrations. Like the Branch Distribution section below it (lines 104-118), this should map over dynamic data from the stats object.

Copilot uses AI. Check for mistakes.
Comment on lines +30 to +31


Copy link

Copilot AI Feb 15, 2026

Choose a reason for hiding this comment

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

Extra blank lines added without purpose. Consider removing these unnecessary blank lines to maintain code cleanliness.

Suggested change

Copilot uses AI. Check for mistakes.
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.

4 participants