Skip to content

Implement Offline Notice and Network Reconnection Recovery Banner #381

Description

@Cjay-Cyber-2

Description — what to implement and the why/impact.

Implement a persistent yet non-intrusive offline detection banner that alerts users when internet connectivity drops and automatically triggers data refetching and state synchronization upon reconnection.

Context & Requirements — background, constraints, design references, edge cases;

Network stability can vary, especially when interacting with Stellar RPC nodes and external APIs. Clear notification of offline status prevents user confusion during failed submissions.

Acceptance Criteria — a checklist ("- [ ] ...") of specific, testable conditions that define "done`.

  • Create src/components/ui/OfflineBanner.tsx utilizing browser navigator.onLine events.
  • Integrate React Query network status callbacks to refresh stale queries upon reconnection.
  • Style using neobrutalist warning colors and bold borders.

Implementation Guidance — likely files/modules to touch and a suggested approach

Create the banner component and include it in the root layout file (src/app/layout.tsx).

Testing & Validation — how the contributor should prove it works

Simulate offline/online events in Vitest and verify banner visibility and query invalidation triggers.

Submission Guidelines — must open a PR that includes "Closes #"; assignment is required before starting.


Wave complexity: Medium

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions