Skip to content

feat: read the XP leaderboard from ffdb.info - #47

Merged
CodySimonds65 merged 1 commit into
mainfrom
feat/ffdb-leaderboard
Nov 4, 2026
Merged

CodySimonds65 merged 1 commit into
mainfrom
feat/ffdb-leaderboard

Conversation

@CodySimonds65

Copy link
Copy Markdown
Owner

Moves the desktop leaderboard off our free Render server and onto ffdb.info.

What changes

  • The default leaderboard host is now https://ffdb.info, requested as api/leaderboards?period=daily|weekly|monthly&page=N. FOURFOLD_LEADERBOARD_URL still overrides the host.
  • ffdb.info returns the same page shape our service did (period, UTC window, page, pageSize 25, entries), so the existing page checks stay as they are.
  • ffdb.info tracks public profiles on its own and has no participation endpoint. The heartbeat, the installation id and the Share linked accounts checkbox and setting are removed, because an opt-out the app can't honour would be misleading. The panel now says rankings come from ffdb.info and that the app sends it nothing.
  • Pages cached by the old service still load; old state and settings files with the removed fields are read without error.
  • README updated.

Not in this PR

  • FourFoldAccountManager.Leaderboard.Service, render.yaml and the README maintainer notes stay in place, since the service still builds against the shared contracts. They can be deleted once this is released and the Render service is shut down. Older app versions keep calling the Render URL until they update.

Testing

  • Solution builds with 0 warnings.
  • Core.Tests 356/356 and Desktop.Tests 34/34 pass, including new tests for the ffdb request URL, an ffdb-shaped response and loading an old state file.
  • Leaderboard.Tests: 32 pass; the 8 store tests need Docker, which wasn't running locally (that project is unchanged).
  • Ran the real LeaderboardApiClient against live ffdb.info: daily, weekly and monthly pages 1 and 2 all load and pass validation (weekly 41 entries, monthly 44).
  • The app's leaderboard panel was not opened by hand.

The desktop now reads daily, weekly and monthly rankings from
ffdb.info/api/leaderboards instead of our Render service, so no server
of ours is needed. ffdb.info tracks public profiles on its own and takes
no sign-ups, so the participation heartbeat and the Share linked
accounts setting are removed. Saved pages from the old service still
load.
@CodySimonds65
CodySimonds65 merged commit 015fa4e into main Nov 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant