Problem/Motivation

The current Media order for the dialog is ['application', 'image', 'audio', 'video', 'text']

This means if you have a Media bundle that matches an application, e.g. "zip" or "rar", then that Media bundle will be shown first above the Document bundle (which typically has things like pdf).

This is not ideal, as the "application" type is one of the least likely used types, so shouldn't be high up in the priority list.

Steps to reproduce

Create an "Archive" Media bundle with a file type of "zip" or "rar".

When the media dialog is opened without a specific type, then that Archive Media bundle will be shown above the default Document bundle.

Document should typically be first.

Proposed resolution

Add text higher up the list so that the Document media bundle is consistently higher.

We can also provide a settings.php override to change the default order on a site by site basis.

Remaining tasks

Provide MR.

User interface changes

application Media types will be shown last in the sidebar of the Media dialog.

API changes

N/A

Data model changes

N/A

Issue fork gutenberg-3591505

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

codebymikey created an issue. See original summary.

codebymikey’s picture

Issue summary: View changes