Skip to content
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

Merged
merged 1 commit into from
Mar 16, 2023
Merged

Conversation

Pytal
Copy link
Contributor

@Pytal Pytal commented Mar 3, 2023

Screenshot
Before (Top-right toast + empty panel area) image image
After image

@Pytal Pytal added enhancement New feature or request 3. to review Waiting for reviews labels Mar 3, 2023
@Pytal Pytal added this to the 7.9.0 milestone Mar 3, 2023
@Pytal Pytal self-assigned this Mar 3, 2023
@Pytal Pytal added the feature: related resources panel Related to the NcRelatedResourcesPanel component label Mar 3, 2023
@Pytal Pytal linked an issue Mar 3, 2023 that may be closed by this pull request
4 tasks
@Pytal

This comment was marked as outdated.

Copy link
Contributor

@raimund-schluessler raimund-schluessler left a 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.

Copy link

@nimishavijay nimishavijay left a 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?

cc @jancborchardt

@Pytal Pytal force-pushed the enh/resources-error branch from 24edeff to 49a0185 Compare March 6, 2023 20:20
@Pytal Pytal changed the title Display related resources error in note card Display related resources error message in panel Mar 6, 2023
Signed-off-by: Christopher Ng <chrng8@gmail.com>
@Pytal Pytal force-pushed the enh/resources-error branch from 49a0185 to 4e9d20f Compare March 6, 2023 20:25
@Pytal
Copy link
Contributor Author

Pytal commented Mar 6, 2023

  • Using a note card component seems like it draws a lot of attention. Could we use plain text and an icon?

Changed to just plain text! Without an icon though as it looks kinda strange due to the indentation and spacing :)

  • Is there any action that can be taken to rectify or explain this error? Like a "More info" link or "Try again" button?

The error would probably be too technical for users so I added the line Please contact your system administrator if you have any questions. at the end

@Pytal
Copy link
Contributor Author

Pytal commented Mar 15, 2023

@nimishavijay @jancborchardt any additional design suggestions?

@nimishavijay
Copy link

Looks good to me! ccing @jancborchardt to double check the wording :)

Copy link
Contributor

@jancborchardt jancborchardt left a 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! :)

@Pytal Pytal added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Mar 16, 2023
@Pytal Pytal merged commit 79f7d30 into master Mar 16, 2023
@Pytal Pytal deleted the enh/resources-error branch March 16, 2023 17:19

description() {
if (this.error) {
return t('Error getting related resources. Please contact your system administrator if you have any questions.')
Copy link
Contributor

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.

Copy link
Contributor

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?

Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
4. to release Ready to be released and/or waiting for tests to finish enhancement New feature or request feature: related resources panel Related to the NcRelatedResourcesPanel component
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Display related resources errors in the panel
6 participants