Skip to content

Bug: "No Appointments" message shows before data is fetched in My Appointments #27

@Mohan-Murali-02

Description

@Mohan-Murali-02

When navigating to the "My Appointments" page, the message "No Appointments" is displayed briefly until the actual appointment details are fetched and rendered. This can be misleading for users, especially if they have existing appointments.

Log in and go to the "My Appointments" section

Observe the initial message: "No Appointments"

After a short delay, the actual appointments are displayed

Expected:
Instead of showing "No Appointments" immediately, a loading indicator (spinner/skeleton) should be displayed until the API response is received. Only if no appointments exist, then show the "No Appointments" message.

Possible Solution:
Add a loading state in the frontend while fetching appointments
Replace the default "No Appointments" with a spinner or placeholder text like "Fetching your appointments..."

Image Image

I would like to work on this issue under GSSoC. Kindly assign this issue to me.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions