[PR #79] Display track positions gained/lost #122

Open
opened 2026-05-07 00:18:46 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/79
Author: @Palash1912
Created: 12/18/2025
Status: 🔄 Open

Base: mainHead: feature-toggle-grid-pos


📝 Commits (5)

  • ae80cdd Display track positions gained/lost
  • 730773a Merge branch 'main' into feature-toggle-grid-pos
  • 925129c Toggle Grid position delta set to "False" by default
  • fb695a5 Merge branch 'main' into feature-toggle-grid-pos
  • f37c5cc resolving merge conflicts

📊 Changes

6 files changed (+77 additions, -6 deletions)

View changed files

📝 .gitignore (+1 -0)
📝 main.py (+1 -0)
📝 src/arcade_replay.py (+3 -1)
📝 src/f1_data.py (+26 -0)
📝 src/interfaces/race_replay.py (+8 -2)
📝 src/ui_components.py (+38 -3)

📄 Description

image

Feature:

Display real-time position delta relative to starting grid position
for each driver on the leaderboard.

Changes:

  • Added get_starting_grid() function to extract grid positions from session data
  • Leaderboard now shows +N (green) for positions gained, -N (red) for positions
    lost, and — (gray) for unchanged positions
  • Position delta is hidden for retired drivers (showing "OUT" instead)
  • Added [G] keyboard toggle to show/hide position deltas
  • Grid positions are cached with telemetry data for faster replay loads

@IAmTomShaw what do you think?


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/IAmTomShaw/f1-race-replay/pull/79 **Author:** [@Palash1912](https://github.com/Palash1912) **Created:** 12/18/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `feature-toggle-grid-pos` --- ### 📝 Commits (5) - [`ae80cdd`](https://github.com/IAmTomShaw/f1-race-replay/commit/ae80cddd090e422109eb94a19216396cd07045f6) Display track positions gained/lost - [`730773a`](https://github.com/IAmTomShaw/f1-race-replay/commit/730773acbf119e02db7159d2500f76957d58565d) Merge branch 'main' into feature-toggle-grid-pos - [`925129c`](https://github.com/IAmTomShaw/f1-race-replay/commit/925129c41a83ffd47c7f79238e331a7b9a650af8) Toggle Grid position delta set to "False" by default - [`fb695a5`](https://github.com/IAmTomShaw/f1-race-replay/commit/fb695a53e10c4717161a4211e0762f8f1744ee14) Merge branch 'main' into feature-toggle-grid-pos - [`f37c5cc`](https://github.com/IAmTomShaw/f1-race-replay/commit/f37c5ccd4a25ec2c3a44f2153738fcc2252447db) resolving merge conflicts ### 📊 Changes **6 files changed** (+77 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `.gitignore` (+1 -0) 📝 `main.py` (+1 -0) 📝 `src/arcade_replay.py` (+3 -1) 📝 `src/f1_data.py` (+26 -0) 📝 `src/interfaces/race_replay.py` (+8 -2) 📝 `src/ui_components.py` (+38 -3) </details> ### 📄 Description <img width="1507" height="879" alt="image" src="https://github.com/user-attachments/assets/bbb75e48-993d-444e-97cc-c90572563498" /> ### **Feature:** Display real-time position delta relative to starting grid position for each driver on the leaderboard. ### **Changes:** - Added get_starting_grid() function to extract grid positions from session data - Leaderboard now shows +N (green) for positions gained, -N (red) for positions lost, and — (gray) for unchanged positions - Position delta is hidden for retired drivers (showing "OUT" instead) - Added [G] keyboard toggle to show/hide position deltas - Grid positions are cached with telemetry data for faster replay loads @IAmTomShaw what do you think? --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/f1-race-replay#122
No description provided.