-
Notifications
You must be signed in to change notification settings - Fork 2
Fix/companyhackathons #342
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
- Add UpcomingHackathon interface to define hackathon data structure - Extend RecentActivity type to include hackathon_created, hackathon_approved, and hackathon_rejected activity types - Add upcomingHackathons state to track upcoming hackathons alongside events - Fetch and filter hackathons data to display only approved upcoming hackathons - Sort hackathons by date and limit display to 5 most recent - Generate recent activity entries for hackathons with appropriate status icons and colors - Add new "Upcoming Hackathons" card section with Trophy icon and grid layout - Include create hackathon button when no upcoming hackathons exist - Add UpcomingHackathonItem component to display individual hackathon details - Update Recent Activity description to mention both events and hackathons - Add console logging for debugging hackathons data retrieval - Consolidate activity generation from both events and hackathons into single sorted feed
…mance tracking - Import Trophy icon from lucide-react for hackathon visualization - Add hackathonsCreated and hackathonsPublished fields to analytics data mapping - Include hackathon metrics in totals and averages calculations - Expand summary stats grid from 4 to 5 columns to accommodate new hackathon card - Add new SummaryCard for Hackathons Published with created count subtitle - Change Events Published icon color from yellow to purple for better distinction - Reorganize performance comparison section into 2-column grid layout - Add HackathonPerformanceComparison component alongside EventPerformanceComparison - Rename "Engagement" tab to "Overall Engagement" for clarity - Add new "Hackathons" tab with line, bar, and area chart visualizations - Update Events Published chart colors from green (#22c55e) to purple (#a855f7) - Add hackathon-specific charts with yellow (#eab308) for created and orange (#f97316) for published metrics - Enhance analytics dashboard to provide comprehensive hackathon performance insights alongside event metrics
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Caution Review failedThe pull request is closed. WalkthroughTwo dashboard components are enhanced to support hackathon tracking. AnalyticsCharts gains hackathon metrics fields, a new Hackathons tab with dedicated charting, and a HackathonPerformanceComparison component. CompanyDashboard expands its stats interface with event and hackathon metric breakdowns, adds hackathon activity types, introduces an UpcomingHackathon component, and implements new data aggregation logic for distributed metric calculations. Changes
Sequence Diagram(s)sequenceDiagram
participant Dashboard as CompanyDashboard
participant Analytics as Analytics Data
participant State as Component State
participant UI as UI Components
Dashboard->>Analytics: Fetch events & hackathons data
Analytics-->>Dashboard: Return metrics (views, clicks, registrations)
Dashboard->>State: Calculate metric distribution
Note over State: Distribute views/clicks proportionally<br/>between events & hackathons<br/>based on respective counts
Dashboard->>State: Aggregate into eventMetrics<br/>& hackathonMetrics
State->>UI: Pass metrics to Event/Hackathon<br/>metric cards
State->>UI: Pass hackathons to<br/>UpcomingHackathonItem
UI-->>Dashboard: Render organized dashboard
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes
Possibly related PRs
Poem
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
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. Comment |
This PR introduces enhancements and fixes for hackathon-related features in the company dashboard:
Changes included:
Impact:
Future Improvements
Authored by: @akshay0611
Summary by CodeRabbit
Release Notes