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>
With the statistics missing, the Anvil area no longer repeats « Aucune Saison
en cours » when the header already says it, and « Autres champions » is not
offered since there is nothing to browse.
Test tidy-ups: the saved-portraits assertion message says what is checked,
main.rs tests use card_images' TestDir instead of their own TempDir, and the
test-only accessors of Page move after the last method so choose_sort reads
with its doc comment.
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>
The champions thread downloads the card portraits after the square ones
and tells the page at most once a second while they arrive, plus once at
the end, so each shows without a restart. A card shows its tall portrait,
the square icon while it is missing, else its plain background.
Each card grid reads its portraits through its own image cache: only the
cards it paints are loaded, and what its previous render did not paint is
dropped at its next render, from the GPU atlas too, and all of it with the
grid.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Folded at each new selection, it lists the champions without an anvil (all of
them, as « Tous les champions », when the client gave no Anvil list) with the
anvil row's cards, order and greyed reasons. Its own search filters only this
section. Its cards are built only while it is open, in a cached virtualized
grid. The `others` profiling part is documented.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The home takes the selection: the Challenge of the signed-in Account for the
current Season, then a row of the Anvil champions in the home grid's order with
the reasons Validé, Banni, Pris par un allié and Indisponible. The old text view
is removed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A wheel scroll moves cards under a still pointer without a hover event, so
the sheet could stay on a card no longer under it. The grid now forgets the
hovered card on scroll; the next mouse move hovers the right one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sheet covers the card with the Season's Matches, Wins, best Placement
and Attempts, and the date of the first top 1 for a Completed champion. Its
lines are prepared in Card::from_row; only the shown cards build it. The
grid keeps the hovered card and one focus handle per card id, and handles
Tab and Shift-Tab itself, scrolling the next card's row into view.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Add the champion card (portrait, name, "Joué" and "Victoire" marks, greyed with
"Validé" once completed) and a cached, virtualised card grid that replaces the
home's table. Columns follow the window width as in the mockup. Cards are built
once per statistics change; hovering or scrolling only redraws the grid.
Profiling part `home-list` becomes `cards`.
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 app opens on « Défi »: the Season of the Challenge, a one-line
counter with a thin progress line, and the champion table filtered by
Tous / Restants / Validés and a search of its own. A navigation of two
keyboard-focusable buttons leads to « Statistiques », which keeps the
analysis, with the charts now ordered curve, Placements, Attempts.
The home follows the Season chosen on Statistiques (the current one for
all Seasons) and ignores the Format. Its statistics come from the same
worker job as the Statistics tab's, and are only computed apart when the
two scopes differ. The home renders no chart and the hidden tab's table
is not rebuilt.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Move only, no behaviour change: the tiles, the charts row and the table
section leave the page, which keeps the shared state, the header row, the
banners and the champ select view.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>