fix: the gameweek pager wraps on a phone; the second transfer respects the club cap (#34) #41
No reviewers
Labels
No labels
architecture
cleanup
dependencies
enhancement
needs-info
needs-triage
performance
priority: high
priority: medium
ready-for-agent
ready-for-human
reliability
security
testing
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
solvreven/FPL!41
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/gw-nav-wraps-on-a-phone"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Targets
feat/captaincy-board(#31). Two frontend fixes, one commit each, each with its own?v=bump following the asset ritual (169, then 170).1. The gameweek pager wraps on a phone
test_header_narrow[400]failed on every #31 run: "the page is 410px wide on a 400px screen". The header wasn't the problem. The overflow was.gw-nav: stepper, XI total, formation and the card-line<select>in a flex row with no wrap, ending at 409.8px..gw-navgetsflex-wrap: wrapin its one rule, not in an appended override (#7/#26), per CLAUDE.md's "content folds; it does not vanish".tests/data/style.baseline.csscarries the same declaration as an intended change for the render gate, the wayea6c214did for the strength kicker.2. The second transfer is club-capped against the squad the first one left (#34, item 2)
bestSwapFromread the cap fromclubCounts(), which countsSQUAD.picks, the squad before either move. When searching for the second move it still counted the player the first move sold and missed the one it bought.clubCounts(excludeId, picks = SQUAD.picks)now counts the squad being searched; the single-move caller is unchanged.Two tests in
test_banking_move_now_vs_wait.py, one per direction, both red before the change:Verification (local, Playwright 1.62 / Chromium 151)
tests/webwith the browser: 1306 passed, 8 skipped, 0 failed. #31's head had 1 failure (the 400px one).test_css_characterization.pypasses against the updated baseline.Browser tests are local-only since #38, so CI here runs syntax/tests/wheel.
🤖 Generated with Claude Code