Skip to content

Add 2026 Season: REBUILT#29

Merged
cherriae merged 3 commits intomainfrom
2026
Jan 10, 2026
Merged

Add 2026 Season: REBUILT#29
cherriae merged 3 commits intomainfrom
2026

Conversation

@cherriae
Copy link
Copy Markdown
Member

Summary

A new season with new scouting data.

What's new:

  • Data:
    • Auto fuel
    • Transition fuel
    • Teleop Shift 1-4
    • Endgame fuel
    • Climb: Level 1,2,3
  • Updated all endpoints to reflect this data
  • New field map
  • Remove mechanism section in pit scouting

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 Copilot January 10, 2026 21:19
@cherriae cherriae self-assigned this Jan 10, 2026
@cherriae cherriae added the enhancement New feature or request label Jan 10, 2026
@cherriae cherriae marked this pull request as draft January 10, 2026 21:19
Comment thread app/templates/lighthouse/auton.html Dismissed
Copy link
Copy Markdown
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 updates the scouting application for the 2026 FRC season with a new data model called "REBUILT". The changes replace the previous season's coral/algae scoring system with a fuel-based scoring system, update climb tracking from types (shallow/deep/park) to levels (1-3), and introduce new teleop shift tracking.

Changes:

  • New data model with fuel scoring (auto, transition, teleop shifts 1-4, endgame) replacing coral/algae scoring
  • Climb system changed from type-based to level-based (0-3)
  • Removed mechanisms section from pit scouting
  • Updated field map from 2025 to 2026
  • Re-enabled Canvas.js auto-save with LocalForage
  • Updated copyright year to 2026

Reviewed changes

Copilot reviewed 27 out of 31 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
app/utils.py Removed storage_uri from Limiter initialization
app/app.py Added RATELIMIT_STORAGE_URI configuration
app/models.py Updated TeamData model with new fuel/climb fields, commented out old scoring fields
app/scout/scouting_utils.py Updated database operations for new data model
app/scout/routes.py Updated aggregation pipelines and API endpoints for fuel scoring
app/templates/scouting/*.html Updated forms and tables for new scoring system
app/templates/lighthouse.html Updated comparison UI for fuel scoring
app/static/js/*.js Updated field image references and data handling
app/static/js/pit-scouting/*.js Commented out old mechanism handling code
app/static/js/Canvas.js Re-enabled LocalForage auto-save functionality
Comments suppressed due to low confidence (1)

app/static/js/pit-scouting/list.js:55

  • The code references 'climberCell' on line 46, but this variable is never defined. This will cause a runtime error when the CSV export function is called. The climberCell variable needs to be defined before line 46, or this entire block (lines 46-55) should be removed since the mechanisms section has been removed from pit scouting and there is no corresponding table cell to query.
            const hasClimber = !climberCell.textContent.includes('🗙');
            let climberType = '', climberNotes = '';
            if (hasClimber) {
                const climberText = climberCell.textContent.trim();
                if (climberText.includes(' - ')) {
                    [climberType, climberNotes] = climberText.split(' - ').map(s => s.trim());
                } else {
                    climberType = climberText;
                }
            }

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread app/scout/scouting_utils.py Outdated
Comment thread app/models.py Outdated
Comment thread app/scout/routes.py
Comment thread app/scout/routes.py
Comment on lines +319 to +323
# TODO
"auto_scoring": min((stats[0]["avg_auto_fuel"] or 0) / 10, 1), # Assumes ~10 max auto fuel
"teleop_scoring": min(avg_teleop_total / 30, 1), # Assumes ~30 max teleop fuel
"endgame_scoring": min((stats[0]["avg_endgame_fuel"] or 0) / 10, 1), # Assumes ~10 max endgame fuel
"climb_level": min((stats[0]["avg_climb_level"] or 0) / 3, 1), # Max level 3
Copy link

Copilot AI Jan 10, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a TODO comment on line 319 that indicates incomplete normalization logic for the radar chart scoring calculations. The normalization values (dividing by 10, 30, etc.) are assumptions and should be finalized based on actual game data or scoring limits. This could lead to inaccurate radar chart representations.

Copilot uses AI. Check for mistakes.
Comment thread app/scout/routes.py Outdated
Comment thread app/utils.py
Comment thread app/static/js/scout/list.js Outdated
@cherriae cherriae requested a review from derek-pohl January 10, 2026 21:35
@cherriae cherriae marked this pull request as ready for review January 10, 2026 21:41
@cherriae cherriae merged commit a950a92 into main Jan 10, 2026
7 checks passed
@cherriae cherriae deleted the 2026 branch January 10, 2026 21:49
cherriae added a commit that referenced this pull request Jan 10, 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
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>
cherriae added a commit that referenced this pull request Mar 7, 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>

* 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants