feat: dashboard analytics charts, live check-in counter, geo heatmap & newsletter form#520
Merged
BigBen-7 merged 1 commit intoJun 30, 2026
Conversation
Lead-Studios#469 — dashboard analytics & newsletter - fix(hook): rewrite useOrganizerAnalytics with full OrganizerAnalytics type (revenue, performance, totalEarned, payoutsQueued, nextSettlementDays, checkInsLive, doorsOpenInMinutes, totalEvents, events, ticketBreakdown, demographics) - fix(hook): update useCheckInCounter poll interval to 10s per issue Lead-Studios#464 - feat(Lead-Studios#469): NewsletterForm already submits POST /api/newsletter/subscribe with loading state, success/error messages, and email validation (no-op) - feat(Lead-Studios#464): add LiveCheckInCard component — live check-in counter with pulsing green dot, event name, 10s polling via useCheckInCounter - feat(Lead-Studios#463): add RevenueByTicketTypeChart — PieChart by revenue with tooltip showing type, revenue and percentage share - feat(Lead-Studios#462): add GeoHeatmap choropleth via react-simple-maps; update DemographicsSection to render map when region data exists, falls back to text table when region data is missing - fix(dashboard): remove duplicate eventImages/eventImgs variable declarations - chore: install react-simple-maps@3.0.0 Closes Lead-Studios#469 Closes Lead-Studios#464 Closes Lead-Studios#463 Closes Lead-Studios#462
|
@RennyThompson Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
BigBen-7
approved these changes
Jun 30, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Resolves all four open issues assigned to me in one cohesive feature branch.
Changes
useOrganizerAnalytics hook — rewritten with the full
OrganizerAnalyticstype (revenue, performance, totalEarned, payoutsQueued, nextSettlementDays, checkInsLive, doorsOpenInMinutes, totalEvents, events, ticketBreakdown, demographics).FE-xxx: feat: add newsletter signup form that actually submits — POST /api/newsletter/subscribe #469 — NewsletterForm — already complete: submits
POST /api/newsletter/subscribewith loading state, success/error inline messages, and Zod email validation. No further changes needed.FE-xxx: feat: add real-time check-in counter with WebSocket on dashboard #464 — LiveCheckInCard (
src/components/dashboard/LiveCheckInCard.tsx) — new card shown whencheckInsLive === true. Displays live check-in count with a pulsing green dot and active event name; falls back to "No active events — check-in counter paused". Polls viauseCheckInCounterevery 10 seconds.FE-xxx: feat: add revenue breakdown by ticket type chart on dashboard #463 — RevenueByTicketTypeChart (
src/components/dashboard/charts/RevenueByTicketTypeChart.tsx) — PieChart keyed on revenue. Tooltip: "VIP: 450,000 (62%)". Legend shows type, revenue, and share. Same colour palette asTicketTypeChart. Wired into dashboard below ticket breakdown.FE-xxx: feat: add geographic heatmap of ticket purchasers on the analytics dashboard #462 — Geographic heatmap (
src/components/dashboard/GeoHeatmap.tsx) — choropleth world map viareact-simple-maps@3.0.0. Countries coloured light to dark blue by percentage. Hover tooltip: "{country}: {count} tickets ({percentage}%)". DemographicsSection falls back to the existing text table when region data is absent.Dashboard fix — removed duplicate
eventImages/eventImgsvariable declarations that caused a TypeScript syntax error.Files changed
src/hooks/useOrganizerAnalytics.ts— full type rewritesrc/hooks/useCheckInCounter.ts— poll interval 15s to 10ssrc/components/dashboard/LiveCheckInCard.tsx— newsrc/components/dashboard/charts/RevenueByTicketTypeChart.tsx— newsrc/components/dashboard/GeoHeatmap.tsx— newsrc/components/dashboard/DemographicsSection.tsx— adds choropleth mapsrc/app/(protected)/dashboard/page.tsx— wires new components, fixes duplicate varspackage.json/package-lock.json— adds react-simple-maps@3.0.0Closes
Closes #469
Closes #464
Closes #463
Closes #462