Skip to content

fix: show QueryError fallback when dashboard queries fail#36

Open
wmagev wants to merge 1 commit intoentrius:testfrom
wmagev:feat/query-error-fallback
Open

fix: show QueryError fallback when dashboard queries fail#36
wmagev wants to merge 1 commit intoentrius:testfrom
wmagev:feat/query-error-fallback

Conversation

@wmagev
Copy link
Copy Markdown

@wmagev wmagev commented Apr 18, 2026

useApiQuery has retry: false, so the first failed fetch leaves panels stuck on a shimmer forever with no recovery path. Add a small QueryError component with a retry button, and render it in each consumer when the query has errored and has no prior data to fall back on.

Refetch failures with existing data stay silent (keepPreviousData keeps the stale view) to avoid flashing errors over working UI during transient SSE/network blips.

Fixes #34

useApiQuery has retry: false, so the first failed fetch leaves panels
stuck on a shimmer forever with no recovery path. Add a small QueryError
component with a retry button, and render it in each consumer when the
query has errored and has no prior data to fall back on.

Refetch failures with existing data stay silent (keepPreviousData keeps
the stale view) to avoid flashing errors over working UI during
transient SSE/network blips.
nightmare0329 added a commit to nightmare0329/allways-ui that referenced this pull request Apr 18, 2026
…back

Issue entrius#33 — refactor(OrderbookDepth): hoist BtcIcon, TaoIcon, AssetIcon
to module scope so they are not recreated on every parent render.
Each icon calls useTheme() internally instead of closing over the
parent component's theme variables.

Issue entrius#31 — a11y: add aria-label to 4 icon-only interactive controls:
- Docs link button (aria-label="Documentation")
- Theme toggle button (dynamic: "Switch to dark/light mode")
- Orderbook info button (aria-label="Orderbook depth information")
- EventFeed scroll-to-top button (aria-label="Scroll to top of event feed")

Issue entrius#36 — fix: add QueryError component with retry button and wire it
into all four dashboard panels (StatsPanel, MinerRatesTable,
OrderbookDepth, EventFeed). Panels now render a QueryError with a refetch
button instead of staying on a shimmer skeleton when useApiQuery errors.

Closes entrius#31, entrius#33, entrius#36
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.

[Bug] Add QueryError fallback when dashboard data fetches fail

1 participant