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

Theme patterns should not have irrelevant DataViews actions #61945

Closed
richtabor opened this issue May 24, 2024 · 2 comments
Closed

Theme patterns should not have irrelevant DataViews actions #61945

richtabor opened this issue May 24, 2024 · 2 comments
Labels
[Feature] Data Views Work surrounding upgrading and evolving views in the site editor and beyond [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Type] Bug An existing feature does not function as intended

Comments

@richtabor
Copy link
Member

richtabor commented May 24, 2024

Description

  1. You can't move a theme's pattern to the trash/delete it, but there's a control for it.
  2. You can't "Edit" a theme's pattern — instead it opens the home page in the Site Editor.

Both of these should be omitted, because you can't edit theme patterns (currently) and you can't delete them.

Step-by-step reproduction instructions

  1. Open the site editor with a theme that has patterns (Twenty Twenty Four).
  2. Select "Patterns."
  3. Select a theme pattern (represented by a lock icon).
  4. Select the vertical ellipsis dropdown.
  5. Choose "Move to Trash" and "Edit" to reproduce.

Screenshots, screen recording, code snippet

CleanShot.2024-05-24.at.09.39.50.mp4

Environment info

Trunk

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

@richtabor richtabor added [Type] Bug An existing feature does not function as intended [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Feature] Data Views Work surrounding upgrading and evolving views in the site editor and beyond labels May 24, 2024
@richtabor
Copy link
Member Author

Note that we're already filtering some controls, like "Rename" and "Export as JSON" to not render for theme patterns.

@richtabor
Copy link
Member Author

Duplicate of #61787, let's fix this for 6.6.

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 [Feature] Patterns A collection of blocks that can be synced (previously reusable blocks) or unsynced [Feature] Site Editor Related to the overarching Site Editor (formerly "full site editing") [Type] Bug An existing feature does not function as intended
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant