Add year indicators to school modal sections
All checks were successful
Build and Push Docker Image / build-and-push (push) Successful in 56s

Display the data year for Progress Scores and School Context sections
in the school details modal, matching the existing KS2 Results format.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Tudor
2026-01-15 09:56:45 +00:00
parent c27b31220e
commit 7919c7b8a5

View File

@@ -1398,7 +1398,7 @@ async function openSchoolModal(urn) {
</div>
</div>
<div class="modal-stats-section">
<h4>Progress Scores ${createWarningTrigger("progress_scores_unavailable")}</h4>
<h4>Progress Scores (${latest.year}) ${createWarningTrigger("progress_scores_unavailable")}</h4>
<div class="modal-stats-grid">
<div class="modal-stat">
<div class="modal-stat-value ${getProgressClass(latest.reading_progress)}">${formatMetricValue(latest.reading_progress, "reading_progress")}</div>
@@ -1415,7 +1415,7 @@ async function openSchoolModal(urn) {
</div>
</div>
<div class="modal-stats-section">
<h4>School Context</h4>
<h4>School Context (${latest.year})</h4>
<div class="modal-stats-grid">
<div class="modal-stat">
<div class="modal-stat-value">${latest.total_pupils || "-"}</div>