Problem/Motivation

A separate page for editing the fields of a vocabulary versus editing its structure is confusing and frustrating. Similar issue: #663946: Merge "List links" page into "Edit menu" page

Proposed resolution

Combine vocabulary edit page and vocabulary term overview page

Remaining tasks

Fix the failing tests
Implement tweaks from [##2520232: Separate the menu settings from the 'add link' button

User interface changes

No more vocabulary term overview page. Terms will be shown on vocabulary edit page.

Before

Two separate forms:

After

API changes

None

Postponed until #2520232: Separate the menu settings from the 'add link' button

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

xjm’s picture

xjm’s picture

jibran’s picture

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

Earlier this week I worked on #2421011: Make shortcut add and edit form titles better. This is WIP patch complete untested only made code changes.

Status: Needs review » Needs work

The last submitted patch, 3: merge_list_terms_page-1340500-3.patch, failed testing.

jibran’s picture

Issue summary: View changes
FileSize
288.52 KB
42.87 KB
2.63 KB

Voila

xjm’s picture

Whoa, awesome! That was fast.

+1 for this change generally; I personally click on the wrong thing all the time when I try to use this form. I'd like to get a quick usability assessment on the screenshot in #5 so we have some guidance on whether to proceed.

xjm’s picture

Maybe not related, but why isn't the "Add Term" button in the screenshot that blue one? In HEAD it is blue.

jibran’s picture

Issue summary: View changes
Status: Needs work » Needs review
jibran’s picture

At #7 nothing wrong with the patch my local install has this error.
Warning: include_once(core/themes/seven/seven.theme): failed to open stream: No such file or directory in Drupal\Core\Extension\Extension::load() (line 145 of core/lib/Drupal/Core/Extension/Extension.php).

xjm’s picture

Issue summary: View changes
FileSize
31.06 KB
52.36 KB

For reference, updating the summary to show what HEAD is like (with two different forms).

Also corrected the beta evaluation. It's not unfrozen--only CSS, strings, tests, etc. are unfrozen. It is however prioritized as a usability issue. Also corrected the disruption section with what I know without doing a code review; it's very common to alter this UI in contrib so this would break modules doing that.

xjm’s picture

Issue summary: View changes

And just moving the beta eval above the fold. :)

Status: Needs review » Needs work

The last submitted patch, 5: merge_list_terms_page-1340500-5.patch, failed testing.

xjm’s picture

xjm’s picture

Oh, I think maybe the "Add Term" button should also come between the vocabulary fields and the ordering sections; it's a little confusing at the top as it's away from the list of terms. Looking at https://www.drupal.org/files/Screen%20Shot%202013-02-01%20at%208.13.59%2... that was what was done in #663946: Merge "List links" page into "Edit menu" page as well.

jibran’s picture

Status: Needs work » Needs review
FileSize
20.04 KB
29.96 KB

Some more work.

  • Found a bug on Vocabulary listing page add term link was pointing to add vocabulary fixed it added assert. I'll move it to a separate issue.
  • Fixed Reset Button issue.
  • Removed/replaced overview-form, overview_form references.
  • Re-add \Drupal\taxonomy\Form\OverviewTerms because \Drupal\forum\Form\Overview uses it.
tim.plunkett’s picture

It seems like the last patch just duplicates code, not moves it?

Status: Needs review » Needs work

The last submitted patch, 15: merge_list_terms_page-1340500-15.patch, failed testing.

jibran’s picture

It seems like the last patch just duplicates code, not moves it?

Yeah can't remove the \Drupal\taxonomy\Form\OverviewTerms yet because \Drupal\forum\Form\Overview is extending it so I have to copy the code.

tim.plunkett’s picture

What about putting it in a trait? Or inlining the other copy to forum.module?

Duplicating the UI is way worse than duplicating the code (which is bad too!).

jibran’s picture

Found a bug on Vocabulary listing page add term link was pointing to add vocabulary fixed it added assert. I'll move it to a separate issue.

Created #2465425: Vocabulary listing missing add taxonomy term link for that.

Bojhan’s picture

Status: Needs work » Closed (won't fix)
Issue tags: -Needs usability review

Honestly this has created so many usability issues on menu pages, I dont think this is actually the good practice.

xjm’s picture

Version: 8.0.x-dev » 8.1.x-dev
Status: Closed (won't fix) » Postponed

Hm I am not sure this is good to unilaterally make wontfix; maybe we should explore other design options? This was originally designed as a usability improvement.

Moving to 8.1.x and postponing on the outcome of #2520232: Separate the menu settings from the 'add link' button.

xjm’s picture

Issue summary: View changes
jonathanshaw’s picture

Issue summary: View changes
Status: Postponed » Active

#2520232: Separate the menu settings from the 'add link' button has resolved with a reasonable generic solution for these cases. Ideally this case should use the same solution.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.0-beta1 was released on March 2, 2016, which means new developments and disruptive changes should now be targeted against the 8.2.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

ifrik’s picture

Merging the "edit vocabulary" functionality and "list terms" on one page is not a good idea because it would cause other usability issues.

First of all: we loose the two different operators that clearly let the user choose between listing all terms and editing the vocabulary as such. For menus we have now ended up with the usability problem that there is no operator and no quick link for a user who wants to access the list of menu items: that's now hidden under "Edit menu".

Secondly: In a default Drupal installation, there really is in fact only the Vocabulary name and description under "Edit". But on a multilingual site the Edit page also contains the configuration about the Vocabulary language and whether terms can be translated. This is a configuration of the vocabulary as such and should not be mixed up with a list of terms.

Third: In many cases, a user role should have the permissions to add taxonomy terms, but not to rename the vocabulary. If we merge this, then users still need to go to "Edit vocabulary" when they have no permission to do so, and when the task at hand is to add a term to the list.

ifrik’s picture

Sorry, I forgot the screenshot for the previous comment

That's additional configuration for a vocabulary on a multilingual site that lives on the Edit page.

xjm’s picture

Status: Active » Postponed

Thanks @ifrik for your leadership and thoughtfulness on these issues.

Let's postpone this issue on an overall issue to design and validate better UIs for these configure/list/etc. admin UIs that have multiple actions. See #2520232: Separate the menu settings from the 'add link' button for a starting point. We can incorporate the discussion from this issue as well, but we need someone's help to summarize the overall issue so the discussion does not continue to fragment.

Thanks!

Version: 8.2.x-dev » 8.3.x-dev

Drupal 8.2.0-beta1 was released on August 3, 2016, which means new developments and disruptive changes should now be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.3.x-dev » 8.4.x-dev

Drupal 8.3.0-alpha1 will be released the week of January 30, 2017, which means new developments and disruptive changes should now be targeted against the 8.4.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.5.x-dev » 8.6.x-dev

Drupal 8.5.0-alpha1 will be released the week of January 17, 2018, which means new developments and disruptive changes should now be targeted against the 8.6.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

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

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

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.

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

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

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

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.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.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.

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.