- Rename CardPosition/CardPositions/positions() to DrawnCard/DrawnCards/
drawn_cards(): "position" is a word CONTEXT.md avoids for Placement.
- Move the Account and status queries from page/statistics/scope.rs to
page/displayed.rs, since the whole page uses them.
- Move the home's own statistics state (settle_home_scope, set_home_result,
forget_home, home_is_current) to page/home/data.rs, leaving home.rs to
queries and rendering.
- Move the profiling flag shown() from display.rs to page/profiling.rs.
- Narrow Page::new to pub(crate), and restore the domain phrase in the
same_riot_id doc comment and the page.rs module doc.
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
Without statistics the home said « Aucun champion trouvé » under a count of
0; it now shows the same notice as the champ select (loading, no Account),
from a small StatsNotice enum instead of compared strings.
Also from the review: a structural test that hovering or scrolling
« Autres champions » recomputes no statistics, as docs/performance.md says;
English comments; one card aspect (core's CARD_ASPECT) and one cards_dir;
one builder for the champ select cards, one count badge, one test temp dir;
clearer names (with_cards_behaviour, home_has_own_scope).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- "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>
Event frames are [8, topic, {data, eventType, uri}]; decode_event returned the
whole envelope, so the cached session had no localPlayerCellId and the
pickable/disabled/anvil lists ignored the update until a fresh GET. It now
returns the envelope's data (null on Delete, which the cache already ignores).
The tests use enveloped frames, including one from raw text to the cached state.
transport_error mapped every non-TLS error to Absent, so one request timing out
while the client loads the draft sent the page back to statistics. A timeout or
an I/O error other than connection refused is now Other, which champ_select_with
treats as transient. Other readers of ClientError only use .ok(), so nothing
else changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- redraw the page on hover and lock-in changes, and reset the settings form
when champ select takes the window away
- keep the current pick when a client read fails; only a real answer that
the draft is over ends it
- read the client once per wake and share it between the follower and the
live selection, reuse session event payloads, and touch only the cached
champion list an event concerns
- replay the captured raw client responses in the fake and cover the list
cache, event updates and the anvil-champion read
- name the five champions anvil champions and the set pickable, document
them, and prepare redraw strings ahead of render
- Drop the out-of-scope responsive stats page and scrolling settings
form; keep the minimum window size.
- A refresh keeps the following mode: a followed Account stays followed,
a pinned one stays pinned.
- Flat 32 px title bar with full-height buttons, so Fermer is reachable
in the screen corner when maximized; Windows close colours on hover.
- Read the maximized state directly instead of caching it; split the
crash arms; share the window-button styling.
- Keep close to tray on by default.
- Notify once, the first time closing hides the app in the notification
area; recorded as tray_notice_shown in config.toml.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A search field above the table filters the rows as the user types, with the
state filter and the sort kept. A row matches when the normalized query (case,
accents, spaces and punctuation ignored) is part of its name or Data Dragon id,
or equals one of its aliases exactly. The aliases come from the U.GG and
Liquipedia inventory researched for the ticket and are stored locally by
Data Dragon id.
Not measured yet against the rule #1 budgets (release build, reference machine).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Core half of tickets #4 to #12, behind one public interface tested with
fake sources and a real SQLite database:
- import of Arena Match history from the Riot API, idempotent and
resumable, with a sync mark written only when a sync completes
- Season table, champion catalog, Challenge summary, champion rows,
chart series, Season and Format scopes
- game client port and adapter: signed-in Account, end of an Arena
game fetched by its id, Official Progress cross-check
- update problems reported for banners while stored data stays readable
The app crate is adapted in the next commit.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Payloads recorded from the Riot API, the local League client and Data
Dragon, trimmed, with player identities and match ids replaced. The
certificate is Riot's published root, the only one trusted when talking
to the local client.
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Two crates: a UI-free core tested natively in WSL, and a thin GPUI app
that opens the "Arena Tracker" window showing a text supplied by the core.
scripts/win builds and runs the app with the Windows toolchain from WSL
(ADR-0003), with the build directory on the Windows drive.
Closes#3
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>