bcgov / entity

ServiceBC Registry Team working on Legal Entities
Apache License 2.0
23 stars 59 forks source link

Create UI: The error message "Duplicate File" in the "Continuation in Application" section remains visible until the initially uploaded PDF is removed. #23734

Open riyazuddinsyed opened 1 month ago

riyazuddinsyed commented 1 month ago

Describe the bug in current situation When the user uploads a PDF file and, by mistake, uploads it for the second time, the "Duplicate File" error text displays, which prevents the user from uploading the duplicate file but still displays "Duplicate File" error text when there is no Duplicate File.

Steps to reproduce the behavior:

  1. Go to 'https://test.create.business.bcregistry.gov.bc.ca/'
  2. Start a Continuation In Filing.
  3. Upload a PDF and try uploading a Duplicate of the same file
  4. This action is not allowed from the UI but the error text of Duplicate Fille still retains when actually there is none

Private Zenhub Video

OlgaPotiagalova commented 1 month ago

Fix after the MVP

severinbeauvais commented 1 month ago

Possible solution: auto-hide the file upload error after, say, 5 seconds.

(Could also use a Snackbar component to show the errors. This component supports auto-hiding after a specified delay.)

severinbeauvais commented 1 week ago

Needs design.