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

JASPER 267: Court-list auto-refresh and message #204

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

JTraill
Copy link

@JTraill JTraill commented Mar 3, 2025

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

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

  • Unit tested
  • Ran ./manage debug and ./manage start

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Documentation References

https://vuetifyjs.com/en/components/snackbars/

court-list-auto-refresh.mp4

@JTraill JTraill added enhancement New feature or request javascript Pull requests that update Javascript code labels Mar 3, 2025
@JTraill JTraill self-assigned this Mar 3, 2025
Copy link

sonarqubecloud bot commented Mar 3, 2025

@JTraill JTraill changed the title JASPER 267: Court-list auto-refresh and warning JASPER 267: Court-list auto-refresh and message Mar 3, 2025
@JTraill JTraill marked this pull request as ready for review March 3, 2025 18:50
Copy link

@ronaldo-macapobre ronaldo-macapobre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants