Commit Graph
2 Commits
Author SHA1 Message Date
nessarandClaude Opus 5.5 1eebb86902 Call Riot through the relay, without a key (#149)
Every Riot call goes to {relay}/{routing value}{Riot path} and sends no
key. The relay's address is built in (arena-tracker.nessar.fr);
relay_url in config.toml replaces it for development. A riot_api_key
left by an older version is never read, and is written back on save.

The personal keys' local pacing is gone. An import waits out each
Retry-After as often as it comes (at least a second each time), and so
do Mastery requests. A 5xx is the service unavailable, with its own
banner; a 401/403 is a refusal, which for a timeline the Match itself
confirms before it is stored, so a key failing on the relay's side
stores no refused Death Recap.

The first-launch key prompt, the key field in « Paramètres » and the
Friend refusal's « Paramètres » button are removed; the follower starts
with the app. KeyForm, KeyStore and KeyEvent become SettingsForm,
SettingsStore and SettingsEvent. README, user guide and interface spec
no longer ask for a key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-28 13:44:58 +01:00
nessarandClaude Opus 5.5 4392191a22 Add Friends by Riot ID and delete Accounts in the core (#116, #117)
- add_friend resolves a Riot ID, refuses it with a French reason (malformed,
  unknown, other region, no key) or answers the stored Account, and stores a
  Friend with the platform its region gives (accounts.friend, migrated)
- import_friend imports a Friend's history: the current Season first, then
  the rest, resumes from the listing when cut, then lists only since the mark
  sync also uses; Mastery Points once per call, on the stored platform when
  the Friend has no Match yet
- Each request of a Friend's import waits on a Condvar while a follower round
  or refresh runs or a finished game's Match is awaited
- account_summary and delete_account: Match count and client-only details for
  the confirmation; one transaction removes Matches, points, marks, blocks and
  the Death Recaps no other Account shares; the follower forgets the Account
  so it is adopted again with a full import
- RiotApi asks the active region by puuid and maps platforms to routing
  regions; marks and points are not written for a deleted Account

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-25 20:08:03 +01:00