Problem:

When adding new text format, the form shows empty "Filter processing order".

Solution:

Add a warning message to the table and the use #states to hide it as soon as a filter is selected.

Issue fork drupal-1479210

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:

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kika’s picture

FileSize
59.54 KB

Bojhan’s picture

Issue tags: -Needs usability review

Yes, patch please! :)

BrockBoland’s picture

FileSize
1.77 KB

The attached patch addresses the "Filter processing order" table and labels. The "Filter settings" section uses vertical tabs, so it should probably be fixed in the vertical tabs JS so that the fix applies to everywhere that it's used.

BrockBoland’s picture

I opened #1496552: Vertical tabs visible when empty to address the vertical tabs portion of this.

sun’s picture

Title: Do not show empty "Filter processing order / Filter settings" labels when adding text format » Text format creation form shows empty "Filter processing order" table/heading
Issue summary: View changes

Latest HEAD no longer shows the empty "Filter settings" vertical tabs section when no filter is enabled.

Only the "Filter processing order" table(drag) is visible. Adjusting issue title accordingly.

That said, I'm actually not sure whether it is a good idea to clean this up, because 99.999% of all text formats should have filters applied.

As such, the existence of the empty "Filter processing order" table can also be understood as a hint/clue that "You should enable some filters, my friend."

Wim Leers’s picture

Marked #949662: Improve text format dialog, perhaps by adding messages when no configurable filters are enabled and #1462744: UX issue when no Enabled filters are selected in the Text formats page as duplicates.

I agree with #5. Ideally, we would make that message explicit though, instead of leaving the UI in a weird state. Because when you create a new text format, it'll look this weird by default, which is not so great.

sun’s picture

How about this idea?

Add a UI-only checkbox (no config) that you have to toggle/enable, in order to explicitly save a text format without any filters?

[ ] Make this text format insecure

    Enable to save without filters.

If you don't enable it + try to save sans enabled filters, an error message appears that educates you further.

Bojhan’s picture

@sun What about a warning? I am not sure people would understand that checkbox, because the checkbox itself doesn't make it insecure?

Wim Leers’s picture

How about just using #states to disable the "Save" button until >1 filter is activated? (And maybe an accompanying message that is only visible while 0 filters are enabled.)

sun’s picture

#9 sounds nice and simple on the surface, but there are actually use-cases for having a format without any filters. ;)

However, we could use the #states idea and just apply it to a warning message instead? (similar to the tabledrag save warning, but reversed)

Bojhan’s picture

@sun We could, that sounds pretty nice actually. How do we deal with the "not seeing" it problem? Or is it within the screen scroll here?

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

Drupal 8.0.6 was released on April 6 and is the final bugfix release for the Drupal 8.0.x series. Drupal 8.0.x will not receive any further development aside from security fixes. Drupal 8.1.0-rc1 is now available and sites should prepare to update to 8.1.0.

Bug reports should be targeted against the 8.1.x-dev branch from now on, and new development or disruptive changes should 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.

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

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should 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.2.x-dev » 8.3.x-dev

Drupal 8.2.6 was released on February 1, 2017 and is the final full bugfix release for the Drupal 8.2.x series. Drupal 8.2.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.3.0 on April 5, 2017. (Drupal 8.3.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.3.x-dev branch from now on, and new development or disruptive changes should 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.3.x-dev » 8.4.x-dev

Drupal 8.3.6 was released on August 2, 2017 and is the final full bugfix release for the Drupal 8.3.x series. Drupal 8.3.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.4.0 on October 4, 2017. (Drupal 8.4.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.4.x-dev branch from now on, and new development or disruptive changes should 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.4.x-dev » 8.5.x-dev

Drupal 8.4.4 was released on January 3, 2018 and is the final full bugfix release for the Drupal 8.4.x series. Drupal 8.4.x will not receive any further development aside from critical and security fixes. Sites should prepare to update to 8.5.0 on March 7, 2018. (Drupal 8.5.0-alpha1 is available for testing.)

Bug reports should be targeted against the 8.5.x-dev branch from now on, and new development or disruptive changes should 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.5.x-dev » 8.6.x-dev

Drupal 8.5.6 was released on August 1, 2018 and is the final bugfix release for the Drupal 8.5.x series. Drupal 8.5.x will not receive any further development aside from security fixes. Sites should prepare to update to 8.6.0 on September 5, 2018. (Drupal 8.6.0-rc1 is available for testing.)

Bug reports should be targeted against the 8.6.x-dev branch from now on, and new development or disruptive changes should 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.6.x-dev » 8.8.x-dev

Drupal 8.6.x will not receive any further development aside from security fixes. Bug reports should be targeted against the 8.8.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.9.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: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.7 was released on June 3, 2020 and is the final full bugfix release for the Drupal 8.8.x series. Drupal 8.8.x will not receive any further development aside from security fixes. Sites should prepare to update to Drupal 8.9.0 or Drupal 9.0.0 for ongoing support.

Bug reports should be targeted against the 8.9.x-dev branch from now on, and new development or disruptive changes should 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.

catch’s picture

Issue summary: View changes
Issue tags: +Novice, +Bug Smash Initiative

This is still an issue. Updating the issue summary and tagging novice.

ChrisDarke made their first commit to this issue’s fork.

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

Drupal 8 is end-of-life as of November 17, 2021. There will not be further changes made to Drupal 8. Bugfixes are now made to the 9.3.x and higher branches only. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

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

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

Drupal 9.3.15 was released on June 1st, 2022 and is the final full bugfix release for the Drupal 9.3.x series. Drupal 9.3.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.4.x-dev branch from now on, and new development or disruptive changes should 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.4.x-dev » 9.5.x-dev

Drupal 9.4.9 was released on December 7, 2022 and is the final full bugfix release for the Drupal 9.4.x series. Drupal 9.4.x will not receive any further development aside from security fixes. Drupal 9 bug reports should be targeted for the 9.5.x-dev branch from now on, and new development or disruptive changes should 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.

carolpettirossi’s picture

Status: Active » Needs review
FileSize
169.42 KB
3.1 KB

I confirm this issue still happens on Drupal 9.5.5.

Empty filter area on Drupal 9.5.5

I couldn't apply the patch provided on #3. So I'm attaching a re-roll for 9.5.x, including the es6 and transpiled JS files.

needs-review-queue-bot’s picture

Status: Needs review » Needs work
FileSize
1.9 KB

The Needs Review Queue Bot tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".

Apart from a re-roll or rebase, this issue may need more work to address feedback in the issue or MR comments. To progress an issue, incorporate this feedback as part of the process of updating the issue. This helps other contributors to know what is outstanding.

Consult the Drupal Contributor Guide to find step-by-step guides for working with issues.

Nitin shrivastava’s picture

Try to fix CCF ERROR.

Nikhil_110’s picture

Status: Needs work » Needs review
Nikhil_110’s picture

Patch #26 has been applied successfully for Drupal 9.5.x and I have attached the screenshots as well.

smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs tests, +Needs Review Queue Initiative

This needs a test case showing the issue.

Version: 9.5.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. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.