flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[Frontend] Add auto-reconnect status banner when real-time SSE stream connection drops

Open blurbeast opened this issue 2 months ago • 5 comments

Overview

When the backend restarts or a user's network connection glitches, the Server-Sent Events (SSE) connection drops. The UI remains static without informing the user that live balance tickers are paused.

Problem

  • Users see numbers stop updating and assume the application has frozen.

Proposed Changes

  1. Monitor EventSource.readyState (CONNECTING, OPEN, CLOSED).
  2. If connection is closed or reconnecting > 3s, show a non-intrusive top banner: "Real-time updates paused. Reconnecting... [Retry Now]".
  3. Automatically hide banner once connection returns to OPEN.

Acceptance Criteria

  • [ ] Status banner appears when SSE connection is lost.
  • [ ] Clicking "Retry Now" recreates the EventSource instance immediately.
  • [ ] Banner automatically dismisses on reconnection.

blurbeast avatar Sep 27 '26 05:09 blurbeast

@shaarknado has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

I would love to solve this issue

ℹ️ Repo Maintainers: To accept this application, review their application or assign @shaarknado to this issue.

shaarknado avatar Sep 27 '26 14:09 shaarknado

@chidii has applied to work on this issue as part of the Stellar Wave Program's 9th wave.

Hello Maintainer, I've reviewed this issue thoroughly and I'm well positioned to resolve it — experienced across the relevant stack and comfortable navigating the existing codebase. Ready to start right away.

ℹ️ Repo Maintainers: To accept this application, review their application or assign @chidii to this issue.

chidii avatar Sep 27 '26 15:09 chidii

Congratulations, @chidii! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on September 30, 2026.

🧑‍💻 @chidii: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.

[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.

🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.

🌊 Happy Wave 🌊

drips-wave[bot] avatar Sep 27 '26 15:09 drips-wave[bot]

🎉 This issue has been marked as completed on GrantFox!

@chidii's PR #1581 was approved and merged by @K1NGD4VID.

🏆 @chidii: You earned 40 FoxPoints for this contribution! Your current tier: Builder (1,585 total points). Track your full progress on GrantFox.

👏 Great work, @chidii! Keep contributing to LabsCrypt.

grantfox-oss[bot] avatar Oct 06 '26 07:10 grantfox-oss[bot]

This issue has been marked as completed by a Drips Wave moderator for @chidii as part of the Stellar Wave Program's 9th Wave 🥳

Moderator's reason: [Auto-assessed] The PR has been merged by a maintainer (@K1NGD4VID on PR #1581) and the issue is closed. The code changes correctly implement the requested 'Retry Now' feature for the SSE stream reconnection banner by updating the hook, indicator component, and dashboard view.

😎 @chidii: You earned 200 Points for completing this issue! After the current Wave ends, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here.

🧑‍💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.

ℹ️ Note: This issue was marked complete via moderation. Points were issued even though the GitHub issue remains open.

drips-wave[bot] avatar Oct 06 '26 08:10 drips-wave[bot]