Skip to content

fix(insights): suppress error toasts on silent background refresh - #14

Merged
gkhngyk merged 1 commit into
mainfrom
fix/silent-refresh-error-toast
May 15, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
fix/silent-refresh-error-toast

Conversation

@gkhngyk

@gkhngyk gkhngyk commented May 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • The insights page polls every ~10s while a tracking job is running so new results appear progressively.
  • A transient 5xx / network blip during a silent background refresh was popping a red error toast even though the next poll would retry and the user would never have noticed the failure.
  • Silent refreshes now log to console only; toasts still fire for foreground calls (initial load, filter change, post-stop refresh's user-triggered path).

Test plan

  • Start a tracking job, confirm no red toasts appear while it runs.
  • Trigger a real foreground failure (offline + filter change) and confirm the toast still appears.

The insights page polls every ~10s while a tracking job is running to
progressively show new results. A transient 5xx or network blip during
those silent refreshes was popping a red toast even though the next
poll would retry and the user would never notice the failure.

Now silent refreshes only log to console; toasts still fire for
foreground calls (initial load, filter change, manual reset).
@vercel

vercel Bot commented May 15, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
ansvisor Ready Ready Preview, Comment May 15, 2026 6:03am

Request Review

@gkhngyk
gkhngyk merged commit a8464d5 into main May 15, 2026
2 checks passed
@gkhngyk
gkhngyk deleted the fix/silent-refresh-error-toast branch May 15, 2026 06:15

This branch was successfully deployed

1 active deployment
Preview — df52d47c Deployed May 15, 2026 by vercel[bot]
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.

1 participant