[wp-trac] [WordPress Trac] #24716: Grid view for the Media Library

WordPress Trac noreply at wordpress.org
Wed Jun 25 03:13:15 UTC 2014


#24716: Grid view for the Media Library
-------------------------------------+-------------------------------------
 Reporter:  alexvorn2                |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  4.0
Component:  Media                    |     Version:
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:  ui, javascript,
  ui-feedback ux-feedback            |  administration
-------------------------------------+-------------------------------------

Comment (by ericlewis):

 attachment:24716.7.diff is a first step towards Media Grid revisions
 [http://make.wordpress.org/ui/2014/06/18/updated-media-grid-uxui-comps/
 outlined on make/UI].

 * Introduce a `.hide-sidebar` class to `media.view.AttachmentsBrowser`.
 The media grid will no longer have a persistent sidebar, so the browser
 toolbar and attachments list will take up full width. This is set via by
 passing `sidebar: false` in the options hash when instantiating
 `media.view.AttachmentsBrowser`. Defaults to `true`, which the modal view
 uses.
 * Introduce on-hover text "Edit Media" in the template for
 `media.view.Attachment`, borrowing css from the Theme browser's `.more-
 details` element.
 * In media.view.Attachment.render(), bring the view's initial `options`
 hash through to the `options` hash passed to the templating function, so
 that we have access to the view's `controller` (i.e. frame) within the
 microtemplate. This comes in handy for inspecting the controller's current
 "mode," more on that in a minute.
 * In `media.view.MediaFrame` (and by extension its descendants, all
 frames), introduce a `mode` property as an array, which will persist
 states. For now, this includes `select`/`edit` and `grid`. This helps in
 microtemplates when deciding within an attachment view whether to display
 UI which is specific to the grid (i.e. fields to show below each Media
 item). By default the media grid will be in `edit` mode, and Bulk Edit
 mode will use the `select` mode.
 * Introduce `showAttachmentFields` as an option for
 `media.view.AttachmentsBrowser`. This will eventually be a persistent
 user-specific setting which dictates which fields to display underneath a
 media item's thumbnail in the grid. Trickles down to
 `media.view.Attachments` and finally `media.view.Attachment`. Utilize
 `controller.options.mode` in the `media.view.Attachment`'s microtemplate
 to decide whether or not to show the fields.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/24716#comment:37>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list