Problem/Motivation

When viewing the 'Update' tab, the 'List', 'Update' and 'Update Extensions' tabs appear twice. The only occurs on that one tab, it is correct on all other tabs in this section.

Steps to reproduce

  1. Install Drupal CMS
  2. Visit the 'Update' page

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

pameeela created an issue. See original summary.

thejimbirch’s picture

I think you uploaded the wrong screenshot.

pameeela’s picture

Issue summary: View changes
StatusFileSize
new19.02 KB

Oops!

pameeela’s picture

Issue summary: View changes
StatusFileSize
new43.75 KB

Errrm oops again.

pameeela’s picture

pameeela’s picture

Issue summary: View changes
StatusFileSize
new48.66 KB
oldspot’s picture

I just installed a fresh version of it and was clicking around and noticed the same thing.
It seems like the List and Update from "/admin/modules" menu is interfering with the same named menu items from the "/admin/reports/" menu.

phenaproxima’s picture

Project: Drupal CMS development repository » Automatic Updates
Version: » 4.x-dev
Component: Base Recipe » User interface

I'm not sure why this is a stable blocker for Drupal CMS, but I'm pretty sure it's a bug in Automatic Updates itself. Moving to that queue.

phenaproxima’s picture

Assigned: Unassigned » phenaproxima

I can confirm that this is reproducible with vanilla core, so it's definitely a bug in Automatic Updates. I'll work on it.

phenaproxima’s picture

Turns out this is very hard to fix, because local tasks in general are a confusing hellhole that don't work the way you want or expect them to.

Honestly, my feeling is that this is not worth fixing, and instead we should focus on completely revamping the UI to all be on one page (both core and contrib updates), rather than duplicative tabs. That's a much bigger lift, but I think it will be quite a bit more rewarding in the long run, and it would also allow us to sidestep the need to do incomprehensible local task jiu-jitsu.

pameeela’s picture

@phenaproxima explained that this is because they are being shown as local tasks in two places, under Extend and Reports.

We should use actions in Reports, and link through to the Extend section. An action each for 'Update core' and 'Update extensions'.

phenaproxima’s picture

Nah, screw it. The existing UX is atrocious and buggy. It need not be this way.

I changed it such that:

  • There are three local tasks called "Update": one on the themes list, one on the modules list, and one on the reports page. (Same as now.)
  • Each one links to a clone of the main Automatic Updates route, which makes the tasks behave properly.
  • Automatic Updates Extensions no longer provides a separate route. Instead, it overrides the Automatic Updates route and shows a single unified list of updates, separated into two sections (one for core and one for contrib).

If you don't like the three clones, then what we could do as an equivalence is have one route that is canonical, and the others can just redirect to it. The downside of that is the fact that it kicks you into an entirely different area of the admin backend. But whether that's a problem is for the UX folks to say.

It's a pretty major change, but I think it's a big step in the right direction. The nature of this change, I think, means we should put this in a 4.1.0 release.

phenaproxima’s picture

I discussed this proposed UX change in a Slack DM with @ckrina and she gave me the sign-off I was hoping for.

The salient bits (lightly edited to remove me dropping profanity):

phenaproxima
Well, okay then. Basically, AU’s UX is an unholy mess. It adds two tabs to several places: one to update core (“Update”) and one for modules and themes (“Update Extensions”). These tabs get duplicated as well in a couple of places, due to the menu system being [wonky]

ckrina
So, if I am understanding this the result is that instead of "Update"x2 and "Update Extensions" x2 there will be only une tab calles "Update" in the Update page?

phenaproxima
Almost. There will be one tab called “Update” and it appears in three places:
Update page
Modules page
Themes page
And it always goes to the same place, which is a complete dashboard of available updates (core and contrib).

ckrina
If I am understanding this well, it makes sense

phenaproxima
That’s what I figured. The idea is to bring AU closer to the unified Extend section envisioned in the wireframes.
Instead of [whatever] it's doing now.

ckrina
YEah, I don't care on a UX perspective if you are duplicating or not: but the Update things place should be one in theory with all the things that need to be updated

phenaproxima
That’s what this does.
All updates in one place.

ckrina
And you should be able to get there from any place where are things that need to be updated

phenaproxima
Yep, that’s what this does too.

ckrina
Then you have my +1

phenaproxima’s picture

Assigned: phenaproxima » Unassigned
Status: Active » Needs review
phenaproxima’s picture

Title: Update and Update Extensions tabs appear twice » Show core and extension updates on a single page, accessible from multiple places
pameeela’s picture

StatusFileSize
new86.19 KB

This is excellent! My only feedback is that I still think 'Update' should be an action in the secondary places (Appearance and Reports) because it does not make sense as a tab. First of all, it takes you somewhere else entirely, but more to the point it is not that obvious currently that it is a call to action.

I think this is even more important considering that the 'you have updates' message links to the Reports page, and from there it's not immediately obvious what to do next.

pameeela’s picture

Let's do that in a follow up though.

phenaproxima’s picture

OK, look.

Build tests are still failing, despite my Herculean efforts to make them work. The simple fact is that they are an inconsistent, lumbering mess (and I originally created the framework for them, so I can say that safely) and need to be refactored and redesigned.

That said, all other tests are passing, and Pam has reviewed this. This UX improvement is significant and is a Drupal CMS 2.x stable blocker, so it needs to happen. I think the actual functionality being implemented in this MR works fine, and we cannot keep stalling this because the build tests are garbage.

I'm going to merge this with the failing tests, and I can work on stabilizing everything in other issues.

  • phenaproxima committed 3f63e30c on 4.x
    feat: #3533717 Show core and extension updates on a single page,...
phenaproxima’s picture

Status: Needs review » Fixed

Merged into 4.x.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

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