JASPER 267: Court-list auto-refresh and message #204
+143
−10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request for JIRA Ticket: ----267----
🔃 Auto-refresh data after 10 minutes and warn the user⚠️
This PR implements auto refreshing into the court-list page. After 9 minutes of inactivity (no adjusting filters, no searching or swapping days) the page will display a notification letting the user know that in 1 minute the page will refresh. After that 1 minute is up, the page will take the current filters and make a query.
If 9 minutes pass and the warning is visible and the user takes an action on the page, all timers will be pushed back 10 minutes and the warning snack message will be hidden.
If more timer work is needed in JASPER then I will extract this logic out to it's own component(s).
feat: auto refresh court-list after 10 minutes
feat: show warning to user refresh will happen after 9 minutes
feat: snackbar now accepts a timeout param
Type of change
How Has This Been Tested?
./manage debug
and./manage start
Checklist:
Documentation References
https://vuetifyjs.com/en/components/snackbars/
court-list-auto-refresh.mp4