Skip to content

Filings UI: "Do Not Authorize" button should be spinner/disabled after clicking #23969

Closed

Description

@severinbeauvais

A feature was implemented by another team to use the To Do List to authorize / not authorize a user affiliation.

It was observed that clicking the "Do Not Authorize" button took a long time to process. The issue is that the button was not disabled during this delay, so the user could click it multiple times.

The solution is to use the button's "loading" state to both display a spinner and disable the authorize / not authorize buttons during the process.

Activity

  1. added
    bug
    Entities Team
    on Oct 22, 2024
  2. changed the title [-]Copy of Filings UI: spinner should pre-empt action button[/-] [+]Filings UI: "Do Not Authorize" button should be spinner/disabled after clicking[/+] on Oct 22, 2024
  3. added
    Dependency
    BTR
    on Oct 28, 2024
  4. added
    Entities - Data Migration
    and removed
    Entities Team
    on Oct 30, 2024
  5. self-assigned this
    on Nov 5, 2024
  6. eason-pan-bc commented on Nov 5, 2024

    @eason-pan-bc

    @severinbeauvais Do we also want to make the "Authorize" button be spinner / disabled after clicking, to keep the behaviours consistent? Or just the "Do Not Authorize" button?

  7. severinbeauvais commented on Nov 5, 2024

    @severinbeauvais
    CollaboratorAuthor

    Yes, good catch 🚀

    We want to:

    • let the user know that something is happening
    • prevent the user from double-clicking the button (or, if possible, start any other action that could pre-empt/break the current action)
  8. eason-pan-bc commented on Nov 6, 2024

    @eason-pan-bc

    Notes for QA

    Tested in Dev

    Works as expected:

    • When clicking on either button, both 2 buttons will be disabled, and the clicked one will have a loading spinner.
      • To clearly communicate with users of the system status: something is being processed
      • To prevent users clicking on the same button multiple times

    image.png

    How to reproduce this scenario

    This UI displays in Account-B's entity page, when Account-A is requesting for authorization to manage a business from Account-B.

    What you need
    • 2 regular user accounts (Account-A and Account-B)
    • have at least 1 incorporated business in one account (let's say Account-B has a business "BC1234567"
    Steps:
    1. in the dashboard of Account-A, search for Account-B's business "BC1234567"
    2. then select "Request authorization from an account currently managing the business" and select "Manage This Business"image.png
    3. go to Account-B's dashboard, and find the business "BC1234567", and click "Manage Business", you will find the request in the To Do list.image.png
  9. vishnup0422 commented on Nov 7, 2024

    @vishnup0422
    Collaborator

    Followed the same steps to verify this ticket

    Account1: Vishnu Dev
    BC0883664

    Account2: Vishnu Dev2

    Submitted a Request for the Business from Account2.

    Screenshot 2024-11-07 at 7.47.54 AM.png

    Screenshot 2024-11-07 at 7.48.07 AM.png

    Switch to Account1. Search for the Business and Click on Manage Business
    We can see the Pending Request

    Screenshot 2024-11-07 at 7.49.08 AM.png

    Click on Do not Authorize button. The loading spinner comes in place of the button.

    Private Zenhub Video

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

Metadata

Metadata

Assignees

Labels

BTRDependencyEntities - Data MigrationPriority2bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions