Problem/Motivation

Redesign the current modules page. MVP provides the same interaction with updated styles / components.

Proposed resolution

Initial proposal can be found here https://www.figma.com/file/NpZUAp8BEkMJvm5gKBCDBB/Claro?node-id=16542%3A34

General specs

The details elements within modules
https://www.figma.com/file/NpZUAp8BEkMJvm5gKBCDBB/Claro?node-id=17544%3A327
https://www.figma.com/file/OqWgzAluHtsOd5uwm1lubFeH/Drupal-Design-system...

Full page (if anything in the full page Figma contradicts the details element Figma linked above, assume the details element Figma is the correct spec)
Mockup of Extend page

Remaining tasks

  • Standardize the Details component across pages
  • Determine design pattern for the module filter

User interface changes

Style changes to Details components, and possible style changes to filter component

Test Pages

  • /admin/modules
CommentFileSizeAuthor
#44 interdiff.txt465 byteslauriii
#44 3072772-44.patch47.06 KBlauriii
#43 interdiff.txt525 byteslauriii
#43 3072772-43.patch47.06 KBlauriii
#41 Screenshot 2020-10-15 at 12.21.49.png348.4 KBGábor Hojtsy
#38 interdiff_34-38.txt1.78 KBkatherined
#38 3072772-38.patch47.06 KBkatherined
#36 Screenshot 2020-10-08 at 14.19.06.png73.57 KBlauriii
#36 Screen Recording 2020-10-08 at 14.17.09.gif337.18 KBlauriii
#36 Screenshot 2020-10-08 at 14.16.51.png99.1 KBlauriii
#34 3072772-34.patch46.62 KBbnjmnm
#34 interdiff_32-34.txt3.92 KBbnjmnm
#32 interdiff_28-32.txt6.08 KBkatherined
#32 3072772-32.patch45.68 KBkatherined
#31 Screenshot 2020-09-25 at 14.46.23.png59.15 KBlauriii
#28 interdiff_22-28.txt10.51 KBkatherined
#28 3072772-28.patch50.33 KBkatherined
#28 modules-page2.gif589 KBkatherined
#28 modules-page1.gif686.67 KBkatherined
#28 module-focus.jpg37.4 KBkatherined
#28 modules-hover.jpg13.19 KBkatherined
#26 Extend v2 - narrow width.png59.99 KBDyanneNova
#22 show-all-columns.png65.86 KBbnjmnm
#22 d9.test_he_admin_modules.png3.19 MBbnjmnm
#22 d9.test_en_admin_modules.png1.98 MBbnjmnm
#22 3072772-22.patch44.07 KBbnjmnm
#19 Claro-Extend-Action-links-3072772-19.png70.98 KBDyanneNova
#17 Screen Shot 2020-08-06 at 9.46.51 AM.png35.15 KBbnjmnm
#16 Claro–Figma-Details-Extras.png42.17 KBDyanneNova
#13 Screen Shot 2020-08-05 at 7.46.38 AM.png35.96 KBbnjmnm
#10 Claro-Extend-3072772-1.png128.46 KBDyanneNova
#11 Extend-v2.2.0.png106.19 KBDyanneNova
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

antonellasev created an issue. See original summary.

ckrina’s picture

Status: Active » Postponed

Postponing this until the design is done.

huzooka’s picture

Project: Claro » Drupal core
Version: 8.x-1.x-dev » 8.9.x-dev
Component: Needs design » Claro theme
ckrina’s picture

Issue tags: +Needs design

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

bnjmnm’s picture

Could we credit @harishkunta and @sauravk on this? They began making improvements in #3116270: Fix CSS style in modules page, which I closed as a duplicate of this. They were not aware that the designs for the Modules weren't yet completed. I think it was a good faith effort in a process that probably isn't immediately clear.

lauriii’s picture

Issue summary: View changes
Status: Postponed » Active
poojakural’s picture

Assigned: Unassigned » poojakural
poojakural’s picture

Assigned: poojakural » Unassigned
DyanneNova’s picture

Issue summary: View changes
FileSize
128.46 KB

I'm working on standardizing the design in the Figma to use the same details pattern as the Status Report.

DyanneNova’s picture

Issue summary: View changes
Status: Active » Needs review
FileSize
106.19 KB

Here is the updated design. This includes the updated component for Details and an update to the filter component for consistency with the Content page and better segmentation for clarity.

Mockup of Extend page

lauriii’s picture

The designs look good visually. ✨ I'm wondering if we actually need the details element for the groups since they are open by default? I guess we don't have data on whether they are being used. If we think we need these variations of the details elements, we should probably also add those variations to the component specification https://www.figma.com/file/OqWgzAluHtsOd5uwm1lubFeH/Drupal-Design-system....

bnjmnm’s picture

Re #12

I'm wondering if we actually need the details element for the groups since they are open by default? I guess we don't have data on whether they are being used.

When test modules are configured to be visible, their details container defaults to closed.

  1. Could the Figma comp be updated to remove the secondary tabs for selecting a theme? I'm guessing this is just a copy/paste artifact
  2. Since the nested details elements contain more than plain text, could the designs be expanded to cover not-just-plain-text contents such as list items and icon links such as the ones shown here for Configuration Manager?
lauriii’s picture

When test modules are configured to be visible, their details container defaults to closed.

Thanks for pointing that out 👍 I guess we could still render the test modules using details. Having test modules visible is an edge case which we probably shouldn't try to accommodate too hard. I'm fine with all of the groups being rendered in details, but I would recommend reconsidering that if the only reason to do so is that we want to close the testing group.

KondratievaS’s picture

Status: Needs review » Needs work
DyanneNova’s picture

Re #13

1. I'm guessing it was from a copy/paste as well. I've fixed it.
2. I've added an example for the icon links to the Figma.

Mockup of Exrta items in Claro Details component

Re #12

I remember that I found the ability to close the different categories useful when I was a Drupal site builder, but I don't have a strong argument for either direction.

bnjmnm’s picture

  1. I'm not seeing the changes in #16 in Figma using the link in the issue summary, perhaps theres a different location for this updated version? The Figmas are vast worlds and may have missed it.
  2. I noticed the inline link styling in the top text (Download additional *contributed modules*, etc.) is different from inline link styling elsewhere.


    It looks like they more resemble .admin-item__link, which are for links not displayed inline, like the config items at admin/config.

    Wasn't sure if the deviation from the pattern was intentional, if there's an additional pattern I'm not aware of, or if the links should confirm with inline links elsewhere.

  3. Looking at the Help/permissions/configure links, I'm not sure this styling for icon+link appears anywhere else in Claro, it seem like a mixture of styles for inline links and action links. admin/appearance uses the action links pattern so I'm wondering if that would work here as well (like the previous item, it's also possible I'm overlooking an existing pattern)
DyanneNova’s picture

1. The updated component is here: https://www.figma.com/file/NpZUAp8BEkMJvm5gKBCDBB/Claro?node-id=17544%3A327

The Extend page updates should be visible now, they were in a different location.

2. That's an interesting point. The inline links in the Extend Figma match most of the pages in the Claro Figma, but none of those pages match the current Claro inline link styling. I'll update the Extend and Status Report pages. I'm guessing the Claro Figma just hasn't been updated since inline links were finalized.

3. I think that's a good idea.

DyanneNova’s picture

Status: Needs work » Needs review
FileSize
70.98 KB

I've updated the Details Component to use the Action Link components.

Details Component with Action Links Mockup

ckrina’s picture

Really nice designs @DyanneNova!

I'm wondering if we actually need the details element for the groups since they are open by default?

I'd say they are necessary for smaller screens: it's too much info and would take too much vertical space otherwise, making it really difficult to navigate. Probably most people will use the search, but still it'd take ages to scroll.
And I'm not in favor of collapsing them by default on desktop, although it might be worth testing it on a design perspective.

lauriii’s picture

Discussed the nested details elements with @ckrina and @saschaeggi. We agreed that the current solution is good enough for now, but we should open a follow-up to do a more invasive redesign. We could use something like Module Filter as an influence for the redesign. Removing the needs design tag and replacing with a needs followup tag to open a follow-up for the future design work.

bnjmnm’s picture

I have two things that may require design input, but that does not need to block review.

  1. At narrower widths, the "show all columns" link becomes visible. A design is needed for this link.
  2. The module label color is #232429. This color not used anywhere else in Claro. The current patch uses this value, but there may be an existing color that can be used instead.

LTR/RTL full page screenshots attached.

lauriii’s picture

Seems like the action links in the designs are using variation where the font-size is 12px. Is that a new variation of action-link because I cannot find that form the components?

Status: Needs review » Needs work

The last submitted patch, 22: 3072772-22.patch, failed testing. View results

DyanneNova’s picture

The mockup is using the XS Text size, to match the description text. The Action Links components only has Medium and Small listed, but if we want to match the action links to the surrounding text size, we'll need an XS action link as well.

The module label color is the Text color in the Figma documents. It's still listed as the primary text color. Should we update the Figma to change the text color?

DyanneNova’s picture

FileSize
59.99 KB

I've added a mockup for #22 - 1 to Figma. It includes an action link for Show all Columns.

Mockup for "Show all columns "action

lauriii’s picture

Issue summary: View changes

The specification for this is now complete and can be taken into account in the implementation: https://www.figma.com/file/OqWgzAluHtsOd5uwm1lubFeH/Drupal-Design-system...

katherined’s picture

Status: Needs work » Needs review
FileSize
13.19 KB
37.4 KB
686.67 KB
589 KB
50.33 KB
10.51 KB

I've updated the patch with the design for the "show all columns" link, adjusted some spacing and color, and added the small variation of the action links in the module details element.

In the process I defined a variable for details-line-height because it's reused a few time to reset that value. I changed it to rem units instead of em. I don't *think* that creates a problem anywhere, but I'd love for someone else to confirm that in case I have missed something.

I'm a bit concerned about the implementation of the details element hover state below.

