#37430 closed enhancement (fixed)
Add Plugins: Improve the error messages displaying
Reported by: | afercia | Owned by: | tinkerbelly |
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | Plugins | Keywords: | good-first-bug 2nd-opinion has-patch |
Focuses: | ui | Cc: |
Description
Minor visual improvements: in the Add Plugins screen, some error messages could use some love. For example, some messages can be very long: setting a max-width and increasing a bit the line-height could help. Also, on the responsive view, maybe the messages should not be displayed in the middle of the page but moved to the top.
For comparison, this is how the same message gets displayed in the Themes screens, so maybe worth considering also introducing a bit of consistency:
Attachments (10)
Change History (32)
#2
@
8 years ago
- Milestone changed from 4.6 to Future Release
- Summary changed from :Shiny updates improve the error messages displaying to Add Plugins: Improve the error messages displaying
- Type changed from defect (bug) to enhancement
- Version changed from trunk to 4.0
#3
@
8 years ago
I tried my hand at a patch here: https://core.trac.wordpress.org/attachment/ticket/37430/patch.diff
It looks as though this error had been using the "no-plugins-results" CSS class, which then styled it the same way as that error message.
Screen Shot 2016-07-24 at 15.23.46.png
Using a standard error class seems more sensible in this case. Here's what the error message looks like with the patch applied:
Screen Shot 2016-07-24 at 15.55.04.png
I'm not certain the "try again" link is required here—it's not used on the same error on the themes page, and it would make sense to keep it consistent. It just refreshes the page; not sure how useful users find it.
#4
@
8 years ago
- Keywords 2nd-opinion added
In my opinion 'Try Again' should look like button not link. It is useful for users as this error is unexpected so user should have the feature to Try Again.
#5
@
8 years ago
This error message appears when something wrong with server configuration and network connectivity as well.
In this case, Try again button would be helpful on theme-install.php same as plugin-install.php.
Adding patch for theme page Try again button.
#8
@
8 years ago
- Keywords needs-patch added; has-patch removed
37430.3.patch is for theme-install.php
, not the plugin installer as the ticket suggests.
As for the implementation: a button should be a button, not a link with href="#"
. See https://make.wordpress.org/core/handbook/best-practices/coding-standards/accessibility-coding-standards/
Since we have ajax search already on the plugin install screen — can we do the reloading without a full page refresh?
#9
@
8 years ago
- Keywords has-patch added; needs-patch removed
@m1tk00 Finally got around to review your patch as requested. Sorry for the delay!
Instead of moving around <hr class="wp-header-end">
, <div class="inline error">
can be used so the notice doesn't get relocated underneath the page title. I fixed this in 37430.diff and made a few optimizations here and there to further unify the error message.
Plugin error message:
Theme error message:
No plugin found:
No theme found:
#10
@
8 years ago
- Owner set to tinkerbelly
- Status changed from new to assigned
Assigning ownership to mark the good-first-bug
as "claimed".
This ticket was mentioned in Slack in #design by sarahsemark. View the logs.
8 years ago
#12
@
8 years ago
This looks to be best solved by https://core.trac.wordpress.org/attachment/ticket/37430/37430.diff above; feel free to prompt me if there's any further action on my part needed here. :)
The current design exists since 4.0. I agree that it should be improved, but it's not a regression.