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

Remove override indicator when editing a pattern with overrides #62193

Closed
richtabor opened this issue May 31, 2024 · 6 comments
Closed

Remove override indicator when editing a pattern with overrides #62193

richtabor opened this issue May 31, 2024 · 6 comments
Labels
[Feature] Synced Patterns Related to synced patterns (formerly reusable blocks) [Type] Bug An existing feature does not function as intended

Comments

@richtabor
Copy link
Member

Description

As a follow-up to #61560, the override indicator should be available only in the context of overriding, rather than editing the synced pattern itself.

Step-by-step reproduction instructions

  1. Add a synced pattern.
  2. Add an override.
  3. See the extra block icon.
  4. Add that pattern to a page.
  5. See the proper placement for the icon.

Screenshots, screen recording, code snippet

335621721-1d989332-7718-46a9-b9b7-32f923071e02

Environment info

Gutenberg 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] Synced Patterns Related to synced patterns (formerly reusable blocks) labels May 31, 2024
@colorful-tones
Copy link
Member

@richtabor do you mind attaching the synched pattern you used for testing and reporting this please? It would likely expedite testing and solving. Thanks for reporting!

@colorful-tones
Copy link
Member

I’m unclear as to whether this is a bug or merely iteration towards a new feature through code and/or without any design consideration or user experience outreach? Perhaps some brief details as to how it is framed as a bug might help other contributors dig in and move things along, which could free up other contributors to focus on other things.🤔

@talldan
Copy link
Contributor

talldan commented Jun 4, 2024

It definitely looks like a bug, as there are two block icons on the toolbar:
Screenshot 2024-06-04 at 10 51 38 am

It should happen with any pattern when editing the pattern source. So for example, in the site editor's patterns page, when editing an existing synced pattern or using the 'Add new pattern' option.

Select a paragraph in the pattern, go to the block inspector > advanced panel, and select 'Enable Overrides'. Type a name into the modal and confirm, then the second block icon appears on the toolbar.

@richtabor
Copy link
Member Author

I’m unclear as to whether this is a bug or merely iteration towards a new feature through code and/or without any design consideration or user experience outreach?

Two of the same block icons in the toolbar is a bug. :)

@colorful-tones
Copy link
Member

It definitely looks like a bug, as there are two block icons on the toolbar

I guess as long as its clear to you folks that a duplicate icon is a bug then that is all that matters, right. However, it is not clear from the information on this current issue the context as to why or what the expected behavior is (to me). We may want to explore being a bit more thorough on our issue descriptions in order to empower new contributors or even newer contributors to engage and possibly even chip in. Just some feedback for consideration. Thanks for all the contribution efforts. 🫶

@talldan
Copy link
Contributor

talldan commented Jun 20, 2024

I believe this was fixed by @kevin940726 (and in testing I can no longer repro). Kai can probably advice the exact PR.

@talldan talldan closed this as completed Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Synced Patterns Related to synced patterns (formerly reusable blocks) [Type] Bug An existing feature does not function as intended
3 participants