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

Disable bulk actions on theme-supplied patterns #58737

Closed
jameskoster opened this issue Feb 6, 2024 · 9 comments · Fixed by #58950
Closed

Disable bulk actions on theme-supplied patterns #58737

jameskoster opened this issue Feb 6, 2024 · 9 comments · Fixed by #58950
Assignees
Labels
[Feature] DataViews Work surrounding upgrading and evolving views in the site editor and beyond [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release

Comments

@jameskoster
Copy link
Contributor

jameskoster commented Feb 6, 2024

The Patterns data view currently includes patterns supplied by the active theme. These patterns can be duplicated, but not edited in any way.

Therefore it's quite confusing that the bulk actions interface (checkbox) appears attached to these items:

It's made worse by the presence of the lock icon which explicitly states: "This pattern cannot be edited.".

In such cases I think hiding the checkbox could be worth trying.

Alternatively; if bulk actions were added to theme-supplied patterns (e.g. duplicate, export), that would indirectly solve this issue.

@jameskoster jameskoster added [Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release [Feature] DataViews Work surrounding upgrading and evolving views in the site editor and beyond labels Feb 6, 2024
@jameskoster jameskoster mentioned this issue Feb 6, 2024
37 tasks
@jorgefilipecosta

This comment was marked as outdated.

@annezazu
Copy link
Contributor

annezazu commented Feb 7, 2024

+1 to add bulk export! This has come up before (ditto with bulk import): #56794

@jameskoster

This comment was marked as outdated.

@jameskoster

This comment was marked as outdated.

@jorgefilipecosta
Copy link
Member

Or is there a plan to add bulk duplication?

If not, we can hide the checkbox for theme-supplied patterns. That would eliminate the visual tension that exists between the checkbox and the lock icon:

Screenshot 2024-02-08 at 10 06 35

I don't have immediate plans to add bulk duplication as that involves providing names. I will look into hiding the checkbox, the challenge here is that it is inside the data views and needs to be generic. So something generic would be don't show the check box if no bulk action can be applied to the item. I think it will work but has some performance impact. For all the items we will check against all the actions if they can be executed or not, probably not something to worry about and it is worth it.

@jameskoster
Copy link
Contributor Author

Hmm I think this is quite problematic. Selecting an item(s) and finding that no bulk actions can be applied is a strange experience. It's made worse by the lock icon which conceptually contradicts the checkbox.

I'll update the issue to better describe the problem.

@jameskoster jameskoster changed the title Disable bulk actions in Patterns page Disable bulk actions on theme-supplied patterns Feb 12, 2024
@annezazu annezazu moved this to ❓ Triage in WordPress 6.5 Editor Tasks Feb 12, 2024
@github-actions github-actions bot added the [Status] In Progress Tracking issues with work in progress label Feb 12, 2024
@colorful-tones colorful-tones moved this from ❓ Triage to 🏗️ In Progress in WordPress 6.5 Editor Tasks Feb 13, 2024
@getdave getdave moved this from 🏗️ In Progress to 🔎 Needs Review in WordPress 6.5 Editor Tasks Feb 22, 2024
@liviopv
Copy link

liviopv commented Feb 22, 2024

I was testing the 17.8 and I found this quite confusing. I was initially in "All Patterns", and assumed bulk select would allow me to export.

If there are no plans to allow exporting theme patterns, then we should at the minimum add some context to why the Export option is unavailable when selecting a mix of user patterns and theme patterns.

@annezazu
Copy link
Contributor

This PR was merged for 17.8: #58897

AFAIK this won't be backported to 6.5. As a result, I think for 6.5 we need to disable bulk actions but for the GB plugin we should continue with the bulk actions, including export. cc @jorgefilipecosta

@jameskoster
Copy link
Contributor Author

I think for 6.5 we need to disable bulk actions

It would be a shame to lose bulk actions on user-generated patterns. If we can finish up #58950 and re-position the lock icon, hopefully we'd be in a better position to make a decision on this.

@getdave getdave moved this from 🔎 Needs Review to 🏗️ In Progress in WordPress 6.5 Editor Tasks Feb 23, 2024
@github-project-automation github-project-automation bot moved this from 🏗️ In Progress to ✅ Done in WordPress 6.5 Editor Tasks Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] DataViews Work surrounding upgrading and evolving views in the site editor and beyond [Status] In Progress Tracking issues with work in progress [Type] Bug An existing feature does not function as intended [Type] Regression Related to a regression in the latest release
Projects
No open projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants