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

WordPress Trac noreply at wordpress.org
Sun Jun 29 13:28:57 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:  dev-feedback  |     Focuses:  ui, javascript, administration
--------------------------+---------------------------------------------

Comment (by ericlewis):

 attachment:24716.10.diff​ is still a work in progress, and should not be
 considered for commit, only for feedback.

 Brief notes: Moved the library view switcher from the upper right corner
 of the screen into the browser toolbar.

 Hard notes:

 * Straight up copying CSS from theme experience for the navigation bar. We
 should move towards an OOCSS UI toolkit for wp-admin, and make available a
 class like `.wp-nav-bar` here instead.
 * Creating a `libraryViewSwitcher` view inside of
 `media.view.AttachmentsBrowser`. This is a bit awkward - we're putting a
 media grid-specific thing inside the `AttachmentsBrowser` view. Open to
 suggestion here. I think it's a good use-case for a
 [https://core.trac.wordpress.org/ticket/21170 Javascript action hook] (oh
 no he di'in't!), so the frame controller could tag in here with a callback
 and register the view on the toolbar, providing a clear separation of
 concerns.

 Beginning to drop notes in inline code comments where things get weird.

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


More information about the wp-trac mailing list