Skip to content

Business Dashboard UI: need feedback when Delete button is clicked (was: Not able to delete a Draft IA) #27240

Closed

Description

@riyazuddinsyed

Describe the bug in the current situation

When you click the Delete button to delete a draft bootstrap filing (eg, IA) from the Business Dashboard UI, nothing appears to happen for a few seconds, so a user might click the Delete button a few more times. This would send additional "delete" calls to the API, which would fail like this:

Screen Shot 2025-04-16 at 11.15.41 AM.png

The initial Delete event will still be performed correctly.

Steps to reproduce the behavior

  1. create a draft Incorporation Application
  2. from Business Dashboard, open dropdown menu and click Delete Incorporation Application
  3. from modal, click Delete button
  4. observe that nothing happens for a few seconds
  5. observe that the current page is eventually closed and BRD opens

Activity

  1. added
    bug
    Entities Team
    on Apr 16, 2025
  2. severinbeauvais commented on Apr 16, 2025

    @severinbeauvais
    Collaborator

    Looks to me like the draft IA has already been deleted. Please refresh the page and try again.

  3. severinbeauvais commented on Apr 16, 2025

    @severinbeauvais
    Collaborator

    I just created a draft BC IA, while logged in as staff in Test, and I was able to successfully delete it.

  4. changed the title [-]Not able to delete a Draft IA as Staff.[/-] [+]Business Dashboard UI: need feedback when Delete button is clicked (was: Not able to delete a Draft IA)[/+] on Apr 16, 2025
  5. severinbeauvais commented on May 1, 2025

    @severinbeauvais
    Collaborator

    I think the issue is that there's no feedback that the Delete button was clicked, so the user might try to click it a few more times -- and each time generates a "delete" call to the API, where only the first one succeeds.

    Therefore, a reasonable fix here is to update the Delete button to a loading state once it's clicked (and/or some other way to show that it has been clicked, and prevent it from being clicked again).

    While in this code base, please check the actions buttons for other confirm-type dialogs and fix similarly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Entities TeamPriority3bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions