Phase 23: formation pitch view, season zone bar, season history UI

- mapper.rs: add GET /division/history route; bump exact routes assertion to ≥56
- dashboard: formation pitch view in Squad tab with CSS pitch markings, player
  chips positioned by line, bench row, Grid/Pitch toggle button; season zone
  bar in Division tab (relegation/safe/promotion colour bands + current points
  marker); season history list from GET /division/history; division response
  now includes promotion_pts, relegation_pts, season_length for richer display

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
funman300
2026-06-25 18:59:40 -07:00
parent 893ee369c2
commit ab6021adac
2 changed files with 231 additions and 14 deletions
+8 -1
View File
@@ -237,6 +237,13 @@ const EXACT: &[ExactRoute] = &[
notes: "FUT notifications (plural form) → Core notifications",
},
// ── Squad list ────────────────────────────────────────────────────────────
// ── Division / Season history ─────────────────────────────────────────────
ExactRoute {
ea_method: "GET", ea_path: "/ut/game/fut/division/history",
core_method: "GET", core_path: "/division/history",
notes: "FUT division history → Core season history",
},
// ── Squad list ────────────────────────────────────────────────────────────
ExactRoute {
ea_method: "GET", ea_path: "/ut/game/fut/squad/list",
core_method: "GET", core_path: "/squads",
@@ -697,7 +704,7 @@ mod tests {
#[test]
fn test_total_exact_routes_count() {
assert!(EXACT.len() >= 55, "expected at least 55 exact mappings, got {}", EXACT.len());
assert!(EXACT.len() >= 56, "expected at least 56 exact mappings, got {}", EXACT.len());
}
// ── Phase 22 new mappings ─────────────────────────────────────────────────