Skip to content

Add Reservoirs by River Basin #182

@manudous

Description

@manudous

Feature: Add Reservoirs by River Basin

We want to implement a new navigation flow to display reservoirs grouped by river basins (cuencas), similar to the existing “Embalses por provincia” feature.

Video explaining the issue

https://drive.google.com/file/d/1EoAMjhHP42OCnaVemhMpodlxcRO92dOc/view?usp=sharing

Ask for permission to view the video :)


Requirements

Add Navigation Link

  • Add a new link on the right side of “Embalses por provincias”.
  • The new link should be named: “Embalses por cuencas”.
Image

Basins Listing Page

  • Create a new page similar to the existing “Embalses por provincia” page.
  • This page will display a list of river basins.
  • When the project starts, we already store the list of basins in our database.
  • Therefore, we should:
    • Consume the existing basins data from our database.
    • Display the list on the new page.
use('embalse-info');

db.getCollection('cuencas').find({}, { _id: 1, nombre: 1 }).toArray();

Similar to this but with river basins

Image

Reservoirs by Basin

  • When the user clicks on a basin:
    • Navigate to a new page.
    • Call a new API endpoint to retrieve the list of reservoirs belonging to that basin.
    • Display the list of reservoirs.
use('embalse-info');
db.getCollection('embalses').find({ 'cuenca.nombre': "Segura" }, { _id: 1, nombre: 1 }).toArray();

Reservoir Details

  • When the user clicks on a specific reservoir:
    • Navigate to the reservoir detail page.
    • Show the detailed information.
    • Reuse the same detail logic already implemented for “Embalses por provincia”.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions