Skip to content

fix: keep alert polling active in background#236

Open
momocentral wants to merge 1 commit into
mainfrom
fix/200-audible-alert-background
Open

fix: keep alert polling active in background#236
momocentral wants to merge 1 commit into
mainfrom
fix/200-audible-alert-background

Conversation

@momocentral

Copy link
Copy Markdown
Collaborator

Summary

  • Keep the live alerts query polling while the browser tab is in the background
  • Ensure audible alerts can still trigger after new alerts are fetched in an inactive tab
  • Add a regression test for the background polling query option

Fixes #200

Local checks

  • pnpm test src/pages/AlertsPage.test.tsx -- --runInBand
  • pnpm exec eslint src/pages/AlertsPage.tsx src/pages/AlertsPage.test.tsx --no-warn-ignored
  • pnpm build

Note: full pnpm lint still reports unrelated existing errors in src/components/Alerts/AlertDetails/AlertImages/AlertImages.tsx.

@vercel

vercel Bot commented May 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
new-pyro-platform Ready Ready Preview, Comment May 23, 2026 11:53am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

The audible alert does not play if the user is not actively on the page

2 participants