e-mission / op-admin-dashboard

An admin/deployer dashboard for the NREL OpenPATH platform
0 stars 8 forks source link

load only last 7 days data for trip and trajectory table at begining. #90

Closed achasmita closed 8 months ago

achasmita commented 8 months ago

Changing it to load for past 41 days

Screen Shot 2023-11-29 at 8 32 42 PM Screen Shot 2023-11-29 at 8 32 54 PM

achasmita commented 8 months ago

As we are reading data only for last 7 days on login, I changed the trips trend on initial screen(home screen) to "last week trip trend".

achasmita commented 8 months ago

As we are reading data only for last 7 days on login, I changed the trips trend on initial screen(home screen) to "last week trip trend".

I noticed that when we change date range in date filter, trip trends also get changed based on date range in filter. Previously I renamed it to "last week trip trend" as it will show last week trip trend in begining. But as it gets updated with change in date filter we need to think some other name. ![Screen Shot 2023-12-01 at 1 01 42 PM](https://github.com/e-mission/op-admin-dashboard/assets/79387860/a635129e-dd8a-4a80-b5b9-02ebcd24df94)
shankari commented 8 months ago

@achasmita this PR is still a draft, but it is in my "to review" bucket. What input (if any) would you like from me here?

achasmita commented 8 months ago
I was thinking what name can we give for trip trend as it will display trend for a week at beginning and can be changed to display trend for days, months or years. What if we include the date range itself in trip trend like this: ![Screen Shot 2023-12-02 at 11 39 48 AM](https://github.com/e-mission/op-admin-dashboard/assets/79387860/b758793c-ef09-474c-a7dd-bd7b7fd31d54)
shankari commented 8 months ago

I was thinking what name can we give for trip trend as it will display trend for a week at beginning and can be changed to display trend for days, months or years. What if we include the date range itself in trip trend like this:

I think this is fine for now. We can always tweak it later based on feedback.