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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user