Skip to content
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

Merged
merged 16 commits into from
Oct 23, 2023
Merged

Feature/owm report mirrored #109

merged 16 commits into from
Oct 23, 2023

Conversation

LTDakin
Copy link
Contributor

@LTDakin LTDakin commented Oct 16, 2023

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

mgdaily and others added 7 commits October 5, 2023 20:26
…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
src/components/sitepages/SiteHome.vue Outdated Show resolved Hide resolved
src/components/sitepages/SiteHome.vue Outdated Show resolved Hide resolved
src/components/status/OWMReport.vue Outdated Show resolved Hide resolved
src/components/status/OWMReport.vue Outdated Show resolved Hide resolved
src/components/status/OWMReport.vue Outdated Show resolved Hide resolved
src/components/status/OWMReport.vue Outdated Show resolved Hide resolved
@LTDakin LTDakin requested a review from mgdaily October 16, 2023 22:57
Copy link
Contributor

@mgdaily mgdaily left a 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!

@LCOGT LCOGT deleted a comment from mgdaily Oct 18, 2023
@LCOGT LCOGT deleted a comment from mgdaily Oct 18, 2023
@LCOGT LCOGT deleted a comment from mgdaily Oct 18, 2023
@LCOGT LCOGT deleted a comment from mgdaily Oct 19, 2023
@LCOGT LCOGT deleted a comment from mgdaily Oct 19, 2023
Copy link
Contributor

@mgdaily mgdaily left a 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.

src/store/modules/sitestatus/index.js Outdated Show resolved Hide resolved
src/store/modules/sitestatus/index.js Outdated Show resolved Hide resolved
These changes should be in a seperate PR instead of this one. TODO: create a seperate pr to address this bug
@LTDakin LTDakin merged commit dd1e05b into dev Oct 23, 2023
1 check passed
@LTDakin LTDakin deleted the feature/owm-report-mirrored branch October 23, 2023 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants