Skip to content

Project Detail View Page (Full Lifecycle β€” View + Submit + Judge + Moderate)Β #20

@abhishek-nexgen-dev

Description

@abhishek-nexgen-dev

🧠 What are we building?

A complete Project Detail Page that is not just for viewing, but for:

  • πŸ“¦ Submission (Participant)
  • ⭐ Scoring (Judge)
  • πŸ›‘οΈ Moderation (Organizer/Admin)
  • πŸ“Š Evaluation tracking

πŸ‘‰ This is the core execution layer of hackathons/events


🎯 Goal

Build a fully functional, role-aware Project Page that:

  • shows complete project data
  • supports submission flow
  • supports judging & scoring
  • supports moderation
  • handles real-world workflows

🧠 Core Concept

Project Page = View + Actions + Evaluation + Moderation

πŸ—οΈ Route

/projects/:projectId

πŸ“¦ Page Layout

Header (Title + Status + Actions)
---------------------------------
Project Overview
---------------------------------
Team Info
---------------------------------
Submission Details
---------------------------------
Attachments / Links
---------------------------------
Scoring & Feedback (Judge)
---------------------------------
Moderation Panel (Organizer/Admin)
---------------------------------
Activity / Timeline

πŸ”Ή 1. Header

Show:

  • Project Title

  • Status Badge:

    • Draft
    • Submitted
    • Under Review
    • Approved
    • Rejected
  • Event Name + Type

  • Action Buttons (role-based)


πŸ”Ή 2. Project Overview

  • Description
  • Tech Stack (skills)
  • GitHub Repo
  • Live Demo URL

πŸ”Ή 3. Team Section

  • Team Name / Solo
  • Members list

πŸ”Ή 4. Submission Details

  • Submission Status
  • Submitted At
  • Last Updated
  • Version (draft vs final)

πŸ”Ή 5. Attachments

  • Screenshots
  • Docs
  • Links

⭐ 6. Scoring System (CRITICAL)


Only for Judges


Scoring UI

Fields:

Innovation (0–10)
Technical Complexity (0–10)
Design / UX (0–10)
Impact (0–10)

Total Score

Auto calculated

Feedback

  • text area for judge comments

Submit Score

  • button β†’ submit score

API

POST /api/v1/projects/:id/score

Data Model (Example)

Score {
  projectId
  judgeId

  innovation
  technical
  design
  impact

  totalScore

  feedback

  submittedAt
}

Rules

  • judge can score only assigned projects
  • score editable until deadline
  • multiple judges β†’ average score

πŸ§‘β€πŸ’» 7. Participant Actions


  • Edit Project (only draft)
  • Delete Project (only draft)
  • Submit Project

Submit Flow

Click Submit
 ↓
Validation check
 ↓
Status β†’ submitted
 ↓
Lock editing

API

POST /api/v1/projects/:id/submit

🏒 8. Organizer Moderation Panel


Actions

  • View all submissions
  • Approve / Reject project
  • Delete inappropriate project

API

POST /api/v1/projects/:id/approve
POST /api/v1/projects/:id/reject
DELETE /api/v1/projects/:id

πŸ›‘οΈ 9. Admin Controls


  • Delete project
  • Suspend project
  • Ban user

πŸ“Š 10. Score Aggregation


Show:

  • average score
  • number of judges
  • ranking (optional)

avgScore = totalScore / numberOfJudges

πŸ“œ 11. Activity Timeline


Show events:

  • project created
  • edited
  • submitted
  • scored
  • approved/rejected


βš™οΈ API (FULL)


Get Project

GET /api/v1/projects/:id

Submit Project

POST /api/v1/projects/:id/submit

Score Project

POST /api/v1/projects/:id/score

Moderate

POST /api/v1/projects/:id/approve
POST /api/v1/projects/:id/reject
DELETE /api/v1/projects/:id

πŸ” Permissions (VERY IMPORTANT)


Participant β†’ own project only
Organizer β†’ community projects
Judge β†’ assigned projects
Admin β†’ full access

🧩 States


Loading

  • skeleton

Error

  • retry

Not Found

  • project not found

Unauthorized

  • access denied

πŸ›‘οΈ Edge Cases


  • scoring after deadline
  • duplicate scoring
  • editing after submission
  • unauthorized judge access
  • project deleted mid-view

🎨 UI Requirements


  • clean sections
  • clear scoring inputs
  • responsive layout
  • action buttons visible by role
  • status badges

πŸ§ͺ Test Cases


  • participant submit works
  • judge scoring works
  • multiple judges handled
  • organizer moderation works
  • admin actions work
  • permissions enforced
  • timeline updates

πŸ“‚ File Structure

/projects/[id]
  β”œβ”€β”€ page.tsx
  β”œβ”€β”€ components/
  β”‚    β”œβ”€β”€ Header.tsx
  β”‚    β”œβ”€β”€ Overview.tsx
  β”‚    β”œβ”€β”€ Team.tsx
  β”‚    β”œβ”€β”€ Submission.tsx
  β”‚    β”œβ”€β”€ ScorePanel.tsx
  β”‚    β”œβ”€β”€ ModerationPanel.tsx
  β”‚    └── Timeline.tsx

πŸš€ Future Enhancements


  • live scoring updates
  • judge discussion panel
  • AI scoring assistance
  • leaderboard

βœ… Done When


  • full project lifecycle handled
  • scoring system works
  • moderation works
  • permissions enforced
  • UI responsive

🎯 Priority

πŸ”₯ CRITICAL β€” Core evaluation system


🏁 Final Note

This page is the heart of your platform.

This is where projects are built, judged, and validated.

πŸ‘‰ Build it like a real hackathon system, not just a detail page.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions