Skip to content

Conversation

@cherriae
Copy link
Member

Summary

Resolves #25

Checklist

  • If code changes were made then they have been tested.
    • I have updated the documentation to reflect the changes.
  • This PR fixes an issue.
  • This PR adds something new (e.g. subsystem).
  • This PR is not a code change (e.g. README, typehinting, examples, refactoring, ...)

@cherriae cherriae requested a review from derek-pohl December 11, 2025 20:56
…as HTML

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
Copy link
Contributor

Copilot AI left a 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.

Copy link
Contributor

Copilot AI left a 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.

@cherriae cherriae merged commit 206615d into main Jan 19, 2026
7 checks passed
@cherriae cherriae deleted the mock-alliance-selection branch January 19, 2026 20:56
cherriae added a commit that referenced this pull request Jan 19, 2026
* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mock Alliance Selection

2 participants