Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved Error Handling & Enhanced Loading Experience #138

Conversation

ParagGhatage
Copy link
Contributor

Description

This PR combines enhancements for error handling and loading experience in the app. It includes:

  • Dynamic Error Page Component: A reusable error page that can be displayed dynamically based on error types. It supports custom messages, error codes, and UI elements to improve user feedback.
  • Infinite Loading Timeout: Implemented a 7-second timeout for content loading. If the content fails to load within this period, the loading indicator stops, and a fallback message or error page is displayed.
  • New Honeycomb Loader: Replaced the previous loading animation with a more polished, visually engaging Honeycomb-shaped loader that aligns with the blockchain theme.
  • Simplified 404 Page: Removed unnecessary buttons and the card wrapper, rendering the error message directly on the screen for a cleaner look.

Changes Made

  1. ErrorPage Component

    • Created a reusable component to display error messages across the app.
    • Accepts custom messages and error codes for better UX.
    • Can be used anywhere in the app.
  2. Loading Timeout

    • Implemented a timeout mechanism for content loading.
    • If loading exceeds 7 seconds, an error page or fallback message is displayed.
  3. New Loader

    • Added a new Honeycomb-shaped loader.
    • Provides a smoother and more visually appealing loading animation.
  4. 404 Page Refinement

    • Removed buttons and card wrapping.
    • Directly renders the error message for a simpler design.

Before and After

Before

  • Infinite loading issues when content fails to load.
  • Basic and unappealing loader animation.
  • Overly styled 404 page with buttons and a card wrapper.

After

  • Loading timeout ensures users get feedback within 7 seconds.
  • Visually improved Honeycomb loader.
  • Clean and minimal 404 page.

Files Changed

  • client/app/components/Helper/ErrorPage.tsx (New dynamic error page)
  • client/app/components/Helper/Loader.tsx (New Honeycomb loader)

Checklist

  • Code works as expected
  • Linting and formatting checks pass
  • Feature tested successfully

Issue Resolved

This PR closes:

Screenshots

Screenshot 2025-02-20 235144

sadariya vasu and others added 6 commits January 10, 2025 20:08
…ed then profile and create button is visible
…tbutton

Fix the bug now connect wallet appears first and if wallet is connected then profile and create button is visible
- Added a dynamic, reusable error page component.
- Implemented an infinite loading timeout (7 seconds) to prevent stuck states.
- Introduced a new Honeycomb-shaped loader for a smoother UX.
- Removed unnecessary buttons and card from the 404 page for a simpler design.
@ParagGhatage
Copy link
Contributor Author

@Ronnieraj37 ,
Please take look.

@Ronnieraj37
Copy link
Contributor

Can you please fix the conflict with package-lock in client

@ParagGhatage
Copy link
Contributor Author

@Ronnieraj37 ,
Working on it.

@ParagGhatage
Copy link
Contributor Author

@Ronnieraj37 ,
I have resolved all the merge conflicts.

@Ronnieraj37
Copy link
Contributor

Ronnieraj37 commented Feb 24, 2025

Screenshot 2025-02-24 at 11 53 01 PM I was testing your branch and this is how the navbar looks like.

@Ronnieraj37
Copy link
Contributor

Screenshot 2025-02-24 at 11 57 09 PM The loader doesn't end even after 7 seconds. I also don't think that this is the loader you suggested?

@ParagGhatage
Copy link
Contributor Author

ParagGhatage commented Feb 24, 2025

Screenshot 2025-02-24 at 11 53 01 PM I was testing your branch and this is how the navbar looks like.

It was due to earlier Merge.
I have fixed that in #135

@ParagGhatage
Copy link
Contributor Author

Screenshot 2025-02-24 at 11 57 09 PM The loader doesn't end even after 7 seconds. I also don't think that this is the loader you suggested?

Give me a second.
I will test that right now.

@ParagGhatage
Copy link
Contributor Author

ParagGhatage commented Feb 24, 2025

@Ronnieraj37 ,
I checked it.
Its loading correctly.
and elections are also getting loaded.

Screenshot 2025-02-25 000740

Screenshot 2025-02-25 000916

@Ronnieraj37
Copy link
Contributor

I cloned your branch. The PR #135 was closed. I'm also not satisfied with the UI, including the loader, its positioning, and the loading error page. I might merge this later, but it will definitely be overridden by #142 .

@ParagGhatage
Copy link
Contributor Author

I cloned your branch. The PR #135 was closed. I'm also not satisfied with the UI, including the loader, its positioning, and the loading error page. I might merge this later, but it will definitely be overridden by #142 .

Got 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.

Add Reusable Error Page for multiple Error Types
4 participants