-
-
Notifications
You must be signed in to change notification settings - Fork 1
Testing Mock Alliance Selection #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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>
Summary
Resolves #25
Checklist