A champion is unique only within a team of an Arena Match, so the proof
of a changed PUUID now requires the same champion and Placement in the
shared Match. A Friend's Riot ID resolution waits for the follower
again before each retry. The page resolves the signed-in Account once
per change instead of at each progress message, the arc's circle is
kept across counts, and the ring's paint no longer returns a value only
a test reads. Tests: a real import of twelve Matches drives the arc,
the structural test hovers a card and scrolls the grid, and Death
Recaps, blocks and Provisional Matches are read after a rekey.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The proof of a changed PUUID also requires the same champion in the
shared Match: anyone who played in it passed before, so a Friend whose
stale Riot ID was taken by a co-player could be merged into them. A
quota wait on a Friend's Riot ID resolution is told. The arc's paths
are built once per size and progress instead of at each paint of the
ring, and a signed-in Account the page has not read yet shows no arc.
Tests now cover the session state and the sync mark of a rekey.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
An import of 10 Matches or more of the Account shown draws a thin arc
around the ring's ticks, filled from noon as Matches arrive and gone
when the import ends. The ring stays a cached view, told at most once a
second. While the import waits for a 429's Retry-After, the progress
carries the wait and the status line counts it down each second
(« Quota Riot atteint : reprise dans 12 s »), on a timer that only
exists during the wait.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A PUUID depends on the Riot application of the API key, so the relay's
production key gives every stored Account another one. Before a request
that carries a stored PUUID (a sync, a Friend's import), the Riot ID is
resolved; when its PUUID differs and a stored published Match is among
the new PUUID's, the Account, its Matches (stored Riot responses
included), Mastery, sync mark, platform, last active mark and Friend
status move to it in one transaction. A new PUUID already stored is
merged, the published Match winning. Without proof nothing changes.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A. The fixture's game id is the synthetic one every fixture uses; the test no longer rewrites it.
B. The decoder tries the key names verified on the capture first, the other spellings after.
C. The synthetic end-of-game blocks use the real block's shape: PUUID only, no names, the real
key spellings. The Riot-ID fallback test adds the names to its own block.
D. The captured-block follow test states that the fixture's player is the client's PUUID.
E. The recap of a Provisional Match flags the player with the Match's champion and Placement,
not every player on that champion; a test covers a champion played by two teams.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A block captured at the end of an Arena 3x6 game on Windows spells the
player's key `PUUID` and names no player, so the decoder never found the
signed-in one: every game waited for Riot's publication, and the page,
told of no Match, showed « Défi » without the end-of-game animation.
The decoder now also reads the names of that block (`PUUID`, `itemIds`,
`augmentPlatformIds`, `playerKills`, `playerDeaths`, `playerAssists`,
`damageDealtToChampions`, `damageTaken`). The capture is kept as an
anonymised fixture; a unit test decodes it and a follow test builds its
Provisional Match from it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The relay forwards a Retry-After of up to a day, and an import waits out
each one: the app now clamps it to between a second and ten minutes (the
relay's longest quota window) where the header is read, and says so on
SourceError::RateLimited and with_retry.
The Death Recap comments now say what happens: the relay passes any
timeline 403, a rejected key included, and the Match asked next tells
the two apart. A test plays that case (timeline refused, Match
unavailable). The shared get and SourceError no longer speak only of
the relay, the routing docs tell a region from a platform, and test
names and comments no longer speak of a key the app does not have.
The riot suites share one local server and response builder, and the
app's first-launch setup reuses open_app.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
- Rule #3: Journal and its open/launch are private again; the writer's
tests move to src/journal/tests.rs, only the launch test stays an
integration test. The « Ouvrir le dossier des journaux » selector sits
on the button itself, not on a div drawn for the test.
- The log notes the League client found and gone (its event stream
connects or drops), and a client without anyone signed in reads
"nobody signed in" instead of "absent".
- Other libraries (GPUI…) reach the log only with errors: their info and
warnings may come per frame. The HTTP client stays out entirely.
- The log opens after the single-instance check: a relayed launch no
longer writes to, nor rotates, the running instance's log.
- A whole sync through the Riot adapter is tested to log neither the key
nor a full PUUID. The URL comment follows the spec: Riot IDs may be
logged, a full PUUID may not.
- --verify-release keeps its eprintln: the publishing script reads it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The launch line carries the release version (`-dev` suffix on a dev build). A failed
rotation keeps writing to the current file and retries after another MB. The writer thread
runs an `on_start` hook, which the app uses to lower its priority. Tests for the rotation
failure and the `ureq`/debug exclusion. The profile CSV errors go to the log. Opening the
logs folder only clears its own error.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Lines are queued to one writer thread, idle at rest, that flushes once the
queue is drained and on quit. Riot calls are logged by type, never by URL;
PUUIDs are cut to 8 characters and the key never appears.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 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>
- « En partie » is prepared only while it shows: a statistics change on another tab no longer
rebuilds it nor reads its 5 Matches, and a tab switch prepares it only when it arrives. The
banner is dressed once per change.
- A game session that names no champion takes the one its champ select picked, until the
session says it (the recorded capture has no champion field).
- The 5 Matches are read again whenever the stored Matches change, a Provisional Match
published included, not only when their count does.
- Clearing the screen keeps the count of its requests: a late answer from a previous game is
dropped.
- A game the client closed and reconnected to decides its end again at its lobby.
- One rule for « a game's end without a block shows « Défi » once », shared with #129.
- Tab::is_phase and Tab::home_scoped replace the repeated tab lists; match_over and
leave_live_match hold the LiveMatch instead of Option<Option<u64>>; the 5 Matches' request
is one RecentQuery; live_match_tab is has_in_game_tab.
- Tests: one fake game client for the page tests; the end-of-game tests read Alice's client;
the app started during a game; the champ select's pick standing in; the reconnected game;
« Paramètres » closing without activating the window.
- docs/performance.md lists the `in-game-details` part; docs/interface.md says when the
screen is prepared, the pick standing in, and the reconnected game.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- The core reads the champion played in the client's gameflow session
(champion selections, else the teams, by the summoner's client PUUID) and
follows the Live Match from one read to the next: it starts with an Arena
game in progress and lasts through that game's end-of-game screen.
- The follower tells the page the Live Match on each change, before the champ
select's end, so the end of a champ select that launched a game shows
« En partie » instead of « Défi », without computing the statistics again.
- « En partie »: the banner with the champion's splash, the Season and the
count, its tick of the ring lit and the stake (« Un top 1 validerait X :
88 / 172 », or the day it was validated); « Champion en cours
d’identification » until the client says it. Under it, the card's sheet and
the champion's 5 latest Matches of the Season, read at low priority.
- A Live Match is a phase like the champ select: the signed-in Account and the
current Season, the Account selector greyed, « Paramètres » closed, and a
minimised or hidden window shown again without the focus, never raised.
- Its end-of-game block ends it and #129 decides the screen; without a block,
the lobby shows « Défi ». A screen gone with its tab falls back to « Défi ».
- Tests with the simulated client: launch from the champ select, a client met
in a game, the champion identified late, the end with and without a block,
a game outside Arena. docs/interface.md and the guide are updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0192He3BEKJ9v922udzup4Qn
- The recap draws six augment slots per player, like the seven item slots:
the augments taken, then empty slots, so the lines read in columns; the
name moves to the bubble.
- The catalog takes CommunityDragon's large augment icon (coloured by rarity)
instead of the small white glyph, shrunk to 64 px at download.
- catalog.json gets a format number: a cache from before is read again from
the sources at the same patch and its augment icons downloaded again.
- A first download tells the page every 100 icons, so icons show as they come
instead of after the whole pass.
- The icon download tests move to tests/game_data/icons.rs (Rule #2).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0192He3BEKJ9v922udzup4Qn
- A slot the source does not give keeps its one-word bubble (« Indisponible »,
« En attente » in a Provisional Match), registered only while visible.
- bubble::Visible takes a Bubble (described or a word); the tests' selectors are
set by the recap with item_selector / augment_selector, no #[cfg(test)] code.
- Name, description and icon travel as one Described in slots, chips and the
damage seen lines; the old per-field catalog accessors are gone.
- A catalog list needs 9 entries in 10 named to replace the cache.
- An unknown {{…}} reference in an augment summary becomes « ? ».
- A panic of the catalog worker is reported as Crashed; spawn_game_catalog
moves to the test fake.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0192He3BEKJ9v922udzup4Qn
Reject patch lists without any names before writing the cache and retry unusable caches at the same version. Scope visible tooltips to their player so inactive item slots need no tooltip state.
- A block is written as its event arrives, from the wait for client events, with the Riot ID
and client PUUID signed in at that moment: it builds the Match of that Account whoever signs
in before a round gets to it.
- A block whose mode nothing tells waits instead of losing its text; only a game known to be
of another mode is dropped.
- The follower remembers only the game in progress a Provisional Match stands for, and looks
at it only when that game has just ended (follow/game_end.rs).
- A Match no Season holds is still reported: its block opens its recap.
- The client leaving an Arena game is told to the page once: without a block, or with the
preference off, it shows the Challenge; a block decided on is not undone.
- « Parties » lists the Account signed in to the client, never the pinned one.
- Widening the Season for a new Match recomputes the statistics on the worker, to the Match's
own Season.
- A corrected Placement follows the unfolded player, or folds the details.
- One Death Recap read at a time; only the latest waits, and leaving the screen drops it.
- A narrow window builds its closed list no more and gives its portraits back.
- The game data cache is keyed by the client's locale too, and an icon whose route changed is
downloaded again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0192He3AqGyEbouXkQJJdnQT
« En attente » is AWAITED, the block's PUUID is the client's; the filters
of « Parties » use the core's period of a Season instead of a copy; the
list view joins the cached views in docs/performance.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
One timeline download per Match even when the queue and an opened recap
ask together; a Death Recap matched with an outdated catalog is matched
again; end-of-game blocks keep their text only while their Match may still
need it; block platforms are upper case; unbuilt blocks are retried during
their window, then only after a sync; the queue thread no longer wakes each
minute; auto-open widens Season and Format when they hide the new Match;
clearer mitigation and control-score labels.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
« Parties » shows the Provisional Match from any tab and « Paramètres »
closes, without restoring, raising or focusing the window. A setting,
on by default, keeps the Challenge instead. Root tests no longer start the
game catalog thread, which made a settings test flaky.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A block is written as received before any Match is built from it, and its
build is retried until it works, so an unverified key name loses nothing.
Riot is asked for a Provisional Match during its pending window, then only
by syncs; a sync that publishes one queues its Death Recap. Arena items
carry the 22 prefix in the exceptions, and a block's own platform names
its Match.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Only the victimDamageReceived entries of the Match-V5 timeline are kept,
fetched after a followed Match is published or when an older one is first
opened; a refusal is remembered, a passing failure is not.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A game data catalog read from /lol-game-data in the client's language, kept
on disk and renewed once per game version, so recaps stay readable with the
client closed. It keeps each augment's augmentNameId for the Death Recap.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The block is kept as soon as its event arrives and stored as a Match flagged
provisional under the Account that played; it counts at once (ADR 0006) and
Riot's published Match replaces it silently, looked up until it appears.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Teams by Placement, the Account flagged, every participant's values as the
source gives them: absent stays None, an explicit 0 stays 0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
From the review of PR #99:
- Of several followed Matches waiting, the strongest plays on its own
champion (tick, card and splash), the most recent among equals. The
comet no longer flies to one champion's tick with another's splash.
- A game the client gave no id for, or seen before any Match gave the
platform, is reported when the sync stores it: the client's id when
it has one, else the newest Match newer than every one stored. A
first import without that id stays history.
- What a Match brought comes from the Challenge's own Marks, with and
without it, instead of a second set of rules in SQL; `fetch_and_store`
is back to fetching and storing. `MatchEnd::Completed` takes the
glossary's word, and its variants are documented again.
- Only the count of the banner's title rolls in, from 10 px below, as
in the prototype; the « Dernière Partie » line still fades in.
- The Windows setting is checked where a Match is queued, and the tests
now go through the follower round and the statistics; a test checks
that the end state is what a reload shows.
- The Match's state is one `MatchPlayback`, ended in one place; the
durations are named; `MarkFill`, `Changing` and `RevealFrame` replace
bare tuples; a splash that cannot be read ends its reveal.
- `follow_client_with` takes the report itself, without a forwarding
function. docs/performance.md describes the Match animation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Challenge's chronological pass that counts the Attempts now also
records the Completed champions in the order of their first top 1, and
what the Season's latest Match, all Formats, did to its champion: an
Attempt, the completing Match, or one played after completion.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WYQB8paBcLk67XoAUYARBK
- "Autres champions" grid is never shorter than one card row.
- A Format change keeps the home's statistics (#71); the home cards
are built when "Defi" is shown again; hidden grids give back their
decoded portraits; the card holds its portrait as Arc<Path>.
- Unavailability becomes Unpickable (glossary), "selection" becomes
"champ select" in comments (#74); the statistics error is shown by
the banner only during a champ select.
- Column breakpoints follow the mockup's max-width rules, the home
tools row is search, filters, sort; stale comments fixed.
- Tests: whole row, hidden grids, stats scopes, error shown once, and
the capture's reasons end to end in the open section.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The statistics list the portraits folder and its cards subfolder once
instead of checking about 340 files. The tall-portrait pass is skipped
when the catalog refresh failed and stops at the first network error;
the core tells after each attempt whether a portrait was saved, so the
worker's throttle can tell the page after any attempt, not only saves.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ChampSelect::remaining and current_row only served the text champ select
view that #74 removed. The follow test now looks the current pick up in the
statistics rows and builds the pickable, not Completed set from can_pick.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The statistics rows carry the Mastery Points: None for an Account whose
points were never fetched, Some(0) for a champion missing from the last
list. One card order, computed only when the statistics or the preference
change, feeds the home grid, the Anvil row and « Autres champions ». The
sort selector stays visible during a champ select, the choice is saved
with the other preferences, and the sheet shows the Mastery Points
(unknown ones after the known, and not as zero).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Split the excluded set into banned and taken_by_ally, add
ChampSelect::unavailability (banned, taken_by_ally, not_offered; never for
the player's own pick) and make the anvil list an Option so an unreadable
list is not read as an empty one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tracker asks Riot for each Account's champion mastery (platform host) right
after a successful sync, and after a Match fetched by id is added, so no new
polling. Lists are stored per Account in one transaction and read back with
Tracker::mastery (None = never fetched). A failed fetch keeps the last values
and records no problem. Preferences gain champion_sort (mastery or name).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add ChampionSource::card_portrait (Data Dragon loading art) and
Tracker::refresh_card_portraits, which downloads the missing ones, crops them
to the card's 0.68 aspect at the mockup's 24 % focus, shrinks them to
308 x 453 px and saves them as JPEG in portraits/cards via a .part file.
ChampionRow gains card_portrait.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add ChampionChallenge (Matches, Wins, best Placement, date of the first
top 1) and Marks (Played, Won, Completed) on ChampionRow::challenge. They
cover one Account and one Season across all Formats, so the Format filter
never changes them. Computed in the existing chronological pass.
The first top 1 date (#73) comes from the first top 1 by start time, with
the same day convention as the progress curve, so a later or out-of-order
import never changes it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The settings show « Redémarrer » next to « Mise à jour prête ». It
verifies the kept package of the chosen channel again, hands exactly
that file to Velopack with `Update.exe apply --waitPid <pid> --package
<file>`, then quits as « Quitter » does (WM_QUIT, never hidden in the
notification area). Velopack 1.2.161 reads the file in place, waits for
the app to exit, replaces current\ and opens the new version once, or
the old one again after a failure.
After « Quitter », the next launch does the same before loading the
app, offline too, but only in the single instance: a shortcut launched
while the app runs still just brings its window back (#50).
An attempt record, <channel>-<version>.attempt next to the package
folder, holds the installer's process id. A launch that finds it never
retries on its own: it waits for a running installer (a close second
launch, or the old version reopened after a failure), then either
leaves the app to the new version or opens the current one with a
one-time notice. « Redémarrer » retries; a newer release starts fresh.
The record survives a new download of the same version, since Velopack
deletes a package it cannot open.
Velopack's swap has no rollback between its two renames; this residual
risk is recorded in ADR-0005 and docs/paquets-windows.md.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The settings offer Stable or Bêta. The choice is saved only once made;
until then the installed version's channel applies, so the beta
installer follows Bêta. Updates never change a saved choice.
Each launch, and each channel change, runs one check on a below-normal
thread. It lists the channel's Releases through the public Gitea API
(betas are pre-releases) and takes the highest version above the
installed one. The package is downloaded into
%LOCALAPPDATA%\arena-tracker\updates\partial, verified with
verify_release, then kept as <channel>-<version>; another channel's
package is removed before any network access. Only then does a green
title-bar button show « Mise à jour prête » and open the settings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Address the code review of the carried-over work:
- scripts/package extracts the snapshot with fresh mtimes, so the shared
target never reuses a workspace crate built from other sources.
- core::verify_release owns the release-folder contract (file names, size
limits, signature, identity, digest) and returns Error::InvalidUpdate; it is
tested natively with real folders, oversized manifests and missing files.
- The app's --verify-release only adds the build identity and commit check.
- French script messages, clearer path helpers, accurate Velopack stub facts.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Work in progress carried over from the main checkout: scripts/package builds
one version from one commit, packs it with vpk 1.2.161 (full packages only),
signs a manifest with Ed25519 and checks the result with the built executable.
The core verifies the signed manifest and package digest before any unpacking.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>