Feature/414 415 419 420 user features#503
Merged
Olowodarey merged 5 commits intoArena1X:mainfrom Mar 30, 2026
Merged
Conversation
- Create UserPreferences entity with notification preference fields - Create migration for user_preferences table - Add UpdateUserPreferencesDto for API requests - Implement getOrCreatePreferences and updatePreferences in UsersService - Add PATCH /users/me/preferences endpoint in UsersController - Update UsersModule to include UserPreferences entity
- Create UserFollow entity with follower/following relationships - Create migration for user_follows table with unique constraint - Add PaginationDto and follow-related DTOs - Implement followUser, unfollowUser, getFollowers, getFollowing in UsersService - Add POST /users/:address/follow endpoint - Add DELETE /users/:address/unfollow endpoint - Add GET /users/:address/followers endpoint with pagination - Add GET /users/:address/following endpoint with pagination - Update UsersModule to include UserFollow entity
- Create UserTrendsDto with trend data points and category performance - Implement getUserTrends method in AnalyticsService - Add computeAccuracyTrend to track accuracy rate over time - Add computeVolumeTrend to track prediction volume over time - Add computeProfitLossTrend to track cumulative profit/loss - Add computeCategoryPerformance to breakdown performance by category - Add GET /analytics/users/:address/trends endpoint - Endpoint returns accuracy, volume, profit/loss trends and category breakdown
- Create CategoryStatsDto and CategoryAnalyticsResponseDto - Implement getCategoryAnalytics method in AnalyticsService - Calculate total markets, active markets, volume, and avg participants per category - Add isCategoryTrending helper to determine trending categories (>50% active) - Add GET /analytics/categories endpoint - Endpoint returns sorted categories by market count with trending status
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@Dev-Vik-Tor 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! 🚀 |
- Remove unused 'follower' variable in unfollowUser method - Add missing UserPreferences and UserFollow repository mocks to users.service.spec.ts test setup Fixes Backend CI / Lint and Backend CI / Test failures
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.
User Features Implementation
Changes
Details
Closes #414
Closes #415
Closes #419
Closes #420