From ab688243d725a0a3e8642ad179fefa467a6d1460 Mon Sep 17 00:00:00 2001 From: Andras Schmelczer Date: Fri, 3 Jul 2026 18:39:34 +0100 Subject: [PATCH] .. --- .../src/components/account/AccountPage.tsx | 68 +++++++++-- .../src/components/invite/InvitePage.test.tsx | 63 +++++++++++ frontend/src/components/invite/InvitePage.tsx | 19 +++- .../src/components/landing/SeoContentPage.tsx | 22 ---- frontend/src/components/map/HoverCard.tsx | 3 + .../src/components/map/LocationSearch.tsx | 2 +- .../src/components/map/MapErrorBoundary.tsx | 8 +- frontend/src/components/map/MobileDrawer.tsx | 2 +- .../src/components/map/NumberLine.test.ts | 4 +- frontend/src/components/map/NumberLine.tsx | 2 +- .../components/map/map-page/derivedState.ts | 2 + .../components/map/map-page/lazyComponents.ts | 1 + pipeline/check_school_cutoffs.py | 4 +- pipeline/check_travel_times.py | 6 +- pipeline/download/broadband.py | 2 +- pipeline/download/census_population.py | 4 +- pipeline/download/crime.py | 2 +- pipeline/download/development_sites.py | 4 +- pipeline/download/education.py | 6 +- pipeline/download/election_results.py | 2 +- pipeline/download/england_boundary.py | 2 +- pipeline/download/ethnicity.py | 2 +- pipeline/download/gias.py | 8 +- pipeline/download/greenspace_water.py | 6 +- pipeline/download/lsoa_children.py | 2 +- pipeline/download/lsoa_population.py | 2 +- pipeline/download/test_tenure.py | 2 +- pipeline/download/test_transit_network.py | 2 +- pipeline/transform/area_crime_averages.py | 8 +- pipeline/transform/crime.py | 4 +- pipeline/transform/crime_spatial.py | 2 +- pipeline/transform/join_epc_pp.py | 33 ++++-- pipeline/transform/merge.py | 106 +++++++++++++----- pipeline/transform/poi_proximity.py | 6 +- server-rs/src/main.rs | 7 +- server-rs/src/routes/invites.rs | 24 ++-- 36 files changed, 307 insertions(+), 135 deletions(-) create mode 100644 frontend/src/components/invite/InvitePage.test.tsx diff --git a/frontend/src/components/account/AccountPage.tsx b/frontend/src/components/account/AccountPage.tsx index 3e19e44..ab0a10a 100644 --- a/frontend/src/components/account/AccountPage.tsx +++ b/frontend/src/components/account/AccountPage.tsx @@ -20,6 +20,7 @@ import { BookmarkIcon } from '../ui/icons/BookmarkIcon'; import { TrashIcon } from '../ui/icons/TrashIcon'; import { CloseIcon } from '../ui/icons/CloseIcon'; import { useLicense } from '../../hooks/useLicense'; +import { useModalA11y } from '../../hooks/useModalA11y'; function PageLayout({ children }: { children: React.ReactNode }) { return ( @@ -43,17 +44,43 @@ function DeleteDialog({ onConfirm: () => void; }) { const { t } = useTranslation(); + const dialogRef = useModalA11y(); + + useEffect(() => { + const handleKeyDown = (e: KeyboardEvent) => { + if (e.key === 'Escape') onCancel(); + }; + document.addEventListener('keydown', handleKeyDown); + return () => document.removeEventListener('keydown', handleKeyDown); + }, [onCancel]); + return ( -
-
+
+