Problem/Motivation

After #3215043: Indicate the non-stable statuses in admin/modules page and #3225812: Add lifecycle_link key to info.yml files the Seven theme adds a warning icon to /admin/modules for any obsolete or deprecated module that provides lifecycle_link in its .info.yml file. See also the change records

The Claro theme should indicate obsolete and deprecated modules as well.

Steps to reproduce

Add the following lines to core/modules/forum/forum.info.yml:

lifecycle: deprecated
lifecycle_link: http://example.com

With that addition and the patch from #3215043, the Forum module shows up like this in the Seven theme:

screenshot from /admin/modules

Proposed resolution

Remaining tasks

Subsystem maintainer has asked for a design, See #29

User interface changes

We have restored the warning icon before the deprecated text on deprecated modules, just like in the Seven theme. Please refer to the after screenshot for reference.

Before:

screenshot showing a deprecated module on /admin/modules

After:

API changes

None

Data model changes

None

Release notes snippet

None

Issue fork drupal-3236439

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

benjifisher created an issue. See original summary.

benjifisher’s picture

Also review the confirmation form. (Actually, there is more than one, depending on which modules are being enabled.) Here is another screenshot from #3215043: Indicate the non-stable statuses in admin/modules page:

screenshot of confirmation form when enabling an obsolete or deprecated module

larowlan’s picture

There is some CSS in system module too, so it may just work in claro, unless it swaps out that library

benjifisher’s picture

Issue summary: View changes
StatusFileSize
new13.39 KB

We tested #3215043: Indicate the non-stable statuses in admin/modules page during #3232405: Drupal Usability Meeting 2021-09-17. The warning icon does not show up in Claro.

I am adding a "before" screenshot to the issue summary. I created it using the patch from #3215043 and the hack described under "Steps to reproduce" in the issue summary on this issue.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

gauravvvv’s picture

Status: Active » Needs review
StatusFileSize
new1.54 KB

I have added a warning icon to highlight the deprecated modules same as seven theme. please review

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative, +Needs issue summary update

Issue summary appears to be incomplete.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

gauravvvv’s picture

Issue summary: View changes
Status: Needs work » Needs review
Issue tags: -Needs issue summary update
StatusFileSize
new103.06 KB

After Merge Request !7753

needs-review-queue-bot’s picture

Status: Needs review » Needs work

The Needs Review Queue Bot tested this issue.

While you are making the above changes, we recommend that you convert this patch to a merge request. Merge requests are preferred over patches. Be sure to hide the old patch files as well. (Converting an issue to a merge request without other contributions to the issue will not receive credit.)

gauravvvv’s picture

Status: Needs work » Needs review
vishal choudhary’s picture

Status: Needs review » Reviewed & tested by the community

"I have reviewed this deprecated text, and it highlights much better now. It's fine to consider any user's perspective."
So finally We Move to RTBC.
Thanks.

xjm’s picture

Status: Reviewed & tested by the community » Needs review
Issue tags: +Needs frontend framework manager review

#3215043: Indicate the non-stable statuses in admin/modules page seems to be removing this exact CSS from a number of places, so I'm a bit confused. Is this issue even still necessary? Why doesn't the original solution work in Claro? Can we re-test to confirm that HEAD is missing it?

xjm’s picture

In #16 I was looking at the patch. Hiding that. Question still stands as to why this is necessary/whether this is the correct approach though.

xjm’s picture

Issue tags: +Needs manual testing

 

simohell’s picture

Status: Needs review » Reviewed & tested by the community

I reviewed this issue, that is a follow-up on #3215043: Indicate the non-stable statuses in admin/modules page.

This MR adds an existing icon from the theme in front of the link with text "(Deprecated)". This icon used is the correct one and helps user to identify that using a deprecated module carries some risk. Icon is added as a background image and does not have effect on Voiceover screenreader.

The confirmation message does not need the additional icon as the whole message is styled as a warning that has it's own icon.

xjm’s picture

Status: Reviewed & tested by the community » Needs work

@simohell:

  • Manual testing is required to prove that the bug still exists. The "followup" you mention was committed years ago and therefore may have already resolved this.
  • My questions in #16 also need to be addressed
  • Either a Claro maintainer or (preferably) a frontend framework manager needs to validate the approach.
simohell’s picture

@xjm You mean the main issue is, that 11.x does not include /modules/system/css/system.admin.css on admin pages on Claro (or Olivero for that matter) even if it should? And it is also not certain wether it should or not?

(Edit: assume this is due to choise of CSS framework, but I'll ask)

simohell’s picture

Including /core/modules/system/css/system.admin.css would break some of the styling in Claro, so it makes sense that same icon is added to Claro in it's own CSS. Attached a screenshot of what would happend if the system CSS file would be used. #12 shows the expected result.

Claro with system.admin.css applied: Srcreenshot of Claro modules list with broken CSS

Claro 11.x:
Srcreenshot of Claro modules list with a deprecated module

xjm’s picture

What I'm looking for is Claro tested from the current 11.x or 10.3.x HEAD, without any fix applied. Thanks!

gauravvvv’s picture

Here is before patch screenshot, without any fix applied on 11.x

simohell’s picture

Sorry. I had both but comment had 11.x HEAD only as attachement, not inline.

simohell’s picture

Status: Needs work » Needs review

From #20 the task "Either a Claro maintainer or (preferably) a frontend framework manager needs to validate the approach." I think falls under the definition of "review" so I'll tag this back to "needs review".

quietone’s picture

Title: Highlight obsolete and deprecated modules on admin/modules in Claro » Use warning icon for obsolete and deprecated modules on admin/modules in Claro
catch’s picture

I think this needs review from a Claro maintainer - there's some overlap with FEFMs anyway.

ckrina’s picture

Status: Needs review » Needs work
Issue tags: -Needs subsystem maintainer review +Needs design

First, thanks all for working on this and finding a place that needs improvement. I agree with you all on this being one of those places.

We have restored the warning icon before the deprecated text on deprecated modules, just like in the Seven theme.

Even if this existed in Seven, it doesn't mean it'll visually work in Claro: it results in a really packed, confusing and un-structured group of elements. The solution proposed here is not the right one on a design/UI perspective. The title/heading is designed to hold the title, not title + parenthesis and its text + icons. We can't add info and elements to places that are not designed for that when there are no designs.

The goal of this issue is to make more obvious that a module is obsolete. +1 to that. The next step here is to find the right UI solution for Claro (applies to any UI), and that needs a designer designing that new part of the UI that don't exists (even if that existed in Seven, that solution doesn't work here). When that design is aproved, then let's jump into the implementation. This is the best workflow to be sure we end up with digestible UIs. :)

Edit: Thanks for tagging this as Needs subsystem maintainer review!

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.

quietone’s picture

Adding to the meta about the install/uninstall pages.

@ckrina, how to get the design work asked for in this issue? Who can do that?

nicxvan’s picture

Component: Claro theme » Admin theme

I'm going to move this to the admin theme, we still want to do this and claro is leaving.

quietone’s picture

Title: Use warning icon for obsolete and deprecated modules on admin/modules in Claro » Use warning icon for obsolete and deprecated modules on admin/modules