Skip to content

Edit UI: save error goes away too fast + blank page #31707

Closed

Description

@severinbeauvais

Description: When there is a filing save error, a bug in Edit UI shows the error dialog for a fraction of a second then redirects the user to the Business Dashboard, making it impossible to read the dialog or choose an action (continue or exit).

Impact: Users have little or no indication that there is an error. They are redirected to the Business Dashboard, where their filing is in draft status instead of submitted. Also, the user has no ability to "continue" their filing to try to fix the error (although, a submit error is probably not fixable by the user).

Workaround: None.

To Reproduce:

  1. login
  2. open a coop
  3. click "View and Change Business Information" (which takes you to a draft Special Resolution filing)
  4. copy the URL
  5. change some information (eg, coop type)
  6. click Save and Resume Later
  7. paste the URL from step 4 (this creates a new draft Special Resolution filing)
  8. change some information (eg, coop type)
  9. click Save and Resume Later (this generates an API error because there already exists a draft filing)
  10. observe that a dialog displays an error for a fraction of a second and then the page redirects -- you do not have time to read the dialog

Activity

  1. added
    bug
    Entities Team
    on Dec 16, 2025
  2. changed the title [-]Copy of Edit UI: cannot resume Special Resolution + save error goes away too fast[/-] [+]Edit UI: save error goes away too fast + blank page[/+] on Dec 16, 2025
  3. severinbeauvais commented on Dec 16, 2025

    @severinbeauvais
    CollaboratorAuthor

    Analysis

    I found that the current code unconditionally redirects after attempting to save the filing:
    https://github.com/bcgov/business-edit-ui/blob/617326060e1c81e44e0ada4b701003c35c29a331/src/components/ViewWrapper.vue#L237

    After fixing this, the error dialog displays. The "exit" action works fine, but I found clicking "ok" leaves the user on a blank page. I have not figured this out yet.

  4. severinbeauvais commented on Dec 18, 2025

    @severinbeauvais
    CollaboratorAuthor

    Test Notes

    I fixed two issues:

    • redirection occured when there's a save error (and the save error dialog was displayed for only a split second)
    • the OK button in the save error dialog closed the dialog but left the user on a blank page

    To reproduce:

    1. login
    2. open an active coop
    3. go to Business Information page (Special Resolution)
    4. make a change (eg, coop type)
    5. click Save and Resume Later -- this creates a draft
    6. now that you are back at the Business Dashboard, click Back button -- this takes you back to a "new" Special Resolution (instead of resuming the previous draft)
    7. make a change (eg, coop type)
    8. click Save and Resume Later -- this attempts to save a new draft
    9. observe the save error dialog
    10. try OK button to return to your filing
    11. click Save and Resume Later again
    12. observe the save error dialog
    13. try "Exit without saving" button to return to your Business Dashboard

    This flow and error handling should work for other filings that can experience a save error (eg, Alteration, Change of Registration).

  5. riyazuddinsyed commented on Dec 22, 2025

    @riyazuddinsyed
    Contributor

    Verified in dev.Working as expected.

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

Metadata

Metadata

Labels

Entities TeamPriority2bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions