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

Data views: quick-editing #55101

Open
jameskoster opened this issue Oct 5, 2023 · 3 comments
Open

Data views: quick-editing #55101

jameskoster opened this issue Oct 5, 2023 · 3 comments
Labels
[Feature] Data Views Work surrounding upgrading and evolving views in the site editor and beyond Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.

Comments

@jameskoster
Copy link
Contributor

jameskoster commented Oct 5, 2023

Table and Grid layout

In these layouts, we can use the same UI as the full-screen editor to toggle the visibility of the Inspector panel:

table-quick-edit.mp4

List layout

In List layout it feels important that the preview remains visible. Instead of exposing a dedicated panel, the Inspector contents are loaded into the content frame via drilldown pattern:

list-quick-edit.mp4

This feature would be equivalent to the quick edit experience in wp-admin:

Screenshot 2024-04-24 at 15 50 25
Original issueInline editing has considerable overlap with quick-actions (https://github.com//issues/55096). For example most quick-actions for pages (https://github.com//issues/55628) could also be accessed by clicking on values in the table directly. So for the initial implementation we might reuse where possible. Hopefully this mockup captures that:

Incidentally the "Author" menu in the above concept should be virtually the same as the one that has already been implemented for filtering, so hopefully some legwork is already done 🤞 :

Screenshot 2023-11-17 at 14 00 21

One exception we might make straight away is boolean values, e.g. whether comments are enabled or not. In this case the cell can probably contain a Toggle.

@jameskoster
Copy link
Contributor Author

Noting that the work in #59689 can unlock using the Inspector as a bulk/quick edit interface:

Bulk edit

@seifeldinio
Copy link

I've explored this solution for quick-editing within the inspector panel, here's the prototype for it:

demo.mp4

Mockups:

Single Page Selection

Juste Une Page Selectionne

Focus on Edit Modal: When a user clicks on an option to edit, the table view lessens in opacity to focus on the edit modal. This guides the user's attention with a dark overlay, allowing them to focus on the content at hand.

Une Page Selectionne - Status

Editing options:

Page Options

Multiple Page Selection

Plusieur Pages Selectionnes

Plusieur Pages Selectionnes - Status

Editing options for multiple page selection:

Multiple Pages Options

Quick Editing for Media Files

A similar quick-editing approach can be applied to media files

Media selectionne

Media selectionne - Alt Text

Would love to hear your feedback on this!

@jasmussen
Copy link
Contributor

This is looking pretty solid. A couple of details to figure out across the inspector itself, but high level that seems to capture the instincts I've had for this interaction. Would be good to hear from others in @WordPress/gutenberg-design as well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Data Views Work surrounding upgrading and evolving views in the site editor and beyond Needs Design Needs design efforts. [Type] Enhancement A suggestion for improvement.
Projects
Status: Next
Development

No branches or pull requests

4 participants