Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sort + View controls for Block Inserter → Media — For better usability with image series! #53109

Open
porg opened this issue Jul 28, 2023 · 1 comment
Labels
[Feature] Media Anything that impacts the experience of managing media Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.

Comments

@porg
Copy link

porg commented Jul 28, 2023

Inserting an ordered image series is a usability horror in WordPress

Block Inserter → Media → Images / Videos

  • This is a standalone UI, independent from WP Core.
    • ✅ One aspect is better there: Original aspect ratio (full width, height varies)
    • ❌ The other needs are also not fulfilled there.

Gutenberg Media Inserter - Status Quo

Proposal: Add ad-hoc sorting + view controls to the UI

  • Decently in bottom bar (preferred)
  • or more prominently integrated into top bar with search (alternative)

Gutenberg Media Inserter 2 Proposal

Controls

Sort — Options

  • Title A-Z
  • Title Z-A
  • File A-Z
  • File Z-A
  • Path A-Z
  • Path Z-A
  • Modified ↑
  • Modified ↓

Sort — Remarks

  • MVP: "Title A-Z" in addition to "Modified"
  • Notes on particular sort modes
    • Path: If you not only have a fully flat structure, but a clustering into /wp-content/uploads/YYYY-MM/ or external-domain.com/animals/pets/cat.jpg, this sort mode can reflect that.
  • Other ideas (for later, if the Media Library API provides the info)
    • Portrait → Landscape, Landscape → Portrait — To cluster by aspect ratio
    • Added ↑, Added ↓ — Another date sorting mode

Show

  • No metadata
  • Title
  • Title…
  • Tit…le
  • …Title
  • Filename
  • Filename…
  • File…name
  • …Filename

Show — Remarks

  • If metadata is shown, it is shown below the image in a caption style.
  • The display modes without ellipsis show the full string, soft wrapped onto multiple lines (to support long file names)
  • The display modes with the ellipsis on start mid end shows the string at max 1-2 lines (to be decided) and otherwise places an ellipsis accordingly. Start and end: I know for sure CSS supports this. Mid: Not sure if CSS can do this. If it requires JS and gets to complex, then skip it from the MVP.
@Mamaduka Mamaduka added [Type] Enhancement A suggestion for improvement. [Feature] Media Anything that impacts the experience of managing media Needs Design Feedback Needs general design feedback. labels Jul 28, 2023
@Mamaduka
Copy link
Member

Maybe the same or similar design for filtering UI from #53033 could also be used here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Media Anything that impacts the experience of managing media Needs Design Feedback Needs general design feedback. [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants