Skip to content

[codex] Surface dashboard fetch source health - #423

Open
Dreamstore2046 wants to merge 1 commit into
harystyleseze:mainfrom
Dreamstore2046:codex/careguard-fetch-health-213
Open

[codex] Surface dashboard fetch source health#423
Dreamstore2046 wants to merge 1 commit into
harystyleseze:mainfrom
Dreamstore2046:codex/careguard-fetch-health-213

Conversation

@Dreamstore2046

Copy link
Copy Markdown

Summary

Closes #213.

Surfaces per-source dashboard fetch health instead of silently hiding failed data:

  • adds a generic useFetch<T> hook that tracks data, error, lastSuccessAt, and loading state for each source
  • wraps the agent info, spending, and transactions fetch paths with per-source health tracking
  • adds a header health chip that turns red when any source is failing
  • exposes a tooltip/title listing the failed source and error message
  • adds a component test that simulates a failed spending source and asserts the chip turns red with the right tooltip copy

Validation

  • npm test -- dashboard/src/__tests__/dashboard-header-health.test.tsx
  • npm test -- dashboard/src/__tests__/dashboard-header-health.test.tsx dashboard/src/__tests__/settings-tab.test.tsx
  • npx tsc --noEmit --target ES2022 --module ESNext --moduleResolution bundler --allowImportingTsExtensions --esModuleInterop --allowSyntheticDefaultImports --strict --skipLibCheck --types node,vitest dashboard/src/hooks/fetch-health.ts
  • git diff --check

Notes:

  • A TSX-focused tsc command for the header/hook files is blocked in this checkout because React type declarations are not installed/resolvable (react/jsx-runtime / @types/react), matching the existing dashboard dependency-resolution limitation.

@vercel

vercel Bot commented Jun 26, 2026

Copy link
Copy Markdown

@Dreamstore2046 is attempting to deploy a commit to the Harrison Eze's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Three parallel polls fail silently if any one errors

1 participant