Make the referee dashboard's season stats one compact row, not two
KPIs and the chart now share a single flex row (chart card wider, flex-[3]) instead of a full KPI row followed by a tall standalone chart card -- the per-referee fee breakdown moves into the chart's own tooltip instead of a separate list underneath, so this stays compact and the actual games-needing-a-referee list isn't pushed below the fold. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ECGMEwrc2k4D8VQuwjstj9
This commit is contained in:
@@ -2791,12 +2791,16 @@ class RefereeManagementDashboardView(MemberAdminRequiredMixin, TemplateView):
|
||||
kpi_active_referees = len(stats)
|
||||
kpi_total_assignments = sum(row["games"] for row in stats)
|
||||
kpi_avg_games_per_referee = round(kpi_total_assignments / kpi_active_referees, 1) if kpi_active_referees else 0
|
||||
# Top 15 for the chart's own readability -- the table below it lists
|
||||
# every referee, so nothing is actually hidden, just not plotted.
|
||||
# Top 15 for the chart's own readability -- fees ride along per bar
|
||||
# for the tooltip (see referee_management.html's extra_body) rather
|
||||
# than a separate list underneath, to keep this a compact single row
|
||||
# next to the KPIs, not a second tall section pushing the actual
|
||||
# games-needing-a-referee list off screen.
|
||||
charts = {
|
||||
"referee_games": {
|
||||
"labels": [f"{row['member__first_name']} {row['member__last_name']}" for row in stats[:15]],
|
||||
"games": [row["games"] for row in stats[:15]],
|
||||
"fees": [float(row["total_fees"] or 0) for row in stats[:15]],
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user