-
Notifications
You must be signed in to change notification settings - Fork 914
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
[Fix] Improve Error Toast Display Content #5345
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5345 +/- ##
==========================================
+ Coverage 66.82% 66.97% +0.15%
==========================================
Files 3291 3291
Lines 63174 63223 +49
Branches 10055 10052 -3
==========================================
+ Hits 42213 42342 +129
+ Misses 18479 18443 -36
+ Partials 2482 2438 -44
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Signed-off-by: Willie Hung <[email protected]>
Signed-off-by: Willie Hung <[email protected]>
Signed-off-by: Willie Hung <[email protected]>
Signed-off-by: Willie Hung <[email protected]>
Signed-off-by: Willie Hung <[email protected]>
Signed-off-by: Willie Hung <[email protected]>
Signed-off-by: Willie Hung <[email protected]>
Signed-off-by: Willie Hung <[email protected]>
6724638
to
01d31d1
Compare
const fullMessage = [message, expression, repeat('-', error.location.start.offset) + '^'].join( | ||
'\n' | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In my view, this line is intended to facilitate easier debugging. It is typically output to the console or saved in a log file and should not be displayed on the frontend. Any ideas for improvement would be appreciated!
@Willie-The-Lord Can you add a Changelog entry under the bug section? |
f967ae3
to
01d31d1
Compare
Signed-off-by: Willie Hung <[email protected]>
Signed-off-by: Josh Romero <[email protected]>
Looks like this change is modifying toast across the entire app (not just Visualization or one plugin). I think we need to evaluate few things as this change affects entire Dashboards.
Also I would like to hear from @opensearch-project/opensearch-ux how they feel about this change? |
Signed-off-by: Willie Hung <[email protected]>
Hi @wooonka, Did you get a chance to give a thought to @bandinib-amzn comment here? Also, please resolve the merge conflict caused by changelog file. |
@@ -75,6 +75,7 @@ Inspired from [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) | |||
- [BUG][Fuctional Test] Make setDefaultAbsoluteRange more robust and update doc views tests ([#5242](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5242)) | |||
- [BUG] Add platform "darwin-arm64" to unit test ([#5290](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5290)) | |||
- [BUG][Dev Tool] Add dev tool documentation link to dev tool's help menu [#5166](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5166) | |||
- [BUG] Improve the display content of the error toasts ([#5345](https://github.com/opensearch-project/OpenSearch-Dashboards/pull/5345)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an enhancement; isn't it? Also, we don't need to add [BUG]
for bug fixes because they are listed in a section meant for bug fixes.
I dont think that hiding the "see the full error" button is a good idea :/ As a user im always frustrated when the software tries to hide information from me. We already know that many of OSD's users are technically competent. The See the full error button is a nice way to surface this information without unnecessarily polluting the toast notification |
I would be open to making "See the full error" a little less prominent, but hiding it all together is not a great experience. |
@bandinib-amzn @kgcreative what is the status on this? |
Convert to draft due to no progress. |
Description
Issues Resolved
closes #5326
Screenshot
Before
Error Toast
Error Modal
After
Testing the changes
Check List
yarn test:jest
yarn test:jest_integration