Invalid timeline should cause warning in dashboard
Default time range can be changed from a map product without accessing map product wizard. This can be done by changing map preset after selecting a custom time range for a map product.
Invalid timeline may confuse users so we should give a warning message in case of invalid timeline.
Steps to reproduce
- Open the map product wizard.
- Select a map preset that has both observation and forecast data.
- Select a custom time range that extends both observation and forecast data.
- Save the map product.
- Open the map product in full screen mode.
- Change map preset to not have either observation or forecast data.
What happens
The map product will show observation AND forecast on the timeline but there is no data for the full length of the time range
What should happen
Map preset should be changed and a invalid state should happen, but user should be warned about it.
Proposed solution
Show warning if custom time range is exceeds default time range.
In the warning there should be instructions how to fix this issue: "Please resave the map product in edit wizard" etc.
If a validation error could be displayed in the map wizard that would be great, but please consider the effort needed to implement this. This invalid state is rare and should be fixed by small amount of changes to the code.