feat: add eliminated teams tracking to leaderboard, optimize data fetching, and configure Netlify build settings - #1
Conversation
…ching, and configure Netlify build settings
|
@AdhwaithAS is attempting to deploy a commit to the MuLearn Team on Vercel. A member of the Team first needs to authorize it. |
Greptile SummaryThis PR adds eliminated-team tracking and updates several frontend, API, caching, and deployment paths. The main changes are:
|
| Filename | Overview |
|---|---|
| frontend/utils/constants.js | Adds shared eliminated-team and available-team lists. |
| frontend/app/api/v1/register/route.js | Uses the available-team list for server-side registration validation. |
| frontend/app/profile/[id]/components/useProfileState.js | Updates avatar validation, input reset behavior, and modal integration. |
| frontend/utils/football-api.js | Adds five-minute revalidation to match-data fetches. |
| frontend/app/api/v1/live-stats/route.js | Removes referral analytics and adds shared-cache response headers. |
| netlify.toml | Configures root-level Netlify builds for the frontend. |
Reviews (2): Last reviewed commit: "chore: disable secrets scanning in Netli..." | Re-trigger Greptile
| if (file.size > 5 * 1024 * 1024) { | ||
| setUploadError("Image must be under 5MB."); |
There was a problem hiding this comment.
Images between 3 MB and 5 MB pass this new client check, but the unchanged API limit rejects them at 3 MB. The modal advertises 5 MB, so users can select a supposedly valid image only to have the upload fail.
| if (file.size > 5 * 1024 * 1024) { | |
| setUploadError("Image must be under 5MB."); | |
| if (file.size > 3 * 1024 * 1024) { | |
| setUploadError("Image must be under 3MB."); |
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
No description provided.