From be23cf2fb6ebaf1f0c988b07e8b10518612d178b Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Fri, 13 Jan 2023 08:27:49 +0100 Subject: [PATCH 01/17] add missing thes, fixes #1045 --- app/src/frontend/building/data-containers/planning.tsx | 4 ++-- app/src/frontend/config/category-maps-config.ts | 4 ++-- app/src/frontend/map/layers/housing-boundary-layer.tsx | 2 +- app/src/frontend/map/layers/vista-boundary-layer.tsx | 2 +- .../obtain_livestream_data_and_load_into_database.py | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/src/frontend/building/data-containers/planning.tsx b/app/src/frontend/building/data-containers/planning.tsx index 3b7688dc..ee3d2bb9 100644 --- a/app/src/frontend/building/data-containers/planning.tsx +++ b/app/src/frontend/building/data-containers/planning.tsx @@ -140,7 +140,7 @@ const PlanningView: React.FunctionComponent = (props) => { slug="planning_live_application" value={null} disabled={true} - tooltip={"GLA official description: \"All areas with more than a 1 in 1,000 annual probability of either river or sea flooding.\""} + tooltip={"the GLA official description: \"All areas with more than a 1 in 1,000 annual probability of either river or sea flooding.\""} /> ); diff --git a/app/src/frontend/map/conservation-switcher.tsx b/app/src/frontend/map/conservation-switcher.tsx index 177469fe..942360ab 100644 --- a/app/src/frontend/map/conservation-switcher.tsx +++ b/app/src/frontend/map/conservation-switcher.tsx @@ -9,7 +9,7 @@ export const ConservationAreaSwitcher: React.FC<{}> = (props) => {
); diff --git a/app/src/frontend/map/creative-switcher.tsx b/app/src/frontend/map/creative-switcher.tsx index cf3d98d7..e32a8391 100644 --- a/app/src/frontend/map/creative-switcher.tsx +++ b/app/src/frontend/map/creative-switcher.tsx @@ -9,7 +9,7 @@ export const CreativeSwitcher: React.FC<{}> = () => {
); diff --git a/app/src/frontend/map/flood-switcher.tsx b/app/src/frontend/map/flood-switcher.tsx index 72f602c8..45d729de 100644 --- a/app/src/frontend/map/flood-switcher.tsx +++ b/app/src/frontend/map/flood-switcher.tsx @@ -9,7 +9,7 @@ export const FloodSwitcher: React.FC<{}> = () => {
); diff --git a/app/src/frontend/map/historic-data-switcher.tsx b/app/src/frontend/map/historic-data-switcher.tsx index 9488b288..e2e09893 100644 --- a/app/src/frontend/map/historic-data-switcher.tsx +++ b/app/src/frontend/map/historic-data-switcher.tsx @@ -9,7 +9,7 @@ export const HistoricDataSwitcher: React.FC<{}> = (props) => {
); diff --git a/app/src/frontend/map/housing-switcher.tsx b/app/src/frontend/map/housing-switcher.tsx index 345696c7..a0c6769f 100644 --- a/app/src/frontend/map/housing-switcher.tsx +++ b/app/src/frontend/map/housing-switcher.tsx @@ -9,7 +9,7 @@ export const HousingSwitcher: React.FC<{}> = () => {
); diff --git a/app/src/frontend/map/parcel-switcher.tsx b/app/src/frontend/map/parcel-switcher.tsx index f933773c..e2e403a3 100644 --- a/app/src/frontend/map/parcel-switcher.tsx +++ b/app/src/frontend/map/parcel-switcher.tsx @@ -9,7 +9,7 @@ export const ParcelSwitcher: React.FC<{}> = () => {
); diff --git a/app/src/frontend/map/vista-switcher.tsx b/app/src/frontend/map/vista-switcher.tsx index a26b6b51..b3a8cb38 100644 --- a/app/src/frontend/map/vista-switcher.tsx +++ b/app/src/frontend/map/vista-switcher.tsx @@ -9,7 +9,7 @@ export const VistaSwitcher: React.FC<{}> = () => {
); From 4efaf8bd903ee864d804cd67dc32cdc64c3b1b73 Mon Sep 17 00:00:00 2001 From: Mateusz Konieczny Date: Sat, 14 Jan 2023 01:12:13 +0100 Subject: [PATCH 05/17] use colours for the button state proof of concept for #1039 (tweaking clicked/hover colours may be needed) --- app/src/frontend/map/borough-switcher.tsx | 2 +- .../frontend/map/conservation-switcher.tsx | 2 +- app/src/frontend/map/creative-switcher.tsx | 2 +- app/src/frontend/map/flood-switcher.tsx | 2 +- .../frontend/map/historic-data-switcher.tsx | 2 +- app/src/frontend/map/housing-switcher.tsx | 2 +- app/src/frontend/map/map-button.css | 38 +++++++++++++++++++ app/src/frontend/map/parcel-switcher.tsx | 2 +- app/src/frontend/map/vista-switcher.tsx | 2 +- 9 files changed, 46 insertions(+), 8 deletions(-) diff --git a/app/src/frontend/map/borough-switcher.tsx b/app/src/frontend/map/borough-switcher.tsx index 56cfe415..f47b3902 100644 --- a/app/src/frontend/map/borough-switcher.tsx +++ b/app/src/frontend/map/borough-switcher.tsx @@ -6,7 +6,7 @@ import { useDisplayPreferences } from '../displayPreferences-context'; export const BoroughSwitcher: React.FC<{}> = () => { const { borough, boroughSwitch, darkLightTheme } = useDisplayPreferences(); return ( -
+