Skip to content

Validate dashboard API responses - #148

Merged
Justice989810 merged 3 commits into
Justice989810:mainfrom
crypto-raji:fix/issue-95-check-dashboard-responses
Sep 29, 2026
Merged

Justice989810 merged 3 commits into
Justice989810:mainfrom
crypto-raji:fix/issue-95-check-dashboard-responses

Conversation

@crypto-raji

Copy link
Copy Markdown
Contributor

Summary

  • Reject non-success HTTP responses and malformed JSON through a shared API helper.
  • Validate endpoint payload shapes before updating dashboard, activity feed, or account directory state.
  • Preserve existing catch paths so failed requests stop loading without treating error payloads as data.

Verification

  • API helper smoke check for 503 error payloads and malformed success payloads.

pulse-layer@0.1.0 build
next build

▲ Next.js 16.3.0 (Turbopack)
✓ Running next.config.ts took 46ms

Creating an optimized production build ...
✓ Compiled successfully in 2.4s
Running TypeScript ...
Finished TypeScript in 2.1s ...
Collecting page data using 1 worker ...
Generating static pages using 1 worker (0/5) ...
Generating static pages using 1 worker (1/5)
Generating static pages using 1 worker (2/5)
Generating static pages using 1 worker (3/5)
✓ Generating static pages using 1 worker (5/5) in 210ms
Finalizing page optimization ...

Route (app)
┌ ○ /
├ ○ /_not-found
└ ○ /icon.png

○ (Static) prerendered as static content

  • Focused ESLint still reports existing and React hook violations in the touched dashboard files.

Fixes #95

@Justice989810
Justice989810 merged commit c6ad55f into Justice989810:main Sep 29, 2026
1 check failed
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.

Check HTTP status and response shape before updating dashboard state

2 participants