Skip to content

Conversation

@codeunia-dev
Copy link
Owner

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

  • Add totalViews and totalRegistrations calculations to stats object
  • Add new stats cards displaying total views and registrations with icons
  • Update stats grid layout from 4 columns to 3 lg:6 columns for better spacing
  • Add pointer-events-none class to all approval and status badges for consistency
  • Make registration count clickable link to registrations page when count > 0
  • Display registration count as gray text when zero to indicate no registrations
  • Improve visual hierarchy and accessibility of hackathon dashboard metrics

Authored by: @akshay0611

Summary by CodeRabbit

  • New Features

    • Added Total Views and Total Registrations statistics cards to the company dashboard.
    • Registrations column now links directly to the registrations page when data is available.
  • Style

    • Status and approval badges are now non-interactive across all event states.
    • Dashboard stats grid layout optimized for improved display on different screen sizes.

…kathons dashboard

- Add totalViews and totalRegistrations calculations to stats object
- Add new stats cards displaying total views and registrations with icons
- Update stats grid layout from 4 columns to 3 lg:6 columns for better spacing
- Add pointer-events-none class to all approval and status badges for consistency
- Make registration count clickable link to registrations page when count > 0
- Display registration count as gray text when zero to indicate no registrations
- Improve visual hierarchy and accessibility of hackathon dashboard metrics
@vercel
Copy link

vercel bot commented Nov 19, 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 19, 2025 6:28am

@codeunia-dev codeunia-dev merged commit 8f72043 into main Nov 19, 2025
2 of 4 checks passed
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Nov 19, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

The hackathons dashboard page receives enhanced statistics and UI refinements. New computed stats (totalViews, totalRegistrations) are added and displayed in an expanded grid layout. All status and approval badges become non-interactive via pointer-events-none styling. The registrations column converts to a navigation link when count exceeds zero.

Changes

Cohort / File(s) Summary
Dashboard Hackathons Page
app/dashboard/company/[slug]/hackathons/page.tsx
Added totalViews and totalRegistrations stats computed from all hackathons; restructured stats grid layout (md: 3 columns, lg: 6 columns) with two new stat cards; applied pointer-events-none to all status/approval badges for non-interactivity; made registrations column render as a clickable link when value > 0, otherwise gray "0" text; all status variants (pending, draft, rejected, changes_requested, live/published, cancelled, completed) now return non-interactive badge elements

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • Verify stat calculations (totalViews, totalRegistrations) correctly sum across all hackathons
  • Confirm registration link rendering logic handles edge cases (e.g., zero registrations, permission states)
  • Review pointer-events-none application across all badge variants to ensure consistent non-interactive behavior
  • Validate responsive grid layout changes (md/lg breakpoints) render correctly on target devices

Possibly related PRs

Poem

🐰 The stats now sparkle, rows align just right,
Views and registrations dance in dashboard light,
Badges stand still, no clicks allowed today,
Links bloom where numbers say "come this way!"
A polish, a polish, our dashboard takes flight! ✨

✨ 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 fix/event

📜 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 a9cb289 and 4fb8c86.

📒 Files selected for processing (1)
  • app/dashboard/company/[slug]/hackathons/page.tsx (5 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.

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