Skip to content

feat(wave4): add typed API errors, stream filtering, websocket updates, and toast notifications#182

Merged
ritik4ever merged 1 commit intoritik4ever:mainfrom
JamesVictor-O:feat/wave4-frontend-issue-batch-161-167-168-169
Apr 25, 2026
Merged

feat(wave4): add typed API errors, stream filtering, websocket updates, and toast notifications#182
ritik4ever merged 1 commit intoritik4ever:mainfrom
JamesVictor-O:feat/wave4-frontend-issue-batch-161-167-168-169

Conversation

@JamesVictor-O
Copy link
Copy Markdown
Contributor

@JamesVictor-O JamesVictor-O commented Apr 25, 2026

Summary

  • add a typed ApiError in frontend/src/services/api.ts and update API parsing to throw status-aware errors across non-2xx responses
  • add useStreamFilter (URL-synced filters), useWebSocket (auto-reconnect with 1s/2s/4s backoff), and a global ToastProvider/useToast system with 4s auto-dismiss and max 3 stacked toasts
  • refactor App.tsx and StreamsTable.tsx to use these hooks, replace global error banner with toasts, and add tests for API 400 handling and websocket reconnect behavior

Test plan

  • npm --prefix frontend run test -- --run src/services/api.test.ts src/hooks/useWebSocket.test.ts
  • Run full frontend test suite (currently blocked by pre-existing missing modules in unrelated recipient dashboard files)

Closes #161
Closes #167
Closes #168
Closes #169

…d frontend hooks for toasts, websocket updates, and typed API errors

Implement a consolidated Wave 4 frontend batch that introduces typed ApiError handling, URL-synced stream filtering, websocket-driven updates with reconnect backoff, and global toast notifications to improve runtime UX and resilience.

Made-with: Cursor
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 25, 2026

@JamesVictor-O is attempting to deploy a commit to the ritik4ever's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave
Copy link
Copy Markdown

drips-wave Bot commented Apr 25, 2026

@JamesVictor-O 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

@ritik4ever ritik4ever merged commit 4ff652b into ritik4ever:main Apr 25, 2026
1 of 3 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

2 participants