Skip to content

Filings UI: spinner should pre-empt action button #23967

Closed

Description

@severinbeauvais

Consider fixing this ticket at the same time as #23925.

When a task in the To Do list is pending, there is a background retry mechanism. During this time, a spinner displays on the item. However, something was broken recently and both the spinner and action button (eg, retry) display at the same time.

Applies to all filings. Error might be displayed if user clicks the button again. Not an environmental issue. Needs to be fixed for Nov release.

Activity

  1. added
    bug
    Entities Team
    on Oct 22, 2024
  2. added
    Entities - Data Migration
    and removed
    Entities Team
    on Oct 30, 2024
  3. chenhongjing commented on Oct 31, 2024

    @chenhongjing

    Sev, just curious, is it the same issue you described in #23636?

  4. severinbeauvais commented on Oct 31, 2024

    @severinbeauvais
    CollaboratorAuthor

    Yes, I believe this ticket is a duplicate of the one Riyaz created (23636).

    The spinner displays when it shouldn't. This was recently broken, so you could look at older code and see under what conditions the spinner should display and then fix the current code.

  5. self-assigned this
    on Oct 31, 2024
  6. leodube-aot commented on Nov 6, 2024

    @leodube-aot
    Collaborator

    Testing Notes

  7. severinbeauvais commented on Nov 6, 2024

    @severinbeauvais
    CollaboratorAuthor

    @leodube-aot Your fix correctly made the spinner and action button mutually exclusive but uncovered another bug: the spinner always displays when there is a filing id to highlight and that filing is an approved continuation in draft. This scenario, specifically, needs to be excluded from the spinner / retry mechanism.

    Do you think you can fix this in this ticket?

    To reproduce:

    1. in window 1, create a continuation in authorization
    2. in window 1, submit it
    3. in window 2, approve it
    4. go back to window 1 (where the URL has the filing id as a parameter) and refresh the page
    5. observe that the spinner displays for 5 seconds; there should be no spinner in this case
  8. leodube-aot commented on Nov 6, 2024

    @leodube-aot
    Collaborator

    @severinbeauvais Sure I can fix that in this ticket. I'll move it back to In Progress.

  9. vishnup0422 commented on Nov 7, 2024

    @vishnup0422
    Collaborator

    Filed an IA and the spinner is showing up as expected

    Private Zenhub Video

    Change of Directors Filing

    Private Zenhub Video

    Address Change Filing

    Private Zenhub Video

  10. severinbeauvais commented on Nov 7, 2024

    @severinbeauvais
    CollaboratorAuthor

    Filed an IA and the spinner is showing up as expected

    Thanks but that's not the spinner we're talking about. This ticket is about the spinner on a To Do item while, say, it's waiting for payment to complete. The spinner should be displayed for up to 5 seconds (with no action button displayed), and then, either the dashboard reloads completely to show all the new data, or the action button is shown (eg, Incomplete Payment).

  11. vishnup0422 commented on Nov 7, 2024

    @vishnup0422
    Collaborator

    Got it, Thanks. Will add those scenarios.

  12. vishnup0422 commented on Nov 7, 2024

    @vishnup0422
    Collaborator

    Payment Failure and loading screen

    Private Zenhub Video

    Payment Success loading

    Private Zenhub Video

  13. severinbeauvais commented on Nov 7, 2024

    @severinbeauvais
    CollaboratorAuthor

    Payment Failure and loading screen
    Payment Success loading

    Great tests! Yes, this is how it is supposed to work.

    This functionality is to specifically catch cases where the payment is still processing and then completes; it will reload the dashboard and show you the latest state (ie, filing moves from To Do list to Recent Filing History list). Or, if the payment doesn't complete during the retry (spinner) period, then the action button is displayed.

  14. vishnup0422 commented on Nov 7, 2024

    @vishnup0422
    Collaborator

    The scenario for continuation Authorization filing.

    Private Zenhub Video

  15. severinbeauvais commented on Nov 7, 2024

    @severinbeauvais
    CollaboratorAuthor

    The scenario for continuation Authorization filing.

    This doesn't capture the continuation authorization scenario that I highlighted above (with reproduction steps). The key to this scenario is that the authorization has to be submitted and then you can verify that the spinner is not displayed.

    Technical explanation: a spinner will be displayed during background polling for certain items in the To Do list. For example, we want to see the spinner for a Pending item because payment might complete in 1-2 seconds and change the status to Paid. But we don't want to see the spinner for a submitted (then approved) continuation authorization because it's not waiting for payment.

  16. severinbeauvais commented on Nov 7, 2024

    @severinbeauvais
    CollaboratorAuthor

    Example: this state (and notice that the URL contains the filing id). The reproduction steps above will take you to this scenario.

    image

  17. vishnup0422 commented on Nov 7, 2024

    @vishnup0422
    Collaborator

    Submitted a request for continuation and once its approved the spinner does not show up.

    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

Entities - Data MigrationPriority1bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions