From 8c9fc5a5e02cdb41d88fdacc2946d989ae98dd10 Mon Sep 17 00:00:00 2001 From: Eugene Burmakin Date: Sun, 26 Oct 2025 11:59:06 +0100 Subject: [PATCH] Add titles to family views for better SEO and UX and update map tile URLs to use the planet dataset. --- app/javascript/maps/vector_maps_config.js | 10 +++++----- app/views/families/edit.html.erb | 2 ++ app/views/families/index.html.erb | 4 +++- app/views/families/new.html.erb | 2 ++ app/views/families/show.html.erb | 2 ++ 5 files changed, 14 insertions(+), 6 deletions(-) diff --git a/app/javascript/maps/vector_maps_config.js b/app/javascript/maps/vector_maps_config.js index c6f16e25..46a3e3d2 100644 --- a/app/javascript/maps/vector_maps_config.js +++ b/app/javascript/maps/vector_maps_config.js @@ -1,30 +1,30 @@ export const mapsConfig = { "Light": { - url: "https://tyles.dwri.xyz/20250420/{z}/{x}/{y}.mvt", + url: "https://tyles.dwri.xyz/planet/{z}/{x}/{y}.mvt", flavor: "light", maxZoom: 16, attribution: "Protomaps, © OpenStreetMap" }, "Dark": { - url: "https://tyles.dwri.xyz/20250420/{z}/{x}/{y}.mvt", + url: "https://tyles.dwri.xyz/planet/{z}/{x}/{y}.mvt", flavor: "dark", maxZoom: 16, attribution: "Protomaps, © OpenStreetMap" }, "White": { - url: "https://tyles.dwri.xyz/20250420/{z}/{x}/{y}.mvt", + url: "https://tyles.dwri.xyz/planet/{z}/{x}/{y}.mvt", flavor: "white", maxZoom: 16, attribution: "Protomaps, © OpenStreetMap" }, "Grayscale": { - url: "https://tyles.dwri.xyz/20250420/{z}/{x}/{y}.mvt", + url: "https://tyles.dwri.xyz/planet/{z}/{x}/{y}.mvt", flavor: "grayscale", maxZoom: 16, attribution: "Protomaps, © OpenStreetMap" }, "Black": { - url: "https://tyles.dwri.xyz/20250420/{z}/{x}/{y}.mvt", + url: "https://tyles.dwri.xyz/planet/{z}/{x}/{y}.mvt", flavor: "black", maxZoom: 16, attribution: "Protomaps, © OpenStreetMap" diff --git a/app/views/families/edit.html.erb b/app/views/families/edit.html.erb index d06059c8..7007d4a3 100644 --- a/app/views/families/edit.html.erb +++ b/app/views/families/edit.html.erb @@ -1,3 +1,5 @@ +<% content_for :title, "Editing Family" %> +
diff --git a/app/views/families/index.html.erb b/app/views/families/index.html.erb index 9a4443e3..c45206c3 100644 --- a/app/views/families/index.html.erb +++ b/app/views/families/index.html.erb @@ -1,3 +1,5 @@ +<% content_for :title, "Family Management" %> +
@@ -44,4 +46,4 @@
-
\ No newline at end of file +
diff --git a/app/views/families/new.html.erb b/app/views/families/new.html.erb index c9350dfd..65e55b19 100644 --- a/app/views/families/new.html.erb +++ b/app/views/families/new.html.erb @@ -1,3 +1,5 @@ +<% content_for :title, "New Family" %> +
diff --git a/app/views/families/show.html.erb b/app/views/families/show.html.erb index 19c466d9..6b55938b 100644 --- a/app/views/families/show.html.erb +++ b/app/views/families/show.html.erb @@ -1,3 +1,5 @@ +<% content_for :title, "Family Details" %> +