[PR #108] Add simple flags to the UI #144

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

📋 Pull Request Information

Original PR: https://github.com/IAmTomShaw/f1-race-replay/pull/108
Author: @cbrowning04
Created: 12/22/2025
Status: 🔄 Open

Base: mainHead: add-flags-to-ui


📝 Commits (3)

  • 1784278 feat: simple flag display for UI
  • a2252e9 feat: add FlagComponent; feat: add flag to UI for qualifying
  • 3d61ee8 fix: resolve merge conflicts

📊 Changes

24 files changed (+73 additions, -4 deletions)

View changed files

images/flags/abu_dhabi.png (+0 -0)
images/flags/australian.png (+0 -0)
images/flags/austrian.png (+0 -0)
images/flags/azerbaijan.png (+0 -0)
images/flags/bahrain.png (+0 -0)
images/flags/belgian.png (+0 -0)
images/flags/british.png (+0 -0)
images/flags/canadian.png (+0 -0)
images/flags/chinese.png (+0 -0)
images/flags/dutch.png (+0 -0)
images/flags/hungarian.png (+0 -0)
images/flags/italian.png (+0 -0)
images/flags/japanese.png (+0 -0)
images/flags/mexico_city.png (+0 -0)
images/flags/monaco.png (+0 -0)
images/flags/qatar.png (+0 -0)
images/flags/saudi_arabian.png (+0 -0)
images/flags/singapore.png (+0 -0)
images/flags/spanish.png (+0 -0)
images/flags/são_paulo.png (+0 -0)

...and 4 more files

📄 Description

Description

This PR aims to introduce simple flags to the user interface. The flag corresponds to the host country of each race.

For the addition of new flags, flags can be sourced from https://www.freeflagicons.com/.

Examples

Britain
image

Azerbaijan
image

Aliases behaving as expected
image

Additional Comments

Flags have only been added for races included in the 2025 season, therefore any races discontinued before this season will not be available. Conditional drawing of flags is implemented, therefore no errors are raised when flags aren't available.

Also be aware that with the current implementation, qualifying is not supported.


🔄 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/108 **Author:** [@cbrowning04](https://github.com/cbrowning04) **Created:** 12/22/2025 **Status:** 🔄 Open **Base:** `main` ← **Head:** `add-flags-to-ui` --- ### 📝 Commits (3) - [`1784278`](https://github.com/IAmTomShaw/f1-race-replay/commit/1784278d8fc6c3f85dfd974f34e0b29be9de69a9) feat: simple flag display for UI - [`a2252e9`](https://github.com/IAmTomShaw/f1-race-replay/commit/a2252e9d469e1ae30acea2104039e10ee3b63bc4) feat: add FlagComponent; feat: add flag to UI for qualifying - [`3d61ee8`](https://github.com/IAmTomShaw/f1-race-replay/commit/3d61ee865a4a39e519c4d0f962f94d81b628e9df) fix: resolve merge conflicts ### 📊 Changes **24 files changed** (+73 additions, -4 deletions) <details> <summary>View changed files</summary> ➕ `images/flags/abu_dhabi.png` (+0 -0) ➕ `images/flags/australian.png` (+0 -0) ➕ `images/flags/austrian.png` (+0 -0) ➕ `images/flags/azerbaijan.png` (+0 -0) ➕ `images/flags/bahrain.png` (+0 -0) ➕ `images/flags/belgian.png` (+0 -0) ➕ `images/flags/british.png` (+0 -0) ➕ `images/flags/canadian.png` (+0 -0) ➕ `images/flags/chinese.png` (+0 -0) ➕ `images/flags/dutch.png` (+0 -0) ➕ `images/flags/hungarian.png` (+0 -0) ➕ `images/flags/italian.png` (+0 -0) ➕ `images/flags/japanese.png` (+0 -0) ➕ `images/flags/mexico_city.png` (+0 -0) ➕ `images/flags/monaco.png` (+0 -0) ➕ `images/flags/qatar.png` (+0 -0) ➕ `images/flags/saudi_arabian.png` (+0 -0) ➕ `images/flags/singapore.png` (+0 -0) ➕ `images/flags/spanish.png` (+0 -0) ➕ `images/flags/são_paulo.png` (+0 -0) _...and 4 more files_ </details> ### 📄 Description # Description This PR aims to introduce simple flags to the user interface. The flag corresponds to the host country of each race. For the addition of new flags, flags can be sourced from https://www.freeflagicons.com/. # Examples _Britain_ <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/ede7a926-606c-4c73-9af1-c056ade673c1" /> _Azerbaijan_ <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/13e03c0e-9ae0-490c-8154-78b4d1c45212" /> _Aliases behaving as expected_ <img width="1920" height="1080" alt="image" src="https://github.com/user-attachments/assets/82531de1-cedf-4510-ae35-5d58e29af799" /> # Additional Comments Flags have only been added for races included in the 2025 season, therefore any races discontinued before this season will not be available. Conditional drawing of flags is implemented, therefore no errors are raised when flags aren't available. Also be aware that with the current implementation, qualifying is not supported. --- <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#144
No description provided.