Highlighting the whole row across three table cells seems to introduce a lot of complexity that I worry may be a bit fragile and unsustainable. And since the module description details element is really a completely separate thing from the module name and checkbox, it seems like having them all hover together is an unexpected result. Focus, for example, doesn't work that way.

If feels like the natural behavior would be to either highlight the details element or the whole row, but it could be that I'm not thinking of the right solution, in which case I would love input.

For example:

The modules page will also ultimately benefit from #3057772: Ambiguous icons for collapsing/expanding menu items, so I didn't address that here.

Status: Needs review » Needs work

The last submitted patch, 28: 3072772-28.patch, failed testing. View results

lauriii’s picture

I'm getting some errors with the latest patch:

User error: "module_package_listing" is an invalid render array key in Drupal\Core\Render\Element::children() (line 97 of core/lib/Drupal/Core/Render/Element.php).
Drupal\Core\Render\Element::children(Array) (Line: 708)
claro_form_system_modules_alter(Array, Object, 'system_modules') (Line: 449)
Drupal\Core\Theme\ThemeManager->alterForTheme(Object, 'form', Array, Object, 'system_modules') (Line: 458)
Drupal\Core\Theme\ThemeManager->alter(Array, Array, Object, 'system_modules') (Line: 837)
Drupal\Core\Form\FormBuilder->prepareForm('system_modules', Array, Object) (Line: 279)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 573)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 158)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 80)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 34)
Drupal\form_test\StackMiddleware\FormTestMiddleware->handle(Object, 1, 1) (Line: 57)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 49)
Asm89\Stack\Cors->handle(Object, 1, 1) (Line: 47)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 52)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 706)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
require('/Users/lauri.eskola/Projects/drupal/index.php') (Line: 65)

lauriii’s picture

We could consider the focus effect from Gin because at least in my opinion it looks visually a bit nicer:

katherined’s picture

This should fix the previous patch test error, and I removed the comment noise.

katherined’s picture

Status: Needs work » Needs review
bnjmnm’s picture

The property change in #32 needed to have the corresponding conditionals that referenced it changed as well. Also changed the details arrow positioning so it's always in the upper corner instead of 50% of the element height (this becomes apparent on module descriptions long enough to wrap), and changed a stray px value to rem.

DyanneNova’s picture

Status: Needs review » Reviewed & tested by the community

I think this is looking good. The mobile view looks like it's working correctly now and the details hover looks much better.

lauriii’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Needs review
FileSize
99.1 KB
337.18 KB
73.57 KB

  1. Is it intentional that the width of the details element differs across groups? In Seven the groups have consistent width across all groups and I didn't any discussion about that here.

  2. The details elements resize sometimes when they are opened. I'm wondering if this could be avoided since it's not something that usually happens with the details elements.

  3. I feel like the design looks a bit busy in this state. There are various different margins, font-sizes and font-weights. Any thoughts if we tried to optimize some of those?
  4. #21 still needs follow-up.
DyanneNova’s picture

Status: Needs review » Needs work

@#36

1. That's a good point. In Seven the first two columns have set % widths so that doesn't happen.

2. We should be able to avoid that by adding the fix for #1

3. I think the design is not any busier than Seven at this point and will get us to something that looks like Claro, so it's at least a good interim step. It sounds like we already want to update this page, so I think we can do more in the follow-up.

4. I've made a follow-up here #3175856: Redesign Extend Page in Claro

katherined’s picture

Status: Needs work » Needs review
FileSize
47.06 KB
1.78 KB

This should address #1 and #2 in #36.

DyanneNova’s picture

Status: Needs review » Reviewed & tested by the community

#38 covers #1 and #2, so I think this is ready to go. The column widths match those of Seven now and the elements don't shift around.

quietone’s picture

Issue tags: -Needs followup

Has the followup been made? It was asked for in #21.

Ah, I finally found it, it was made in #37. Removing tag.

Gábor Hojtsy’s picture

Title: Modules page » Initial Claro design for the modules page
Issue summary: View changes
Issue tags: -Needs issue summary update
FileSize
348.4 KB

I agree that this is much better than the Seven/Claro mix we had before. I made this comparison screenshot:

Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Needs work

Attempted to commit this, got this error:

themes/claro/css/components/system-admin--modules.pcss.css
 56:3  ✖  Expected "color" to come before "border-bottom"   order/properties-order
lauriii’s picture

Status: Needs work » Reviewed & tested by the community
FileSize
47.06 KB
525 bytes

Fixed #42 by running yarn run lint:css --fix. These changes are minor so moving back to RTBC.

lauriii’s picture

Forgot to build CSS again 🤦‍♂️

  • Gábor Hojtsy committed eb3c7a0 on 9.1.x
    Issue #3072772 by katherined, lauriii, bnjmnm, DyanneNova, Gábor Hojtsy...
Gábor Hojtsy’s picture

Status: Reviewed & tested by the community » Fixed

Superb. Verified that the interdiffs were indeed accurate. Thanks all! As I wrote in #41 I agree this is a huge improvement.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.