[PR #85] [MERGED] feat: add toggle for leader gap vs interval #129

Closed
opened 2026-05-07 00:18:48 +02:00 by BreizhHardware · 0 comments

📋 Pull Request Information

Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/85
Author: @AlgoFoe
Created: 12/19/2025
Status: Merged
Merged: 1/28/2026
Merged by: @IAmTomShaw

Base: mainHead: Feature-Gap-Toggle


📝 Commits (6)

  • 0a15b33 feat: add toggle for leader gap vs interval
  • b057729 Merge branch 'main' into Feature-Gap-Toggle
  • a280744 Merge branch 'IAmTomShaw:main' into Feature-Gap-Toggle
  • b9d61ad changed toggle to radio btn
  • 7a17815 changed to radio btns
  • d1f200d Text rendering fix for gaps

📊 Changes

2 files changed (+159 additions, -1 deletions)

View changed files

📝 src/interfaces/race_replay.py (+37 -0)
📝 src/ui_components.py (+122 -1)

📄 Description

What this PR does

Adds a toggle that allows switching the leaderboard gap display between:

  • Gap to race leader
  • Interval to the car ahead

Why

Different viewers prefer different gap representations, and aligns the replay with the actual F1 broadcast behavior

Implementation notes

  • Toggle is optional and non-breaking
  • Uses existing timing data only
  • No impact on replay performance

Video

https://github.com/user-attachments/assets/39600739-0f68-4277-a814-a854249ac1da

[Gap calculation logic adapted from PR #83]


🔄 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/85 **Author:** [@AlgoFoe](https://github.com/AlgoFoe) **Created:** 12/19/2025 **Status:** ✅ Merged **Merged:** 1/28/2026 **Merged by:** [@IAmTomShaw](https://github.com/IAmTomShaw) **Base:** `main` ← **Head:** `Feature-Gap-Toggle` --- ### 📝 Commits (6) - [`0a15b33`](https://github.com/IAmTomShaw/f1-race-replay/commit/0a15b3363026284606b5635a80dee3de122d2af1) feat: add toggle for leader gap vs interval - [`b057729`](https://github.com/IAmTomShaw/f1-race-replay/commit/b05772991da30d0e099884bb380accf8a0962a57) Merge branch 'main' into Feature-Gap-Toggle - [`a280744`](https://github.com/IAmTomShaw/f1-race-replay/commit/a280744af60981aa58434c48c651e80b9ea39a7a) Merge branch 'IAmTomShaw:main' into Feature-Gap-Toggle - [`b9d61ad`](https://github.com/IAmTomShaw/f1-race-replay/commit/b9d61ad457fd8ce51a4d4c18b73825b1b0574556) changed toggle to radio btn - [`7a17815`](https://github.com/IAmTomShaw/f1-race-replay/commit/7a17815cfef5712400e049fb97c0ffd27f6cd98f) changed to radio btns - [`d1f200d`](https://github.com/IAmTomShaw/f1-race-replay/commit/d1f200d5031f86d470cfcf8a8c5892263f93ea1a) Text rendering fix for gaps ### 📊 Changes **2 files changed** (+159 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/interfaces/race_replay.py` (+37 -0) 📝 `src/ui_components.py` (+122 -1) </details> ### 📄 Description ### What this PR does Adds a toggle that allows switching the leaderboard gap display between: - Gap to race leader - Interval to the car ahead ### Why Different viewers prefer different gap representations, and aligns the replay with the actual F1 broadcast behavior ### Implementation notes - Toggle is optional and non-breaking - Uses existing timing data only - No impact on replay performance ### Video https://github.com/user-attachments/assets/39600739-0f68-4277-a814-a854249ac1da _[Gap calculation logic adapted from PR #83]_ --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
BreizhHardware 2026-05-07 00:18:48 +02:00
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#129
No description provided.