Conversation
b9c5bf0 to
37cff11
Compare
2375f86 to
c347fdb
Compare
f4397e5 to
065e80d
Compare
4f04bbc to
8297410
Compare
|
K/D, HS% and ADR should all be formatted with two decimals, as they are all float |
|
Player names should be displayed below team names in the match view EDIT: this is normal because the teams table is empty |
|
Date should be displayed in DD/MM/YYYY format |
idk how to do that but i don't think it really matters tbh lol |
|
TODO: show "No data" in table when empty. |
There was a problem hiding this comment.
Pull Request Overview
This PR adds comprehensive statistics tracking and data management features to the Tournament Match Tracker application, including player stats, match stats, database management capabilities, and significant UI improvements.
Key changes:
- Statistics tracking system with player/match stats APIs and frontend pages
- Database management features (download, upload, delete operations)
- UI/UX improvements including new navigation, logo updates, and improved 404 page
- New dependencies:
multerfor file uploads andnode-cachefor caching
Reviewed Changes
Copilot reviewed 32 out of 44 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| backend/src/statsController.ts | New controller providing REST endpoints for statistics queries |
| backend/src/storageController.ts | New controller for database download/upload/management operations |
| backend/src/statsLogger.ts | Enhanced with caching and query functions for stats retrieval |
| backend/src/storage.ts | Added DB download, replace, and empty operations |
| frontend/src/pages/stats.tsx | New comprehensive stats pages for matches and players |
| frontend/src/pages/dataManagement.tsx | New page for database management operations |
| frontend/src/components/StatsTable.tsx | Reusable table component with sorting, filtering, and grouping |
| frontend/src/utils/uploadUserFile.ts | Utility for file upload via browser |
| frontend/src/utils/mustConfirm.tsx | Confirmation modal utility (refactored from .ts) |
| common/types/stats.ts | Type definitions for player and match statistics |
Files not reviewed (2)
- backend/package-lock.json: Language not supported
- frontend/package-lock.json: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
thx @copilot ur da best <3 (don't take my job pls) |
* Add stats management page * Make DB download functional + reorganize data management layout * Add confirmation modal for database operations * Replace and factorize confirmation modal * Authenticate frontend routes * Implement DB management functions
c9a3bea to
c251d50
Compare
* Add stats page * Add backend API endpoints for stats * Add players and matches stats pages * Working stats views * Add match-specific stats page * Add player-specific stats view * Group stats by match in player stats * Factorize stats tables * Add ability to sort by column * Handle errors (a bit) better * Handle 404s * Improve frontend error handling * Adapt stats for new tables * Add team players to match view * Insalan rebrand + highlight current tab * Fix logo color + tweak title * Add proper 404 page * Add copy steamID button * Change error color to theme coor * Fix messed up rebase * Fix data table name and clean files * Various stats fixes + add color to stats * Add data management page (#15) * Add stats management page * Make DB download functional + reorganize data management layout * Add confirmation modal for database operations * Replace and factorize confirmation modal * Authenticate frontend routes * Implement DB management functions * Revert 2e241a1 because it's annoying and not really useful * Add empty message to stats table + forbid editing database while matches are live * Invalidate cache on DB operations * Center float in table * Add stats search bar and links in details * Fix a few things * Fix colors in light theme * Fix DB replacement --------- Co-authored-by: Ecnama <amance.github@famille-graindorge.fr>
* Add stats page * Add backend API endpoints for stats * Add players and matches stats pages * Working stats views * Add match-specific stats page * Add player-specific stats view * Group stats by match in player stats * Factorize stats tables * Add ability to sort by column * Handle errors (a bit) better * Handle 404s * Improve frontend error handling * Adapt stats for new tables * Add team players to match view * Insalan rebrand + highlight current tab * Fix logo color + tweak title * Add proper 404 page * Add copy steamID button * Change error color to theme coor * Fix messed up rebase * Fix data table name and clean files * Various stats fixes + add color to stats * Add data management page (#15) * Add stats management page * Make DB download functional + reorganize data management layout * Add confirmation modal for database operations * Replace and factorize confirmation modal * Authenticate frontend routes * Implement DB management functions * Revert 2e241a1 because it's annoying and not really useful * Add empty message to stats table + forbid editing database while matches are live * Invalidate cache on DB operations * Center float in table * Add stats search bar and links in details * Fix a few things * Fix colors in light theme * Fix DB replacement --------- Co-authored-by: Ecnama <amance.github@famille-graindorge.fr>
* Add stats page * Add backend API endpoints for stats * Add players and matches stats pages * Working stats views * Add match-specific stats page * Add player-specific stats view * Group stats by match in player stats * Factorize stats tables * Add ability to sort by column * Handle errors (a bit) better * Handle 404s * Improve frontend error handling * Adapt stats for new tables * Add team players to match view * Insalan rebrand + highlight current tab * Fix logo color + tweak title * Add proper 404 page * Add copy steamID button * Change error color to theme coor * Fix messed up rebase * Fix data table name and clean files * Various stats fixes + add color to stats * Add data management page (#15) * Add stats management page * Make DB download functional + reorganize data management layout * Add confirmation modal for database operations * Replace and factorize confirmation modal * Authenticate frontend routes * Implement DB management functions * Revert 2e241a1 because it's annoying and not really useful * Add empty message to stats table + forbid editing database while matches are live * Invalidate cache on DB operations * Center float in table * Add stats search bar and links in details * Fix a few things * Fix colors in light theme * Fix DB replacement --------- Co-authored-by: Ecnama <amance.github@famille-graindorge.fr>




Add an interface for visualizing statistics, as well as the backend API endpoints to fetch them. Since #15 was merged, it also adds a Data Management tab that makes it possible to download and restore backups of the database.
Fix #3
Fix #13