Coach lineup polish, referee level/position delete, feature-flag nav gating, per-job pause
- Coach line-up screen: more breathing room above the sheet, brighter event subtitle, and the "Schedule" button now matches the date input's height. - Positions and referee levels can now be deleted from Settings (blocked with a friendly message if still in use on a roster/referee profile/inheritance chain). - The Evaluations nav placeholder is now gated on the formbuilder flag, same as Forms itself, since the design reuses formbuilder underneath. - Control panel: each scheduled platform job can now be paused/resumed individually (features.models.JobToggle), independent of the platform-wide Maintenance lock. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -11,7 +11,7 @@ from datetime import timedelta
|
||||
from django.utils import timezone
|
||||
|
||||
from features.jobs import JOB_REGISTRY
|
||||
from features.models import JobRun
|
||||
from features.models import JobRun, JobToggle
|
||||
|
||||
#: Runs shown per job on the Jobs tab -- enough to see a pattern (a job that fails every
|
||||
#: third day, say) without the page turning into a full audit log.
|
||||
@@ -32,6 +32,7 @@ def job_overview():
|
||||
"label": meta["label"],
|
||||
"description": meta["description"],
|
||||
"schedule": meta["schedule"],
|
||||
"enabled": JobToggle.is_enabled(name),
|
||||
"runs": (runs := list(JobRun.objects.filter(name=name)[:RECENT_RUNS])),
|
||||
"latest": runs[0] if runs else None,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user