Conversation
…as HTML Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
This PR implements a mock alliance selection feature for FRC (FIRST Robotics Competition) scouting, allowing users to simulate the alliance selection process that occurs at FRC events. The implementation includes a new interactive UI page with drag-and-drop functionality, backend API endpoints to fetch event rankings from The Blue Alliance (TBA), and navigation links from existing pages.
Key changes:
- Added comprehensive mock alliance selection page with drag-and-drop team selection, snake draft logic, and mobile touch support
- Implemented new backend API endpoint to fetch event rankings with team details
- Added navigation links to the new feature from leaderboard and team list pages
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 19 comments.
Show a summary per file
| File | Description |
|---|---|
| app/templates/scouting/mock-alliance-selection.html | New 913-line HTML template with embedded JavaScript implementing the interactive alliance selection UI, including event selection, team drag-and-drop, snake draft logic, and export functionality |
| app/scout/routes.py | Added two new routes: one for rendering the mock alliance selection page and another API endpoint for fetching event rankings with team details |
| app/scout/TBA.py | Added get_event_rankings method to fetch and format team rankings data from The Blue Alliance API |
| app/templates/scouting/list.html | Added navigation link to the new mock alliance selection feature |
| app/templates/scouting/leaderboard.html | Added navigation link to the new mock alliance selection feature |
| app/app.py | Enhanced MongoDB collection initialization with logging statements for better visibility during setup |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 10 out of 10 changed files in this pull request and generated 10 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
* Change to certain branches to run desktop builds * Add Forgot Password Page (#26) * Add forgot password page * Fix(bug): Unable to edit scouting files when not in a team * Fix(workflows): Linux and Flatpak build errors * Add 2026 Season: REBUILT (#29) * Remove 2025 Game material * Add 2026 Game material * Remove all instances of 2025 game * Add auto climb * Add Ferried Fuel Field and +5,+10 increments * Testing Mock Alliance Selection (#27) * Mock Alliance Selection * Potential fix for code scanning alert no. 43: DOM text reinterpreted as HTML Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Fix bugs and add crown to winner of playoffs --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
* Change to certain branches to run desktop builds * Add Forgot Password Page (#26) * Add forgot password page * Fix(bug): Unable to edit scouting files when not in a team * Fix(workflows): Linux and Flatpak build errors * Add 2026 Season: REBUILT (#29) * Remove 2025 Game material * Add 2026 Game material * Remove all instances of 2025 game * Add auto climb * Add Ferried Fuel Field and +5,+10 increments * Testing Mock Alliance Selection (#27) * Mock Alliance Selection * Potential fix for code scanning alert no. 43: DOM text reinterpreted as HTML Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Fix bugs and add crown to winner of playoffs --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> * Add options for testing * Refactors * Fix TypeError Bugs * Fixes #32 * Add: Change password in settings (#34) * Bug fixes (#37) * Untested changes * Canvas #36 and Mobile UI Improvements #33 * Fix exporting pit scouting .csv blank spreadsheet and allow multiple instances of pit scouting. --------- Co-authored-by: elvizer <gamerprotime777@gmail.com> * Fix build issues * Bump BreifCase version to >=0.4.1 * Disable linux build workflows until working workflows --------- Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> Co-authored-by: elvizer <gamerprotime777@gmail.com>
Summary
Resolves #25
Checklist