-
Notifications
You must be signed in to change notification settings - Fork 2
Feature/#53 Layout Reservoirs by province #59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
e9e0607
dd21578
2533b22
c78f5e0
c334cb8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,52 @@ | ||||||
| export const provincias = [ | ||||||
| "Álava", | ||||||
| "Albacete", | ||||||
| "Alicante", | ||||||
| "Almería", | ||||||
| "Asturias", | ||||||
| "Ávila", | ||||||
| "Badajoz", | ||||||
| "Baleares", | ||||||
| "Barcelona", | ||||||
| "Burgos", | ||||||
| "Cáceres", | ||||||
| "Cádiz", | ||||||
| "Cantabria", | ||||||
| "Castellón", | ||||||
| "Ciudad Real", | ||||||
| "Córdoba", | ||||||
| "La Coruña", | ||||||
| "Cuenca", | ||||||
| "Gerona", | ||||||
| "Granada", | ||||||
| "Guadalajara", | ||||||
| "Guipúzcoa", | ||||||
| "Huelva", | ||||||
| "Huesca", | ||||||
| "Jaén", | ||||||
| "La Rioja", | ||||||
| "Las Palmas", | ||||||
| "León", | ||||||
| "Lérida", | ||||||
|
||||||
| "Lérida", | |
| "Lleida", |
Outdated
Copilot
AI
Dec 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The province name "Orense" uses the Spanish (Castilian) form rather than the Galician official name "Ourense". While both are acceptable, consider using the official Galician form "Ourense" for consistency with the constitutional name of the province.
| "Orense", | |
| "Ourense", |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -1,12 +1,21 @@ | ||||||
| import Link from "next/link"; | ||||||
| import { provincias } from "./array-provincias"; | ||||||
|
|
||||||
| export default function EmbalsesProvinciaPage() { | ||||||
| return ( | ||||||
| <div className="flex flex-col gap-8"> | ||||||
| <h2>Embalse por provincias</h2> | ||||||
| <Link href="/embalse-provincia/malaga" className="link-accessible"> | ||||||
| Málaga | ||||||
| </Link> | ||||||
| <div className="flex flex-col gap-8 rounded-2xl bg-(--color-base-100) p-4"> | ||||||
|
||||||
| <div className="flex flex-col gap-8 rounded-2xl bg-(--color-base-100) p-4"> | |
| <div className="flex flex-col gap-8 rounded-2xl bg-base-100 p-4"> |
Outdated
Copilot
AI
Dec 17, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The href uses provincia names directly without URL encoding. Province names contain special characters (accents like 'Á', 'Ó', 'É', spaces like 'Santa Cruz de Tenerife', 'La Coruña', etc.) which need to be properly URL-encoded. Consider using encodeURIComponent(provincia) in the href to ensure the URLs are correctly formed.
| href={`/embalse-provincia/${provincia}`} | |
| href={`/embalse-provincia/${encodeURIComponent(provincia)}`} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The province name "Gerona" uses the Spanish (Castilian) form rather than the Catalan official name "Girona". While both are acceptable, consider using the official Catalan form "Girona" for consistency with the constitutional name of the province. The same applies to "Lérida" (line 30) which should be "Lleida".