Skip to content

Display Dashboard for Forest Inventory #164

Description

@arnaudfnr

Objective

The goal of this ticket is to display the "inventaire" layer charts with agregated indicators.
The expected design is available here : https://www.figma.com/make/QtxYpR1v4gT53ZmUXIrLTn/System-Dashboard--All4T-?p=f&t=0Fi37DSB9pEM5Lk4-0

Image

Context

  • The dashboard page skeleton with a first chart example has already been created in Create Dashboard Page #163
  • The endpoint ${HOST}/api/maps/dashboard/${LAYER_ID} returns agregated indicators by year.
  • For now, only the indicators of the layer 'inventaire" (corresponding to forest indicators) are supported.
  • ⚠️ Not all agregated indicators are computed correctly, because it's still a work in progress. Plan a fallback with fake data for those indicators see an example of data formatting here
  • Ideally, try to reuse as much code as possible from features/indicators module or to adapt it so it can be used for popup data and dashboard data (forest indicators correspond to biodiversity and soil folders)
  • A user must be logged in to access the dashboard page. see the App router
    - staging admin credentials are available at the end of this doc
  • The client that retrieves data from the backend has already been created. see api client
  • A first chart is already displayed on the dashboard page based on the retrieved data. see Dashboard Page
  • The expected charts to be displayed are not exhaustive on the figma design. For exhaustivity, check this file](https://docs.google.com/document/d/1nJdUncC4BTojnhH6J1J0WxjXQzRe5nBQevK2-YyvzV4/edit?usp=sharing) under section DASHBOARD and sub section Biodiversité
  • All the expected charts components excepted line charts components have already been created for the popup feature see features/charts, biodiviersity and soil folders. They should be reused for the dashboard charts. (similar data shape)
  • Line chart components must be added in the features/charts module.
  • Error values will be displayed in the charts with another ticket, see Add error margins to dashboard charts #168

Metadata

Metadata

Assignees

Projects

Status
Ready to dev

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions