-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Font library: add support for detailed error messaging in API and UI #54777
Comments
@jasmussen can you suggest error messaging designs and message copy for the following scenarios.
Failure reasons:
|
Sure. For the time being, I would keep these as notices, right below the gray upload box. I would keep them all at the yellow warning level, unless it's an upload successful, then it can be green. As noted elsewhere, in the future we should redirect to the uploaded font in the Library tab instead of showing the green notice. Please note that many of these messages are also to be found in the Failure copy suggestions:
"Upload successful".
"Upload failed".
"Sorry, you are not allowed to upload this file type."
"Sorry, you are not allowed to upload this file type."
"Sorry, you do not have permission to upload."
"Sorry, WordPress does not have permission to upload."
Question, do we simply omit the duplicated fonts and upload any variants that are missing? In that case, "Upload successful." — no reason to call this out, IMO.
"Upload failed." |
I believe beside media upload util the remaining failure/validation errors are from server. Generally the |
Pulling this feedback from the FSE Outreach Program as these concerns are coming up there:
Another piece of feedback on this note from the same call for testing:
Proper error messaging would go along way, perhaps along with an "allowed file type" note. |
I want to direct attention back to the initial mockups, which currently look like this: Note here the message below the Upload dropzone that says:
I believe the separate upload tab is still being developed in a separate PR, so I'm sharing this mostly as a note to remember to go back to the mockups, a lot of detail is captured there. That said, I wouldn't mind if it were possible to include the extension information in the upload notice as well. So potentially something like:
|
I find the messages too nondescriptive.
|
Also noting that in the current implementation the error messages disappear automatically after a few secs. This shouldn't happen. |
I think error messages have been generally improved since the REST API updates and refactor in Jan. Can we close this one? |
Error messaging improved in latest releases and closing this as it is no longer applicable. |
Description
The current implementation of API doesn't return detailed error when a font upload fails. Because of this reason, it is not possible to show appropriate error message in the UI.
Return detailed error messages from the API.
Step-by-step reproduction instructions
Try uploading a
.otf
file, and observe that API doesn't return any relevant error message or type.Screenshots, screen recording, code snippet
No response
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: