Feat: Favourite maps tab (#4207)

Resolves #4202 

## Description:

As suggested in some suggestions in the main OF server
[[thread](https://discord.com/channels/1284581928254701718/1472496670267805782)],
we should have a map favouriting system since there are over 70 maps
already. People (myself included) have some maps we constantly play
during solo/private matches, so a favourite tab would be huge.

This feature adds the favourites tab to the solo and private match
selection screens. It works using localStorage for saving (device
persistence) but I can just as easily implement an infra update where
players have a 1-many relation with a `FavouriteMaps` table. That can be
a future solution. Video example right now:


https://github.com/user-attachments/assets/e8e278ab-d305-499a-81a9-d570e05db051


## Please complete the following:

- [x] I have added screenshots for all UI updates
- [x] I process any text displayed to the user through translateText()
and I've added it to the en.json file
- [x] I have added relevant tests to the test directory

## Please put your Discord username so you can be contacted if a bug or
regression is found:

bijx
This commit is contained in:
bijx
2026-06-10 13:51:37 -07:00
committed by GitHub
parent 9e9708468c
commit fe0b79ef21
4 changed files with 161 additions and 29 deletions
+7 -2
View File
@@ -521,6 +521,7 @@
"map": "Map",
"featured": "Featured",
"all": "All",
"favorites": "Favourites",
"world": "World",
"worldinverted": "World Inverted",
"giantworldmap": "Giant World Map",
@@ -622,11 +623,15 @@
"tournament": "Tournament",
"fantasy": "Other",
"special": "Special",
"arcade": "Arcade"
"arcade": "Arcade",
"favorites": "Favourites"
},
"map_component": {
"loading": "Loading...",
"error": "Error"
"error": "Error",
"favorite": "Add to favourites",
"unfavorite": "Remove from favourites",
"favorites_empty": "Click the star on any map to favourite it"
},
"private_lobby": {
"title": "Join Private Lobby",