Skip to content

feat/157-frontend-route-guards-auth-checks - #219

Open
Wetshakat wants to merge 2 commits into
Epta-Node:mainfrom
Wetshakat:feat/157-frontend-route-guards-auth-checks
Open

feat/157-frontend-route-guards-auth-checks#219
Wetshakat wants to merge 2 commits into
Epta-Node:mainfrom
Wetshakat:feat/157-frontend-route-guards-auth-checks

Conversation

@Wetshakat

Copy link
Copy Markdown
Contributor

closed #157

PR Title

Frontend: Add Centralized Toasts and Protected Auth Routes

Summary

This PR introduces a centralized toast notification system for consistent frontend feedback and adds authentication-based route protection for wallet-dependent pages.

Changes

  • Added a global toast context/provider.

  • Added a reusable toast component with dismiss actions and stacked notifications.

  • Added styling and animations for success, error, warning, and info notifications.

  • Wrapped the application with the toast provider.

  • Replaced inline task submission errors with centralized toast notifications.

  • Added dashboard error toasts for failed data fetches.

  • Added toast notifications for failed recent-task requests.

  • Added API-layer notifications for:

    • 503 retry warnings.
    • 401 wallet disconnect/session expiry.
  • Added protected route guards for authenticated pages.

Why

The frontend previously used inconsistent error-handling patterns, including inline error messages, silent console errors, and limited feedback during retry or wallet-session failures.

This update provides a consistent notification UX and ensures protected routes fail closed, preventing unauthenticated users from rendering wallet-dependent content.

Validation

  • ✅ Task submission tests: 4/4 passing
  • ✅ Frontend production build: passing
  • ✅ Protected route authentication checks verified
  • ✅ Centralized toast notifications verified

Notes

The production build reports a non-blocking Vite bundle-size warning. The build itself completes successfully and the implemented features are working as expected.

@vercel

vercel Bot commented Aug 18, 2026

Copy link
Copy Markdown

@Wetshakat is attempting to deploy a commit to the Jaja'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.

[Frontend] Add Route Guards and Authentication Checks for All Protected Pages

1 participant