Animer le survol des cartes au-dessus d’une grille en cache (#88) #97

Merged
nessar merged 4 commits from feat/88-card-hover into develop 2026-11-22 00:17:36 +01:00
4 Commits
Author SHA1 Message Date
nessarandClaude Opus 5.5 2770a39760 Let a whole card of the first row rise out of the list (#88)
CI / core (pull_request) Successful in 1m44s
CI / core (push) Successful in 1m37s
A lifted card was cut where its grid cuts it unless the grid showed it
whole, tested as `visible.intersect(&bounds) == bounds`. With columns of
a fractional width, the intersection rebuilds the size by subtraction
and misses the card's own by a rounding error: the first row's lifted
card was cut at the list's top edge. The test now allows a pixel of
slack on each side.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WYQB8paBcLk67XoAUYARBK
2026-11-22 00:04:55 +01:00
nessarandClaude Opus 5.5 95bc4f6664 Read the lifted card from the grid and put it down more often (#88)
CI / core (pull_request) Successful in 1m38s
From the review of PR #97:
- A grid no longer shown, a card filtered out, or a wheel at either end
  of the list puts the grid's cards down at once (`PutDown`): no frame
  is asked for a card no longer drawn, and a wheel always puts it down
  while its tick stays lit under the pointer.
- The lifts hold card ids only. The grid records each placed card's
  index while it builds its rows, and the layer draws the grid's card as
  it is now: no search or copy per hover, and a lifted card shows a new
  top 1 or reason at once.
- A card the keyboard lifted goes down as soon as the pointer moves.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WYQB8paBcLk67XoAUYARBK
2026-11-21 23:29:48 +01:00
nessarandClaude Opus 5.5 162e689a40 Say that a hover no longer draws the home grid (#88)
CI / core (pull_request) Successful in 1m38s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WYQB8paBcLk67XoAUYARBK
2026-11-21 19:42:53 +01:00
nessarandClaude Opus 5.5 b78be1ff0b Lift the hovered card over a cached grid (#88)
The card under the pointer or the keyboard rises over its grid in about
0.35 s: 10 px with a gold glow, 4 px without for a greyed card, the
illustration zooming to 107 % inside it while the caption fades and the
sheet slides up over the lower half. Leaving it mid-way starts from where
it is; a wheel drops it at once; in the hand a veil lays on the other
cards. With Windows animations off the sheet shows without sliding and
the card stays put.

The grids never change on hover or focus any more: they record where
they placed their visible cards, and the page draws the lifted cards in
a deferred layer over them, asking for frames only while one moves.
Structural tests check that a hover, through its animation, draws no
grid, builds no card and computes no statistics.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WYQB8paBcLk67XoAUYARBK
2026-11-21 19:18:31 +01:00