Add map view for location search results
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 1m13s
Build and Push Docker Images / Trigger Portainer Update (push) Successful in 0s

Implemented split-view map layout for postcode searches:
- List/Map toggle appears when doing location search
- Map view shows interactive map with school markers on left
- Compact school list on right with distance badges, stats, actions
- Mobile responsive: stacks vertically with map on top
- Updated School type to include distance and total_pupils fields

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Tudor
2026-02-04 10:05:31 +00:00
parent ea6820f1c4
commit 1b0d6edb98
4 changed files with 389 additions and 16 deletions

View File

@@ -29,6 +29,9 @@ export interface School {
latitude: number | null;
longitude: number | null;
// School context
total_pupils?: number | null;
// Latest year metrics (for search/list views)
rwm_expected_pct?: number | null;
reading_expected_pct?: number | null;
@@ -41,6 +44,9 @@ export interface School {
// Trend indicators (for list views)
prev_rwm_expected_pct?: number | null;
trend?: 'up' | 'down' | 'stable';
// Location search fields
distance?: number | null;
}
// ============================================================================