fix: offer refresh button when round history is empty

When a player has rating_history (graph) but no round_history (per-round
detail), calculating a target produced a dead-end error. Now the modal
detects the NO_ROUNDS case and shows a button that triggers the existing
refresh-round-history endpoint and re-runs the calculation on success.
Handles the 24h rate-limit and other refresh errors explicitly.
This commit is contained in:
Samuel Enocsson
2026-05-22 13:32:02 +02:00
parent 1e66b9f94f
commit 96edc606d3
2 changed files with 69 additions and 0 deletions
+7
View File
@@ -353,3 +353,10 @@
.target-rating-result .loading {
color: var(--text-muted);
}
.target-rating-result .no-history-prompt {
display: flex;
flex-direction: column;
gap: 12px;
align-items: flex-start;
}