Media UX and functionality improvements

Created on 22 January 2024, 11 months ago
Updated 2 February 2024, 11 months ago

Problem/Motivation

After looking over some things that have changed in core and the contrib space, it looks like there are more options available - and fixes needed - in Panopoly Media to make the overall experience more coherent:

  1. All media fields should use an entity browser
  2. The add media dialog should not show tabs that aren't relevant, based on the media types allowed for the field
  3. The views listing should be pre-filtered based on the media types allowed for the field
  4. The Type exposed filter should not display if only one media type is allowed; if more than one is allowed, it should only show the allowed types.

See https://www.drupal.org/docs/8/modules/entity-browser/entity-browser-view... β†’ for some ways to accomplish #3.

Steps to reproduce

N/A

Proposed resolution

  • Update all fields to use the entity browser widget
  • Implement Entity Browser Views Plugins for filtering
  • Update the views to handle what's needed for different field types
  • Alter the views exposed filter

Remaining tasks

Implement and test.

User interface changes

Change field widget for Media fields.

API changes

None

Data model changes

None

πŸ“Œ Task
Status

Needs review

Version

2.0

Component

Media

Created by

πŸ‡ΊπŸ‡ΈUnited States cboyden

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @cboyden
  • Pipeline finished with Failed
    11 months ago
    #81648
  • Pipeline finished with Failed
    11 months ago
    #81649
  • Pipeline finished with Pending
    11 months ago
    #81655
  • Pipeline finished with Failed
    11 months ago
    #81657
  • Pipeline finished with Running
    11 months ago
    #82040
  • Pipeline finished with Failed
    11 months ago
    #82057
  • Pipeline finished with Failed
    11 months ago
    #82158
  • Pipeline finished with Failed
    11 months ago
    Total: 695s
    #84413
  • Status changed to Needs review 11 months ago
  • πŸ‡ΊπŸ‡ΈUnited States cboyden

    The work-in-progress MR does these things:

    Provides a Media-fied version of the File and Image widgets, and hides the plain versions of them from the Add Content dialog.
    Adds more entity browser plugins to handle different field types.
    Removes the Type exposed filter on the Media Browser view so it only shows up if more than one type is allowed for the field.
    Adds a view to supersede the built-in admin Media view. The Panopoly view includes an exposed Tags filter.

    This could use some review as to approach.

Production build 0.71.5 2024