Related to the idea of a new media library in Phase 3 of Gutenberg (#55238) but also useful in its own right:
What problem does this address?
Add a PostPicker component that can be used to display a modal for selecting one or many posts. It could use DataViews (or similar componentry) and also form the basis for a media library in a modal, too.
Potential uses
What is your proposed solution?
In terms of how it might look, I imagine it could look quite similar to the Pages screen in the site editor, but with a button at the bottom right to "Select" rather than an "Add Page" button at the top right. For patterns or media, it might default to the Grid layout instead, though.
For a reference point in the core wp-admin areas, there's currently a simple modal available for the "attach to" behaviour of the media library. It looks like this:
Related issues
Related to the idea of a new media library in Phase 3 of Gutenberg (#55238) but also useful in its own right:
What problem does this address?
Add a PostPicker component that can be used to display a modal for selecting one or many posts. It could use DataViews (or similar componentry) and also form the basis for a media library in a modal, too.
Potential uses
What is your proposed solution?
PostPickercomponent that implements this for selecting a post or pageIn terms of how it might look, I imagine it could look quite similar to the Pages screen in the site editor, but with a button at the bottom right to "Select" rather than an "Add Page" button at the top right. For patterns or media, it might default to the Grid layout instead, though.
For a reference point in the core wp-admin areas, there's currently a simple modal available for the "attach to" behaviour of the media library. It looks like this:
Related issues