UBCSailbot / sailbot_workspace

UBC Sailbot's monorepo
https://ubcsailbot.github.io/sailbot_workspace/main/
Apache License 2.0
4 stars 1 forks source link

Filter datapoints by timestamp #279

Closed jahn18 closed 5 months ago

jahn18 commented 6 months ago

Purpose

We want to filter all the datapoints we have on the map and the data dashboard by timestamp.

Description

A good example of this kind of filter is found here: https://exocet.cloud/grafana/d/bsbc_5MGz/malizia-public-dashboard?orgId=15&from=1674769990775&to=1674775649311

The following steps will need to be taken:

  1. Create a new component TimestampFilter.

This should be identical to the filter shown on the datadashboard (maybe not as detailed), but users should at least have the option to choose between two different time ranges.

  1. Based on the selected range the user has chosen, save it to redux.

[TBD]

  1. Create a function that filters all the datasets passed in to the components by the selected time interval.

Resources