pyronear / pyro-platform

Detection & monitoring platform of wildfires
https://platform.pyronear.org/
Apache License 2.0
10 stars 10 forks source link

Platform v2 #132

Closed MateoLostanlen closed 7 months ago

MateoLostanlen commented 8 months ago

Hello,

As discussed offline, platform redesign!

The new platform has a single page, currently defined in pages/homepages.

This page displays a list of events on the left and the information related to the selected event on the rest of the screen. This list is a set of buttons for selecting the alert to be displayed.

All callbacks are in app/callbacks with two modules for the moment one for data processing and another for display management.

The main callbacks:

Data:

api_watcher requests the api at regular intervals to update the platform Get_media_url requests the api to obtain media urls

Display: Update_event_list: create event list Select_event_with_button: defines the alert to be displayed from the buttons update_display_data: load event data to display

Don't hesitate if you have any comments!

I've deployed the new platform here

NB: There is a shift on the bonding boxes but it is likely to come from engie, I'll fix it soon.

image

MateoLostanlen commented 8 months ago

thanks a lot for your review @blenzi, I've made the changes you requested !

blenzi commented 7 months ago

Thanks for the changes, Mateo. We can leave the fix of mypy to another PR.