Show the server's version history in the About popup
Build / test (push) Successful in 38s
Build / build (push) Successful in 1m13s

The About popup is twice as wide and shows the player's and the server's
version history side by side, each in its own scrolling column. The
server's comes from GET /api/v1/version/history every time the popup
opens. The description, which is about both, is centred above the
columns, and each history starts right under its version.
This commit is contained in:
Sansan committed 2026-10-07 14:32:31 +02:00
1 parent e1e05f3904
commit 13fdb3f68c
8 files changed
+749 -184

No files matched your search

+14
View File
@@ -28,6 +28,19 @@ const SYNC_RESULT: Dictionary = {
"total_time": "00:00:03",
}
## The server's version history, newest first.
const SERVER_HISTORY: Array[Dictionary] = [
{"version": "5.0.0", "changelog": [
"#9 - Major routes refactor and expansion", "#15 - Added API for statistics",
"Token authentication for /api/v1",
]},
{"version": "4.5.0", "changelog": [
"#1 - Created request to check newest version of the app",
"#2 - Added request to download the newest version of the app",
]},
{"version": "4.0.0", "changelog": ["Changed framework from gin to Echo", "Reorganized the code"]},
]
## Song names of the first soundtrack in the statistics, to show Japanese text.
const JAPANESE_SONGS: Array[String] = [
"時の回廊", "カエルのテーマ", "風の憧憬", "魔王決戦", "遥かなる時の彼方へ",
@@ -76,6 +89,7 @@ static func make_server() -> FakeHttpTransport:
server.respond_bytes("/sync", PackedByteArray())
server.respond_json("/sync/progress", SYNC_PROGRESS)
server.respond_json("/statistics/soundtracks", soundtrack_statistics())
server.respond_json("/version/history", SERVER_HISTORY)
return server