-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/owm report mirrored #109
Conversation
…osure tabs TODO: Still need to cache the value in the vuex store for an hour max, and fetch it if it exists. Also conditionally render OWM report on home tab based on whether user is admin
…m-report-mirrored
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The structure of this looks mostly good! My main comments are on styling and some logic/variable choices. Nice job!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice. Still a couple of questions. Also a reminder to keep your commit messages telling us why something was done.
These changes should be in a seperate PR instead of this one. TODO: create a seperate pr to address this bug
Problem: Users wanted to see OWM reports on the home tab of site pages.
Solution:
Created a component out of the OWMReport data and copied it over to the home tab.
Carried over property of the data only being visible to Admins.
In addition improved performance of app by changing the behavior of the OwmReport. Previously it would call the api every time it was mounted. Now, api calls are made in the store so they can be cached. The component will request its data from the store and the api will only be called if an hour has passed since the last report was received.
Added Vuex-persistedstate module
Using persisted state module to store owmReport in localstorage