Skip to content

fix(#479): add error state UI for disconnected backend services#711

Merged
AnnabelJoe merged 2 commits into
AnnabelJoe:mainfrom
Hellenjoseph:fix/479-error-state-ui-backend-services
Jul 3, 2026
Merged

fix(#479): add error state UI for disconnected backend services#711
AnnabelJoe merged 2 commits into
AnnabelJoe:mainfrom
Hellenjoseph:fix/479-error-state-ui-backend-services

Conversation

@Hellenjoseph

Copy link
Copy Markdown
Contributor

Closes #479

Changes

  • useServiceHealth hook — polls /api/health every 30s; returns hasIssues, human-readable degradedServices, and refetch
  • ServiceAlert component — shows distinct degraded/error banner with affected service names and recovery guidance; hides when healthy; never exposes raw stack traces; includes retry button
  • Dashboard renders ServiceAlert at top of page

Acceptance criteria met

  • ✅ Dependency failures surface a distinct UI error
  • ✅ Users see retry guidance and next steps
  • ✅ No raw stack traces exposed to the user

Tests

  • ServiceAlert unit tests: healthy state, loading state, degraded banner, full outage banner, no stack trace leak

…hook for disconnected backend UI

- Add useServiceHealth hook that polls /api/health every 30s via react-query
- Add ServiceAlert component: shows degraded/error banner with affected service names
  and retry guidance; hides when all services are healthy; never exposes stack traces
- Render ServiceAlert at top of dashboard page
- Add unit tests covering healthy/loading/degraded/error states
@drips-wave

drips-wave Bot commented Jun 29, 2026

Copy link
Copy Markdown

@Hellenjoseph Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@AnnabelJoe AnnabelJoe merged commit ed48f44 into AnnabelJoe:main Jul 3, 2026
2 of 18 checks passed
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.

Add error state UI for disconnected backend services

2 participants