oxidecomputer / oxidecomputer/console

Offline banner

Open
#1,100 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

polish
Dominant language
TypeScript
Stars
228
Forks
22
Avg merge
19h 42m
Merged PRs (30d)
32

Description

Low priority but also extremely easy. Turns out we can trivially tell when the network connection is down.

import { onlineManager } from '@tanstack/react-query'

// ...
{!onlineManager.isOnline() && <OfflineError />}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start from the TypeScript/JSX location where the application renders its status or error UI, and check how @tanstack/react-query's onlineManager is available. Use the issue's condition to show OfflineError when the connection is offline. Done means the offline banner appears offline and is absent when online; the issue names no file or test.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.