Skip to content

Lack of loading screen / fetch  #507

@danielsjoo

Description

@danielsjoo

Describe the bug
When a worker enters the homepage, then they will have a homepage that that immediately says "No clients". If the request for clients from the server is not served quickly (or fails with an error), the worker could be confused and it will make the user experience more choppy.

To Reproduce
Log in as worker and go to home page

Expected behavior
While home page loads and is awaiting data from the server, there should a loading screen that looks passable. For instance, we can have these placeholding shimmer loading cards. https://codepen.io/muratbenli/pen/yLOYmgj

Screenshot 2024-04-05 at 10 37 03 AM

Additional Notes

  1. Should only require changes in WorkerLanding.tsx
  2. This page should optimally be rendered only once on login and cached so the loading doesn't happen everytime the worker enters the homepage. That can be a separate issue, but if the tech stack ever changes (to Nextjs), that problem will be fixed by itself.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions