Skip to content

Conversation

@codeunia-dev
Copy link
Owner

@codeunia-dev codeunia-dev commented Nov 15, 2025

  • Replace default rules with "Rules Coming Soon" empty state when no rules are provided
  • Replace default schedule with "Schedule Coming Soon" empty state when no schedule data exists
  • Replace default prize information with "Prize Details Coming Soon" empty state when no prize data is provided
  • Remove hardcoded placeholder prize categories and additional rewards sections
  • Simplify prize display to only show actual prize amount and details when available
  • Add conditional rendering to display empty states with appropriate icons and messaging
  • Improve UX by not showing misleading default content for incomplete hackathon listings

Authored by: @akshay0611

Summary by CodeRabbit

  • New Features
    • Expanded hackathon creation form to capture banner images, tags, and event type (Offline/Online/Hybrid)
    • Added audience targeting and organizer contact fields (name, email, phone)
    • New in-form editors for rules, schedule, and FAQ content
    • Integrated social media links section (LinkedIn, Twitter, Discord, Website, WhatsApp, Instagram)
    • Hackathon detail pages now display "Coming Soon" placeholders for unavailable content sections

…on" states

- Replace default rules with "Rules Coming Soon" empty state when no rules are provided
- Replace default schedule with "Schedule Coming Soon" empty state when no schedule data exists
- Replace default prize information with "Prize Details Coming Soon" empty state when no prize data is provided
- Remove hardcoded placeholder prize categories and additional rewards sections
- Simplify prize display to only show actual prize amount and details when available
- Add conditional rendering to display empty states with appropriate icons and messaging
- Improve UX by not showing misleading default content for incomplete hackathon listings
@vercel
Copy link

vercel bot commented Nov 15, 2025

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

Project Deployment Preview Comments Updated (UTC)
codeunia Building Building Preview Comment Nov 15, 2025 7:44am

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 15, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

The hackathon detail page replaces static default fallbacks with "Coming Soon" UI placeholders when data is missing for rules, schedule, prizes, and FAQ sections. The hackathon form component is significantly enhanced to capture richer metadata: event details, organizer contact info, social media links, and editable sections for rules, schedule, and FAQ entries.

Changes

Cohort / File(s) Summary
Hackathon Detail Page
app/hackathons/[id]/page.tsx
Replaced default UI blocks with conditional "Coming Soon" panels for rules, schedule, prizes, and FAQ when data is absent; refined social icons rendering to depend on data availability
Hackathon Form Enhancement
components/dashboard/HackathonForm.tsx
Expanded form data model with banner image, tags, event type, user types, organizer contact details, and social media links; added parsers for schedule and FAQ; introduced new UI sections for event type selection, target audience, organizer contact, social media links, and editable blocks for rules, schedule, and FAQ with add/remove row controls

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

  • HackathonForm.tsx requires careful attention to the new data model expansion, particularly the form data assembly logic, multi-value field handling (tags, user_types), and the nested organizer_contact structure
  • Validation flow changes and how required fields interact with the new UI sections should be verified
  • Parser functions (parseSchedule, parseFAQ) logic should be reviewed for correctness in normalizing dynamic fields
  • The add/remove row controls in Rules, Schedule, and FAQ sections need verification for state management and boundary conditions

Poem

🐰 Forms now bloom with richer detail—
Banner images and social trails,
Rules and schedules find their place,
While "Coming Soon" fills empty space,
Rich hackathons at a faster pace! 🎉

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

📜 Recent review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b9e86ef and eafcbad.

📒 Files selected for processing (2)
  • app/hackathons/[id]/page.tsx (6 hunks)
  • components/dashboard/HackathonForm.tsx (7 hunks)

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.

@codeunia-dev codeunia-dev merged commit 93d1180 into main Nov 15, 2025
2 of 4 checks passed
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.

3 participants