Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If I'm on the modules page I very often try to click on a modules name within the list of required modules to directly jump to the row with this module.
The attached patch creates anchors for each module (row) and links the module names in "Requires" and "Required by" to the specific row.
Unless #538904: D8UX: Redesign Modules Page gets in somehow this could be a small improvement.
Comments
Comment #1
Bojhan CreditAttribution: Bojhan commentedLooks good to me, we saw this in the usability testing of the modules page too. Seems like a relatively simple patch too, another review and its RTBC from my POV. Also something we could roll back?
Comment #2
aschiwi CreditAttribution: aschiwi commentedNice patch! Works well when visiting admin/modules without overlay but the link doesn't jump when using overlay using Firefox (it works in Chrome).
Comment #3
aschiwi CreditAttribution: aschiwi commentedThat would be related to http://drupal.org/node/1129578 and probably can't be fixed within this patch here.
Comment #4
dawehnerShouldn't it be something like t('@module_name ... At least that's what core uses on a lot of different places. This is the case for all 4 instances of the link.
Comment #5
stBorchertChanged
!module
to<a href="@url">@module</a>
...Comment #6
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedIntresting patch. This looks like low-hanging fruit that improves usability a lot. Thank you, @stBorchert!
Since this adds a feature, we should probably have testcoverage for that. So a test should be added to core/modules/system/system.test, that checks a few anchors and a few links.
Notes from manual testing:
Comment #7
stBorchertThis would be fixed (hopefully) with #1129578: Overlay doesn't respect internal anchor links.
Indeed. I've changed the patch to not generate a full url but the anchor only.
Comment #8
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedAwesome.
Adding tests.
Comment #9
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedAlmost there. Unfortunately the module page is still reloaded when clicking links in the overlay. Can you reproduce this?
Comment #10
nod_don't mind me, just tagging.
Comment #11
Niklas Fiekas CreditAttribution: Niklas Fiekas commented#8: 1540780-interlink-modules-8.patch queued for re-testing.
We probably shouldn't hold this up on the reload issue. There's a major bug report for that, already: #1542472: Clicking on multiple anchor links while in overlay causes a page refresh potentially causing form data to be lost.
Comment #13
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedPatch no longer applied because of #1541676: Convert Simpletest base test classes to PSR-0.
Comment #14
nod_Don't apply anymore.
Comment #23
nod_we don't have overlay anymore, no js necessary here.