-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve UI of Error Toasts #11947
Comments
Yes, it might be better to show as three separate lines (like a bullet list). I'm not sure how much formatting is possible inside toasts though. |
@damithc Okay prof, will start working on this. |
Hi, is this issue still active? If so, may I work on it? |
Hi @domoberzin, sure please feel free to submit a PR for this |
Was attempting to fix this, following the conversation in this PR, but realised that by changing the whitespace property to
With all this in mind, I want to ask if there is perhaps a different way to display the error messages? One way I could think of would be to display the errors with different separators, for e.g. |
Hi @domoberzin, the issue with the toast message above seems to be caused by lines 804-805 in Could you also try setting the whitespace property to |
Hello @weiquu, I've worked on it and seem to have found a way to fix the E2E errors by closing the toast after the message within it has been verified, and also by editing the messages to be formatted correctly. They can be found in this PR #12509. Also, I want to mention that while working on this issue, I found that some E2E test errors, particularly those relating to toast, for example in this test run, were not very specific, since it says that the toast component cannot be found, but the actual error was that the status message did not match with the expected message. Should I open an issue for this? |
Thanks @domoberzin! Sure, feel free to open an issue for it |
* fix: format error toasts * fix: css for line breaks * fix: change formatting for certain toast messages * fix: lint errors * fix: add wait time * fix: close toast after verification * fix: lint errors * fix: formatted status message * fix: add whitespace to status message * fix: remove extra inverted commas --------- Co-authored-by: Jason Qiu <[email protected]>
master
branch at commit 39192f4Description of feature/enhancement
Propose to update the front-end to facilitate error messages to be represented as multiple toasts rather than a single one.
Justification
Currently if there are multiple error messages, it appears in a single toast in certain cases (e.g. where the back-end returns an array of error messages). Since the messages are displayed as an array it reduces the legibility/understanding of errors. Furthermore, the users may also view it as a bug since it seems like the array of messages is returned without being processed.
Image below shows an instance where there are three error messages:
The text was updated successfully, but these errors were encountered: