Skip to content

feat: implement project detail page with lifecycle, scoring, and moderation#28

Open
Pranavkale11 wants to merge 1 commit intoNexGenStudioDev:masterfrom
Pranavkale11:feat/project-detail-page
Open

feat: implement project detail page with lifecycle, scoring, and moderation#28
Pranavkale11 wants to merge 1 commit intoNexGenStudioDev:masterfrom
Pranavkale11:feat/project-detail-page

Conversation

@Pranavkale11
Copy link
Copy Markdown
Contributor

@Pranavkale11 Pranavkale11 commented Apr 25, 2026

#20
Project Detail Page (Full Lifecycle Support)
Implemented a production-ready project detail page that supports the complete lifecycle of a hackathon project, including submission, scoring, moderation, and evaluation tracking.

Features
Role-Based System

Participant → submit, edit, delete (draft only)
Judge → score assigned projects
Organizer/Admin → approve, reject, delete projects

Project View
Overview (description, tech stack, links)
Team details
Submission metadata
Attachments and resources

Submission Flow
Draft → Submitted transition
Validation before submission
Editing locked after submission

Scoring System (Judge)
Innovation, Technical, Design, Impact (0–10)
Auto-calculated total score
Feedback support
Prevents duplicate scoring
Editable before deadline

Moderation Panel
Approve / Reject / Delete project
Restricted to organizer/admin roles
Enforces lifecycle rules

Score Aggregation
Average score calculation
Multi-judge support

Timeline
Tracks key events:
Created
Edited
Submitted
Scored
Approved / Rejected

Key Fixes (Based on Review)
Enforced lifecycle rules:
Scoring only allowed after submission
Moderation only allowed after submission
Added API-level validation to prevent invalid actions
Fixed deleted project handling
Resolved minor UI issues (timeline rendering)

Testing
Test using:
/projects/project-nebula?role=participant
/projects/project-orbit?role=judge
/projects/project-orbit?role=organizer
/projects/project-orbit?role=admin

Note
There are pre-existing TypeScript/build issues in unrelated modules (auth/UI).
These were not modified in this PR.

Happy to address them in a separate PR if required.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces a new project detail page, including components for project overview, moderation, scoring, and activity tracking, along with a mock API for state management. The review identified several security and robustness issues: potential XSS vulnerabilities in URL rendering, a lack of deduplication for the tech stack input, potential runtime errors when formatting invalid dates, and a need for better handling of NaN values in the score clamping logic.

Comment thread src/projects/[id]/components/Overview.tsx
Comment thread src/projects/[id]/components/Overview.tsx
Comment thread src/projects/[id]/components/Overview.tsx
Comment thread src/projects/[id]/components/Submission.tsx
Comment thread src/projects/[id]/components/ScorePanel.tsx
@abhishek-nexgen-dev
Copy link
Copy Markdown
Member

@Pranavkale11 please fix issue suggest by ai first

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.

2 participants