-
Notifications
You must be signed in to change notification settings - Fork 92
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
Display related resources error message in panel #3852
Conversation
Pytal
commented
Mar 3, 2023
•
edited
Loading
edited
Screenshot | |
---|---|
Before (Top-right toast + empty panel area) | ![]() ![]() |
After | ![]() |
This comment was marked as outdated.
This comment was marked as outdated.
src/components/NcRelatedResourcesPanel/NcRelatedResourcesPanel.vue
Outdated
Show resolved
Hide resolved
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.
Please see the l10n problems.
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.
Great idea, the notification is also distracting every time it appears. 2 points from my side:
- Using a note card component seems like it draws a lot of attention. Could we use plain text and an icon?
- Is there any action that can be taken to rectify or explain this error? Like a "More info" link or "Try again" button?
24edeff
to
49a0185
Compare
Signed-off-by: Christopher Ng <chrng8@gmail.com>
49a0185
to
4e9d20f
Compare
Changed to just plain text! Without an icon though as it looks kinda strange due to the indentation and spacing :)
The error would probably be too technical for users so I added the line |
@nimishavijay @jancborchardt any additional design suggestions? |
Looks good to me! ccing @jancborchardt to double check the wording :) |
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.
Looks good to me as well! :)
|
||
description() { | ||
if (this.error) { | ||
return t('Error getting related resources. Please contact your system administrator if you have any questions.') |
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.
From my side of things this is not correct. When the 400 error occurs with Talks 1-1 chats there is nothing I as sysadmin was able to do about it.
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.
Then instead would it make sense to trigger a reload in the background @Pytal? Or what is usually the reason here?
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.
Further details in the comments over there: nextcloud/spreed#9256 (comment)
Now that logging is added it actually makes sense, but i find it weird that the error is not using the normal showError anymore