[PR #50] [MERGED] feat: Add race progress bar with event markers (DNF, flags, lap transitions) #103

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

📋 Pull Request Information

Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/50
Author: @joacominatel
Created: 12/15/2025
Status: Merged
Merged: 12/16/2025
Merged by: @IAmTomShaw

Base: mainHead: feature/progress-bar


📝 Commits (10+)

  • a13b3c3 Add RaceProgressBarComponent for visual race timeline with event markers
  • a650757 Add set_race_data method to RaceProgressBarComponent for race data handling
  • 5e8610b Add internal methods to calculate bar dimensions and frame position
  • 3c279a4 Add draw method for rendering progress bar with markers
  • 6d9536a Add event marker drawing functionality
  • aa3ae8f Add method to draw flag segments in RaceProgressBarComponent
  • 7fb8399 Add on_resize method to RaceProgressBarComponent for dynamic bar dimension calculation
  • 51dc52e Add tooltip drawing functionality to RaceProgressBarComponent for event markers
  • 56798d9 Add legend drawing functionality to RaceProgressBarComponent for event markers
  • 791e34d Add mouse press handling to RaceProgressBarComponent for seeking positions

📊 Changes

2 files changed (+539 additions, -3 deletions)

View changed files

📝 src/interfaces/race_replay.py (+40 -3)
📝 src/ui_components.py (+499 -0)

📄 Description

This PR introduces a visual race progress bar at the bottom of the replay window that provides an "at-a-glance" timeline of the race with some important event markers.

Screenshot 2025-12-15 at 14 24 23
  • src/ui_components.py - Added RaceProgressBarComponent class and extract_race_events() function
  • src/interfaces/race_replay.py - Integrated progress bar into the replay window

🔄 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/50 **Author:** [@joacominatel](https://github.com/joacominatel) **Created:** 12/15/2025 **Status:** ✅ Merged **Merged:** 12/16/2025 **Merged by:** [@IAmTomShaw](https://github.com/IAmTomShaw) **Base:** `main` ← **Head:** `feature/progress-bar` --- ### 📝 Commits (10+) - [`a13b3c3`](https://github.com/IAmTomShaw/f1-race-replay/commit/a13b3c3a483b5e7345ad3dde782c0bbf75a1490a) Add RaceProgressBarComponent for visual race timeline with event markers - [`a650757`](https://github.com/IAmTomShaw/f1-race-replay/commit/a650757bf9c6b4464f85148e76ebbfc6543cdaa4) Add set_race_data method to RaceProgressBarComponent for race data handling - [`5e8610b`](https://github.com/IAmTomShaw/f1-race-replay/commit/5e8610b0c79d752042c96ba7e654cd24d9468a76) Add internal methods to calculate bar dimensions and frame position - [`3c279a4`](https://github.com/IAmTomShaw/f1-race-replay/commit/3c279a47328ebb12e3eaa02af952c06cf84c78c1) Add draw method for rendering progress bar with markers - [`6d9536a`](https://github.com/IAmTomShaw/f1-race-replay/commit/6d9536a61d50a397752ef00fd89adc653bf4431d) Add event marker drawing functionality - [`aa3ae8f`](https://github.com/IAmTomShaw/f1-race-replay/commit/aa3ae8fdbbf9bb5076a6b9d9bd010679afa87b4e) Add method to draw flag segments in RaceProgressBarComponent - [`7fb8399`](https://github.com/IAmTomShaw/f1-race-replay/commit/7fb8399a2dd4df30648a34c3e4011cf2299a2cd5) Add on_resize method to RaceProgressBarComponent for dynamic bar dimension calculation - [`51dc52e`](https://github.com/IAmTomShaw/f1-race-replay/commit/51dc52e79a507682e787c7b2758f1a27ce007361) Add tooltip drawing functionality to RaceProgressBarComponent for event markers - [`56798d9`](https://github.com/IAmTomShaw/f1-race-replay/commit/56798d935dea55f6accabdad22e2f3716c0f06f7) Add legend drawing functionality to RaceProgressBarComponent for event markers - [`791e34d`](https://github.com/IAmTomShaw/f1-race-replay/commit/791e34d05a481da478d1cd92eeda4794e428f509) Add mouse press handling to RaceProgressBarComponent for seeking positions ### 📊 Changes **2 files changed** (+539 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/interfaces/race_replay.py` (+40 -3) 📝 `src/ui_components.py` (+499 -0) </details> ### 📄 Description This PR introduces a visual **race progress bar** at the bottom of the replay window that provides an "at-a-glance" timeline of the race with some important event markers. <img width="1483" height="893" alt="Screenshot 2025-12-15 at 14 24 23" src="https://github.com/user-attachments/assets/f0835731-46eb-4651-8086-a0265fa4dc29" /> - `src/ui_components.py` - Added `RaceProgressBarComponent` class and `extract_race_events()` function - `src/interfaces/race_replay.py` - Integrated progress bar into the replay window --- <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:40 +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#103
No description provided.