mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 11:50:42 +00:00
76f8441b45
## Description: Adds a new `warning` news type to the news banner system and uses it to display a Firefox performance notice. Changes: - Added `warning` type with red styling to `NewsBox.ts` - Added `news_box.warning` key (`"WARNING"`) to `en.json` - Added Firefox performance notice to `resources/news.json` using the new `warning` type - Added `news_box.*` dynamic key pattern to `TranslationSystem.test.ts` to fix unused key detection ## 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 - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced ## UI change: <img width="2101" height="1770" alt="CleanShot 2026-04-16 at 15 04 35@2x" src="https://github.com/user-attachments/assets/7a8b9290-4216-4799-b271-606afd9b8723" /> ## Please put your Discord username so you can be contacted if a bug or regression is found: fghjk_60845
31 lines
895 B
JSON
31 lines
895 B
JSON
[
|
|
{
|
|
"id": "firefox-performance-issues-2026",
|
|
"title": "Firefox Performance Issues",
|
|
"descriptionTranslationKey": "news_box.firefox_warning",
|
|
"url": null,
|
|
"type": "warning"
|
|
},
|
|
{
|
|
"id": "clan-tournament-spring-2026",
|
|
"title": "Upcoming: Spring Clan Tournament",
|
|
"description": "2v2 clan battles — Sign up on Discord before April 12",
|
|
"url": "https://discord.gg/openfront",
|
|
"type": "tournament"
|
|
},
|
|
{
|
|
"id": "clan-tournaments-2026",
|
|
"title": "Clan Tournaments",
|
|
"description": "Join a clan and compete in weekly tournaments on Discord!",
|
|
"url": "https://discord.gg/openfront",
|
|
"type": "tournament"
|
|
},
|
|
{
|
|
"id": "tutorial-2026",
|
|
"title": "New Player Tutorial",
|
|
"description": "Learn the basics of OpenFront in this video guide",
|
|
"url": "https://www.youtube.com/watch?v=EN2oOog3pSs",
|
|
"type": "tutorial"
|
|
}
|
|
]
|