Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#64475 new enhancement

Make dependencies / states more clear

Reported by: presskopp's profile Presskopp Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version: 6.5
Component: Upgrade/Install Keywords: has-screenshots has-patch
Focuses: ui Cc:

Description

Coming from wp-admin/plugin-install.php, when viewing a plugin that depends on another plugin, the UI currently only states “Additional plugins are required.”

It does not indicate whether the required plugin is already installed, active, or missing. The same lack of information exists on the Plugins screen.

This makes it unnecessarily hard to understand what action is actually required.

I have created a small starter patch to illustrate how this information could be exposed more clearly. The patch is only affecting the plugins list so far. Also CSS is missing.

Attachments (2)

plugins.png (41.1 KB) - added by Presskopp 4 months ago.
64475-before.png (23.3 KB) - added by Presskopp 4 months ago.

Download all attachments as: .zip

Change History (13)

@Presskopp
4 months ago

This ticket was mentioned in PR #10686 on WordPress/wordpress-develop by @Presskopp.


4 months ago
#1

  • Keywords has-patch added

make dependencies and states more clear

Trac ticket: 64475

#2 @Presskopp
4 months ago

missing CSS could look like:

.plugins .dependency-icon {
	margin-left: 2px;
	vertical-align: text-bottom;
}

.plugins .dependency-icon--active {
	color: #46b450; /* WP success green */
}

.plugins .dependency-icon--installed {
	color: #1d2327; /* Default admin text */
}

.plugins .dependency-state {
	margin-left: 2px;
	font-style: italic;
}

.plugins .dependency-state--missing {
	color: #b32d2e; /* WP error red (optional) */
}

#3 @westonruter
4 months ago

  • Component changed from Plugins to Upgrade/Install
  • Milestone changed from Awaiting Review to Future Release
  • Version set to 6.5

Plugin Dependencies were introduced in #22316.

This ticket was mentioned in PR #10695 on WordPress/wordpress-develop by @Presskopp.


4 months ago
#4

This follow-up fixes inconsistent whitespace in the plugin dependency list output
introduced during the dependency link refactor.

It ensures consistent spacing and avoids unintended whitespace in the rendered
dependency status markup.

@Presskopp commented on PR #10695:


4 months ago
#5

Follow-up fix for whitespace issues is in #10695

@Presskopp commented on PR #10695:


4 months ago
#6

I'm so sorry, when I try to tidy up, I just make more mess. This should be only 1 commit

This ticket was mentioned in PR #10697 on WordPress/wordpress-develop by @Presskopp.


4 months ago
#7

Improves the plugin dependencies UI by indicating whether required plugins
are installed, active, or missing.

Follow-up to #10686.
Trac: #64475

@westonruter commented on PR #10695:


4 months ago
#8

Don't worry about it only being 1 commit. It will be 1 commit in SVN regardless.

#9 @westonruter
4 months ago

@Presskopp I understand that plugins.png shows the difference after the change. Can you add a screenshot that shows the before state as well?

#10 @Presskopp
4 months ago

The 'before' state doesn't show the detailed states like "not installed", "installed", "active" and of course there are no checkmarks either.

In the first screenshot (patch applied) the view under plugin-install.php is showing "not installed" but this has been "photoshopped". It should be part of the final patch, that's why I added it to the image.

Note: See TracTickets for help on using tickets.