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

Alert Message Dismissal Allows Multiple User Actions During API Data Fetch, Leading to Queued Requests and Incorrect UI State #321

Open
Adameddy26 opened this issue Sep 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Adameddy26
Copy link

Description

In all apps, whenever an API fetches data, an alert message 'Click backdrop to dismiss' appears on the UI. However, if the user clicks outside the alert message while the data is still loading, the message disappears, and the user is allowed to perform other operations on the page. This behavior causes multiple API requests to get stuck in the queue, leading to inconsistencies in the data displayed on the UI.

Current behavior

The alert message disappears prematurely when the user clicks outside it.
Users can perform other operations, causing multiple API requests to queue up.

Expected behavior

The alert message should remain on the screen until the data is fully loaded.
User actions should be restricted until the current API call is completed.

Steps to reproduce the issue

Navigate to TO page.
Select a filter option (e.g., 'Approved' status) and trigger the API call.
While the data is still loading, click outside the 'Click backdrop to dismiss' alert message.
Select a different filter option (e.g., 'Completed') and uncheck the previously selected option ('Approved').
Observe that the UI appears to show both filters as active, but only the data for the initially selected filter ('Approved') is fetched.

Additional information

https://jam.dev/c/3f5b6af0-c748-468f-9146-64f937749eb0

@Adameddy26 Adameddy26 added the bug Something isn't working label Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant