fix(ui): remove duplicate data, merge sections, add sticky nav
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 34s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m12s
Build and Push Docker Images / Build Integrator (push) Successful in 59s
Build and Push Docker Images / Build Kestra Init (push) Successful in 32s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s
All checks were successful
Build and Push Docker Images / Build Backend (FastAPI) (push) Successful in 34s
Build and Push Docker Images / Build Frontend (Next.js) (push) Successful in 1m12s
Build and Push Docker Images / Build Integrator (push) Successful in 59s
Build and Push Docker Images / Build Kestra Init (push) Successful in 32s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 1s
UX audit round 2: - Remove Summary Strip (duplicated Ofsted grade + parent happy/safe/recommend) - Fold "% would recommend" into Ofsted section header - Merge SATs Results + Subject Breakdown into one section - Merge Results Over Time chart + Year-by-Year table into one section - Add sticky section nav with dynamic pills based on available data - Unify colour system: replace ad-hoc pill colours with semantic status classes - Guard Pupils & Inclusion so it only renders with actual data - Add year to Admissions section title - Fix progress score 0.0 colour (was neutral gap at ±0.1, now at 0) - Remove unused .metricTrend CSS class Page reduced from 16 to 13 sections. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
border: 1px solid var(--border-color, #e5dfd5);
|
||||
border-radius: 10px;
|
||||
padding: 1.25rem 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
margin-bottom: 0;
|
||||
box-shadow: var(--shadow-soft);
|
||||
}
|
||||
|
||||
@@ -117,41 +117,51 @@
|
||||
opacity: 0.9;
|
||||
}
|
||||
|
||||
/* Quick Summary Strip */
|
||||
.summaryStrip {
|
||||
display: flex;
|
||||
gap: 0.625rem;
|
||||
flex-wrap: wrap;
|
||||
margin: 0 0 1.25rem;
|
||||
/* ── Sticky Section Navigation ──────────────────────── */
|
||||
.sectionNav {
|
||||
position: sticky;
|
||||
top: 0;
|
||||
z-index: 10;
|
||||
background: var(--bg-card, white);
|
||||
border: 1px solid var(--border-color, #e5dfd5);
|
||||
border-top: none;
|
||||
border-radius: 0 0 10px 10px;
|
||||
padding: 0.5rem 1rem;
|
||||
margin-bottom: 1rem;
|
||||
overflow-x: auto;
|
||||
white-space: nowrap;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
scrollbar-width: none;
|
||||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
|
||||
}
|
||||
|
||||
.summaryPill {
|
||||
padding: 0.35rem 0.875rem;
|
||||
border-radius: 999px;
|
||||
font-size: 0.8125rem;
|
||||
font-weight: 600;
|
||||
.sectionNav::-webkit-scrollbar {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.sectionNavInner {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.3rem;
|
||||
gap: 0.375rem;
|
||||
}
|
||||
|
||||
.summaryPillGood {
|
||||
background: #d1fae5;
|
||||
color: #065f46;
|
||||
.sectionNavLink {
|
||||
display: inline-block;
|
||||
padding: 0.3rem 0.625rem;
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
color: var(--text-secondary, #5c564d);
|
||||
text-decoration: none;
|
||||
border-radius: 4px;
|
||||
transition: all 0.15s ease;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.summaryPillWarn {
|
||||
background: #fef3c7;
|
||||
color: #92400e;
|
||||
.sectionNavLink:hover {
|
||||
background: var(--bg-secondary, #f3ede4);
|
||||
color: var(--text-primary, #1a1612);
|
||||
}
|
||||
|
||||
.summaryPillBad {
|
||||
background: #fee2e2;
|
||||
color: #991b1b;
|
||||
}
|
||||
|
||||
/* Unified card — replaces summary / chartsSection / detailedMetrics /
|
||||
absenceSection / historySection / supplementarySection / mapSection */
|
||||
/* Unified card for all content sections */
|
||||
.card {
|
||||
background: var(--bg-card, white);
|
||||
border: 1px solid var(--border-color, #e5dfd5);
|
||||
@@ -159,6 +169,7 @@
|
||||
padding: 1.25rem 1.5rem;
|
||||
margin-bottom: 1rem;
|
||||
box-shadow: var(--shadow-soft);
|
||||
scroll-margin-top: 3.5rem;
|
||||
}
|
||||
|
||||
/* Section Title */
|
||||
@@ -192,7 +203,7 @@
|
||||
margin: -0.5rem 0 1rem;
|
||||
}
|
||||
|
||||
/* Response count badge (used in "What Parents Say") */
|
||||
/* Response count badge */
|
||||
.responseBadge {
|
||||
font-size: 0.75rem;
|
||||
font-weight: 500;
|
||||
@@ -211,6 +222,18 @@
|
||||
margin: 1.25rem 0 0.75rem;
|
||||
}
|
||||
|
||||
/* Parent recommendation line in Ofsted section */
|
||||
.parentRecommendLine {
|
||||
font-size: 0.85rem;
|
||||
color: var(--text-secondary, #5c564d);
|
||||
margin: 0.5rem 0 0;
|
||||
}
|
||||
|
||||
.parentRecommendLine strong {
|
||||
color: var(--accent-teal, #2d7d7d);
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* Metrics Grid & Cards */
|
||||
.metricsGrid {
|
||||
display: grid;
|
||||
@@ -252,11 +275,6 @@
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.metricTrend {
|
||||
font-size: 1rem;
|
||||
color: var(--accent-teal, #2d7d7d);
|
||||
}
|
||||
|
||||
/* Progress score colour coding */
|
||||
.progressPositive {
|
||||
color: var(--accent-teal, #2d7d7d);
|
||||
@@ -268,6 +286,22 @@
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/* ── Semantic status colours (unified) ────────────── */
|
||||
.statusGood {
|
||||
background: rgba(45, 125, 125, 0.10);
|
||||
color: var(--accent-teal, #2d7d7d);
|
||||
}
|
||||
|
||||
.statusWarn {
|
||||
background: rgba(201, 162, 39, 0.12);
|
||||
color: #b8920e;
|
||||
}
|
||||
|
||||
.statusBad {
|
||||
background: rgba(224, 114, 86, 0.12);
|
||||
color: var(--accent-coral, #e07256);
|
||||
}
|
||||
|
||||
/* Charts Section */
|
||||
.chartContainer {
|
||||
width: 100%;
|
||||
@@ -339,6 +373,12 @@
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
|
||||
.historicalSubtitle {
|
||||
font-size: 0.8rem;
|
||||
color: var(--text-muted, #8a847a);
|
||||
margin: 1.25rem 0 0.25rem;
|
||||
}
|
||||
|
||||
.dataTable {
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
@@ -468,7 +508,7 @@
|
||||
color: var(--text-primary, #1a1612);
|
||||
}
|
||||
|
||||
/* Admissions badges */
|
||||
/* Admissions badge — uses unified status colours */
|
||||
.admissionsBadge {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
@@ -480,16 +520,6 @@
|
||||
margin-top: 0.75rem;
|
||||
}
|
||||
|
||||
.admissionsBadgeWarn {
|
||||
background: rgba(201, 162, 39, 0.15);
|
||||
color: #b8920e;
|
||||
}
|
||||
|
||||
.admissionsBadgeGood {
|
||||
background: rgba(60, 140, 60, 0.12);
|
||||
color: #3c8c3c;
|
||||
}
|
||||
|
||||
/* Deprivation dot scale */
|
||||
.deprivationDots {
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user