feat: implement trending events and platform statistics APIs#930
Open
sshdopey wants to merge 2 commits into
Open
feat: implement trending events and platform statistics APIs#930sshdopey wants to merge 2 commits into
sshdopey wants to merge 2 commits into
Conversation
added 2 commits
June 2, 2026 09:22
Resolves Arena1X#753 - Add new GET /api/analytics/trending endpoint with configurable limit (1-50) and time window (24h, 7d, 30d) - Calculate trending score based on recent participant joins, prediction submissions, participant count, match count, and time remaining - Include recent activity count and participant growth rate metrics - Implement response caching with 10-minute TTL - Add OpenAPI documentation for the trending events endpoint
Resolves Arena1X#740 - Add new GET /api/admin/creator-events/stats endpoint for platform-wide statistics - Calculate total events, active/completed/cancelled counts, unique participants, matches, and predictions - Include fee collection statistics, average metrics, and top creators/events - Implement optional date range filtering (all time, month, week, day) - Add response caching with 10-minute TTL - Add OpenAPI documentation for the stats endpoint - Require admin authentication for access
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@sshdopey 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! 🚀 |
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.
What
Implement two new API endpoints for analytics and admin functionalities: trending events discovery and platform-wide statistics reporting.
Issues Resolved
Closes #753
Closes #740
Changes
#753 - Implement Trending Events API
GET /api/analytics/trendingendpoint with configurable parameters:limit(1-50, default 10): number of events to returntimeWindow(24h, 7d, 30d): time range for trending calculation#740 - Implement Platform Statistics API
GET /api/admin/creator-events/statsendpoint for admin-only access