Miglioramenti UI e gestione puntate server

- Implementato focus automatico sulla riga successiva dopo la
  cancellazione di un'asta, con scrolling e reset focus.
- Utilizzo dei dati ufficiali del server per il conteggio
  delle puntate residue e usate su asta, con fallback manuale.
- Corretto il parsing dei campi della risposta server
  (campo 2: puntate residue, campo 5: puntate usate).
- Risolto il mancato aggiornamento immediato della UI
  (colonna "Clicks" e banner "Puntate residue").
- Aggiunto logging dettagliato per il parsing della risposta
  server e il debugging di eventuali problemi.
- Documentate le modifiche in file dedicati con scenari di
  test e istruzioni per il troubleshooting.
This commit is contained in:
2025-11-20 23:01:53 +01:00
parent c37b5b9f1e
commit 4bfcf147b4
13 changed files with 1658 additions and 11 deletions

View File

@@ -42,6 +42,18 @@ namespace AutoBidder.Models
// Contatori
public int ResetCount { get; set; } = 0;
/// <summary>
/// Puntate residue totali dell'utente (aggiornate dopo ogni puntata su questa asta)
/// </summary>
[JsonPropertyName("RemainingBids")]
public int? RemainingBids { get; set; }
/// <summary>
/// Puntate usate specificamente su questa asta (da risposta server)
/// </summary>
[JsonPropertyName("BidsUsedOnThisAuction")]
public int? BidsUsedOnThisAuction { get; set; }
// Timestamp
public DateTime AddedAt { get; set; } = DateTime.UtcNow;
public DateTime? LastClickAt { get; set; }

View File

@@ -14,5 +14,15 @@ namespace AutoBidder.Models
public string Response { get; set; } = "";
public string Error { get; set; } = "";
public double NewPrice { get; set; }
/// <summary>
/// Puntate residue totali dell'utente (da risposta server)
/// </summary>
public int? RemainingBids { get; set; }
/// <summary>
/// Puntate usate su questa specifica asta (da risposta server)
/// </summary>
public int? BidsUsedOnThisAuction { get; set; }
}
}