Closed rudokemper closed 2 months ago
Acceptance criteria:
Download CSV
and Download GeoJSON
buttons work for Mapeo point.geocoordinates
field similar to an alert with Google maps link. created
and modified
to be a more legible timestamp.version
and id
values.
Feature Request
To complete the end-to-end alerts workflow, we need to show Mapeo data related to the alerts on the Alerts Dashboard. To accomplish this, we need to know the following information at minimum:
categoryId
s from the Mapeo configuration that are relevant to alerts.With this information, we can expand the /
{table}/alerts
API endpoint to query the db table for only thosecategoryId
specified in the env var, include it in the response.From there, we can add the Mapeo data to the map much like we do for the
Map
view, with a Mapbox event listener to open the Mapeo data in the sidebar.Implementation Plan
VIEWS: "alerts"
arrays inNUXT_ENV_VIEWS_CONFIG
, add additional keysMAPEO_TABLE
andMAPEO_CATEGORY_IDS
(which takes multiple comma-separated values, that should match the Mapeo configcategoryId
)/${table}/alerts
GET endpoint; query the db to retrieve only values withcategoryId
match, store those in amapeoAlertsData
object to be added to the endpoint response.mapeoAlertsData
object toAlertsDashboard.vue
component and add the data to the Mapbox map with event listeners to show Mapeo data in the sidebar on click, akin to how things are done inMap.vue
.